The modular Next.js SaaS boilerplate with auth, payments, teams, admin, AI, and infrastructure already wired together.
Auth, billing, teams, admin panel, AI layer, SSO, and infrastructure work as one system out of the box. Start lean with only the modules your MVP needs, then scale without rebuilding the foundation.
| Category | Modules |
|---|---|
| Auth | Email/password, OAuth, magic links, TOTP 2FA, SAML SSO, SCIM |
| Billing | Stripe, LemonSqueezy, Polar — switchable via env var |
| Teams | Organizations, RBAC, invitations, seat billing, audit log |
| Admin | User management, feature flags, webhooks, A/B testing, metrics |
| AI | Streaming chat, RAG pipeline, embeddings, quotas, OpenAI + Anthropic |
| Infrastructure | Docker, Terraform, Pulumi, Helm chart, GitHub Actions CI/CD |
| API | tRPC v11, REST, optional GraphQL, type-safe end-to-end |
70+ modules. Each independently removable via CLI. No dead code.
Codapult is built around the adapter pattern — auth, payments, storage, jobs, embeddings, and notifications each sit behind a unified interface. Swap providers by changing one environment variable. No rewrites.
AUTH_PROVIDER=kinde # better-auth | kinde
PAYMENT_PROVIDER=lemonsqueezy # stripe | lemonsqueezy | polar
STORAGE_PROVIDER=r2 # local | s3 | r2
JOB_PROVIDER=bullmq # memory | bullmq
npx create-codapult my-appThe interactive wizard configures auth, payments, and storage in under 5 minutes.