Getting Started
SaaSForge AI is a Next.js app with chat, uploads, pgvector search, Stripe subscriptions, and Supabase auth. Follow the steps below until you can send a prompt against a local database.
Quick Start
-
Clone and Install
git clone <your-repo-url> cd saasforge-ai pnpm install -
Set Up Environment Variables
- Copy
.env.local.exampleto.env.local - Follow the Configuration Guide to obtain all required API keys
- Copy
-
Set Up Database
- Run the SQL schema from
src/db/schema.sqlin your Supabase SQL editor - Create a storage bucket named
uploadsin Supabase Storage - See Database Guide for details
- Run the SQL schema from
-
Start Development Server
pnpm dev -
Run the built-in setup checklist (recommended)
- Visit
/dashboard/setupto validate your environment variables and database schema
- Visit
Features
- AI Chat with multiple models (GPT-4o, Claude 3.5 Sonnet, etc.)
- Document Upload and RAG - Upload PDFs and ask questions based on your documents
- Credit-Based Economy - Token-based monetization system
- Stripe Integration - Subscription and one-time payment support
- Multi-Model Support - Switch between AI models based on your tier
- Row Level Security - Complete data isolation with RLS policies
Documentation
| Guide | Description |
|---|---|
| Architecture | System design and code structure |
| Configuration | Environment variables setup |
| Database | Schema, RLS policies, migrations |
| RAG Pipeline | Document upload and retrieval |
| Credit System | How credits and billing work |
| API Reference | All API endpoints |
| Customization | Modifying configs and adding features |
| Stripe Integration | Payment setup and webhooks |
| Deployment | Production deployment guide |
| SEO & Metadata | Search + social sharing configuration |
| White‑Label Checklist | Rename, brand, and package the boilerplate |
| Troubleshooting | Common issues and solutions |