Source files
Routes, components, helpers, and server code land in canonical project paths.
StackFoundry is a public source registry for production SaaS modules. Install billing, API keys, database wiring, webhooks, analytics, and operations surfaces as editable code with schemas, env notes, tests, docs, and maintenance guidance.
pnpm dlx stackfoundry add stripe-billingA base app stays small. Registry modules add production capabilities in the same source paths your team already reviews and maintains.
Routes, components, helpers, and server code land in canonical project paths.
Schema slices are delivered with migration guidance. Migrations are never applied silently.
Required keys and provider setup notes are documented alongside the installed code.
Each module ships tests or a focused checklist so maintainers know what to prove.
Each module owns one capability. Provider modules stay adapters around shared domain interfaces, so base scaffolds stay small.
Checkout, billing portal, subscription sync, webhook dedupe, and entitlement mapping.
schema/billing.tsapi/webhooks/stripe(console)/billingPostgres package, schema barrel, migrations, and server-only database access.
packages/dbapps/web/src/lib/db.tsdrizzle.config.tsKey lifecycle, hashed storage, scopes, usage metadata, and management UI.
schema/api-keys.tslib/api-keys.ts(console)/api-keysReceived webhook table, status, retry controls, signature metadata, and detail UI.
schema/webhooks.tsapi/webhooks/*(console)/webhooksThe registry now presents modules as searchable commands, preset comparison rows, and review prompts. These patterns borrow from product UI conventions without hiding the source-first model.
Compare bundles by use case before installing.
| Preset | Best for | Includes |
|---|---|---|
next-saas | Product teams | Billing, auth surfaces, ops, legal, docs |
b2b-saas | Team products | RBAC, invites, audit, SSO, SCIM |
developer-platform | API-first apps | Keys, docs, webhooks, usage |
internal-admin | Operators | Support, health, incidents, backups |
ai-saas | AI products | Chat, model routing, quotas, metering |
Source files, route shells, helpers, schema slices, docs, skill guidance, and verification checklists.
Secrets, local metadata, generated caches, and provider lock-in outside explicit provider adapter modules.
Every module is declared in a manifest with files, dependencies, env notes, schema exports, and status.
Module metadata declares source paths, dependencies, environment requirements, schema exports, and verification guidance so installs and diffs stay reviewable.
{
"name": "stripe-billing",
"type": "module",
"category": "billing",
"registryDependencies": ["drizzle-postgres"],
"env": [
"STRIPE_SECRET_KEY",
"STRIPE_WEBHOOK_SECRET"
],
"status": "experimental"
}StackFoundry is open source and free to use. Sponsors fund module maintenance, provider adapters, and higher-quality examples.