Source files
Routes, components, helpers, and server code land in canonical project paths.
StackFoundry is a source-code registry for the parts every SaaS app needs: billing, auth, API keys, webhooks, docs, analytics, notifications, and operations. Pick a module, install it into your app, then review and edit the code like your own.
A 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.
The landing page shows the shape of the registry. The docs page explains how to install modules, review diffs, author manifests, and keep modules maintainable.
Checkout, billing portal, subscription sync, webhook dedupe, and entitlement mapping.
Postgres package, schema barrel, migrations, and server-only database access.
Key lifecycle, hashed storage, scopes, usage metadata, and management UI.
Received webhook table, status, retry controls, signature metadata, and detail UI.
Transactional email wiring, provider notes, templates, and delivery checks.
Event taxonomy, capture helpers, consent notes, and product analytics surfaces.
The 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.
Learn the manifest model{ "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.