Modules are optional features. The open-source repository contains all of them; a download contains only the modules you select, with no leftover files, imports, env vars, Prisma models or migrations from the others.
| Module | ID | Requires | Credits | Docs |
|---|---|---|---|---|
| Billing & Payments | billing | — | 10 | Billing, Payment Gateways |
| Organizations / Teams | multi_tenancy | — | 50 | Organizations & Teams |
| AI Platform | ai | — | 20 | AI Platform |
| AI Agents & RAG | ai_agents | ai | 30 | AI Agents & RAG |
| API Keys | api_keys | — | 5 | API Keys & REST API |
Which modules does my project have?
Run pnpm doctor --check. Its first line lists them:
SaaS Forge doctor · modules: billing, api_keys · platforms: web, mobile
You can also look for the module's files, for example packages/database/prisma/org.prisma for Organizations or apps/web/trpc/routers/aiProcedures.ts for AI Platform.
How a module is removed from a download
Module code lives in three forms, and the download builder handles each:
-
Files the module owns (routers, pages, components, Prisma files, migrations) are deleted.
-
Sections inside shared files are wrapped in marker comments, and the sections of unselected modules are dropped:
// scaffold:begin billing import { billingRouter } from "./billingProcedures"; // scaffold:end billingThe markers themselves never ship.
-
Small slots that differ by module, such as the workspace switcher in the sidebar, are replaced by a no-op stub.
Every variant is checked in SaaS Forge's CI: each module alone, every pair and all modules are compiled, installed, typechecked and scanned for leftovers, and a nightly job boots the smallest and largest variants against a fresh database.
Providers
Some integrations have interchangeable providers. They are pruned the same way, inside the module that owns them:
| Toggle | Env var | Choices | Owner |
|---|---|---|---|
payment_gateway | NEXT_PUBLIC_PAYMENT_GATEWAY | stripe, dodo, none | Billing |
image_storage | NEXT_PUBLIC_IMAGE_STORAGE | vercel_blob, cloudflare_r2 | Core |
cms | NEXT_PUBLIC_CMS | constant, postgres | Core |
A download keeps only the provider you picked and pins the default to it. Leave a toggle unset in the wizard to keep every choice, or set KEEP_ALL_PROVIDERS=true. Switching provider later is a free upgrade.
Adding a module later
Buy it as an upgrade from the Upgrade Center or the CLI (create-saas-forge upgrade --add <id>). You pay the module's price, and the kit brings its files, migrations and env vars.
Removing a module yourself
To drop a module from a project:
- Delete the files it owns (its router, pages, components,
.prismafile). - Remove its sections in shared files. In the open-source repository, search for
scaffold:begin <id>. - Remove it from
apps/web/trpc/routers/_app.tsandapps/web/trpc/apiRegistry.ts. - Create a migration that drops its tables, after backing up the data.
- Run
pnpm typecheckandpnpm test.
