llms.txt
Compare with other sites' llms.txt files →# Codapult
> Codapult is a Next.js SaaS Boilerplate & Starter Kit for MVPs, team-based B2B products and AI-powered applications.
Codapult connects common SaaS essentials in a Next.js project. Setup choices help developers shape it around the product they want to launch. Its built-in AI platform, B2B workflows and project-aware MCP tools support products from first release to advanced use cases.
## Product Facts
- A Next.js starting point for SaaS MVPs and products built around teams.
- Connected essentials for authentication, billing, admin workflows, and product development.
- Setup choices configure supported capabilities for the project being built.
- A built-in AI platform for product chat, agents, retrieval, and usage controls, plus MCP context for AI-assisted development.
- Automated verification through TypeScript, lint, unit, E2E, and build workflows.
- Full source ownership with self-hosting and replaceable infrastructure providers.
## Core Pages
- [Home](https://codapult.dev/): Next.js SaaS Boilerplate & Starter Kit for MVPs, team-based B2B products and AI-powered applications, with connected product workflows, modular architecture, built-in AI platform, billing and infrastructure.
- [Launch your SaaS](https://codapult.dev/launch): Launch your SaaS MVP on a Next.js Starter Kit with connected product workflows.
- [B2B SaaS](https://codapult.dev/b2b-saas): A B2B SaaS Starter Kit with organizations, permissions, account-level billing, provider adapters, and an architecture teams can extend.
- [MCP](https://codapult.dev/mcp): Structured project context for AI coding agents: architecture, schema, environment, modules, deployment state, conventions, validation, and operations.
- [Architecture](https://codapult.dev/architecture): Provider-adapter architecture that keeps product logic independent from auth, billing, database, storage, and deployment vendors.
- [AI platform](https://codapult.dev/ai): Built-in AI foundation for gateway, chat, agents, tools, RAG, guardrails, provider control, provider routing, usage, cost controls, and product-ready AI capabilities.
- [CLI](https://codapult.dev/cli): Controlled workflow for inspecting a project, composing focused changes, and verifying types, lint, tests, and builds.
- [Modules](https://codapult.dev/modules): Browse the capabilities connected across the Codapult foundation.
- [Pricing](https://codapult.dev/#pricing): One-time Full Foundation purchase, or a Done-For-You launch with configuration, deployment, and handoff.
- [Plugins](https://codapult.dev/plugins): Optional CRM, Helpdesk, and Email Marketing product modules built into the same Codapult Next.js SaaS Starter Kit & Boilerplate.
- [FAQ](https://codapult.dev/faq): Everything you need to know about Codapult.
- [Compare](https://codapult.dev/compare): Commercial comparison against other SaaS starters.
- [Blog](https://codapult.dev/blog): Technical articles for SaaS builders.
- [Documentation](https://codapult.dev/docs): Developer guides for setup, product capabilities, and deployment.
## High-Intent Comparison Pages
- [Codapult vs shipfast](https://codapult.dev/compare/shipfast): Feature, stack, pricing, and fit comparison.
- [Codapult vs supastarter](https://codapult.dev/compare/supastarter): Feature, stack, pricing, and fit comparison.
- [Codapult vs makerkit](https://codapult.dev/compare/makerkit): Feature, stack, pricing, and fit comparison.
- [Codapult vs saasbold](https://codapult.dev/compare/saasbold): Feature, stack, pricing, and fit comparison.
- [Codapult vs gravity](https://codapult.dev/compare/gravity): Feature, stack, pricing, and fit comparison.
- [Codapult vs nextbase](https://codapult.dev/compare/nextbase): Feature, stack, pricing, and fit comparison.
- [Codapult vs builderkit](https://codapult.dev/compare/builderkit): Feature, stack, pricing, and fit comparison.
## Premium Plugins
- [@codapult/plugin-crm](https://codapult.dev/plugins/crm): Optional crm product module for Codapult, with pages, APIs, data models, and AI-assisted workflows.
- [@codapult/plugin-helpdesk](https://codapult.dev/plugins/helpdesk): Optional helpdesk product module for Codapult, with pages, APIs, data models, and AI-assisted workflows.
- [@codapult/plugin-email-marketing](https://codapult.dev/plugins/email-marketing): Optional email marketing product module for Codapult, with pages, APIs, data models, and AI-assisted workflows.
## Documentation
### Getting Started
- [Introduction](https://codapult.dev/docs/getting-started/introduction): Learn what Codapult is, which Next.js SaaS boilerplate features are included, how the modular architecture works, and when to use it.
- [Quick Start](https://codapult.dev/docs/getting-started/quick-start): Install Codapult, configure environment variables, run the Next.js SaaS boilerplate locally, and verify auth, payments, database, and dashboard setup.
- [Your First 30 Minutes](https://codapult.dev/docs/getting-started/first-30-minutes): Go from a fresh Codapult project to a running, verified SaaS foundation.
- [Project Structure](https://codapult.dev/docs/getting-started/project-structure): Understand the Codapult project structure, application surfaces, configuration model, module boundaries, and where to customize your product.
- [License and Permitted Use](https://codapult.dev/docs/getting-started/license): What you can build with Codapult, how project scope and updates work, and which source-code uses are restricted.
- [Starter Profiles and Recipes](https://codapult.dev/docs/getting-started/starter-profiles): Choose a Codapult project profile and apply a repeatable setup workflow.
- [Product Recipes](https://codapult.dev/docs/getting-started/product-recipes): Practical Codapult starting points for AI products, B2B SaaS, marketplaces, internal tools, and content products.
### Configuration
- [Environment Variables](https://codapult.dev/docs/configuration/environment-variables): Complete reference for all environment variables used by Codapult, grouped by module.
- [App Configuration](https://codapult.dev/docs/configuration/app-config): Configure your app identity, features, and navigation. Use the dedicated references for environment variables and provider settings.
- [Which Modules Should I Enable?](https://codapult.dev/docs/configuration/choosing-modules): Choose a Codapult starting profile and keep the foundation focused on the product you are building.
- [Provider Matrix](https://codapult.dev/docs/configuration/provider-matrix): Compare Codapult's supported database, authentication, billing, storage, jobs, AI, and transport adapters.
- [Capability Coverage](https://codapult.dev/docs/configuration/capability-coverage): See how Codapult's integrated foundation supports production SaaS delivery across identity, billing, AI, infrastructure, and architecture control.
### Authentication
- [Authentication](https://codapult.dev/docs/authentication/overview): Set up authentication with Better-Auth or Kinde, configure OAuth, magic links, 2FA, passkeys, and enterprise SSO.
- [OAuth Providers](https://codapult.dev/docs/authentication/oauth): Configure Google, GitHub, Apple, Discord, Twitter, and Microsoft OAuth for your SaaS.
- [Two-Factor & Passwordless](https://codapult.dev/docs/authentication/two-factor): Configure two-factor authentication for Codapult users with TOTP codes, magic links, passkeys, recovery flows, and secure account settings.
- [Enterprise SSO (SAML)](https://codapult.dev/docs/authentication/sso): Set up SAML-based single sign-on for enterprise customers via BoxyHQ Jackson.
### Database
- [Database](https://codapult.dev/docs/database/overview): Configure Codapult databases with Turso, local SQLite, or PostgreSQL; define schemas in Drizzle ORM, run typed queries, seed data, and prepare production migrations.
- [Database and Provider Guide](https://codapult.dev/docs/database/provider-limitations): Choose the database path that fits your Codapult workload, local workflow, and production deployment model.
- [Migrations](https://codapult.dev/docs/database/migrations): Schema migration workflow for production databases with existing data.
### Teams
- [Teams & Organizations](https://codapult.dev/docs/teams/overview): Multi-tenancy with organizations, roles, permissions, and team invitations.
- [Permissions & RBAC](https://codapult.dev/docs/teams/permissions): Default organization roles and the access each role provides.
- [SCIM Provisioning](https://codapult.dev/docs/teams/scim-provisioning): Automate enterprise user provisioning and deprovisioning with SCIM 2.0 endpoints.
### Deployment
- [Deployment](https://codapult.dev/docs/deployment/overview): Deploy Codapult to Vercel, Docker, Kubernetes, or AWS with Terraform and Pulumi.
- [Enterprise E2E Evidence](https://codapult.dev/docs/deployment/e2e-evidence): The end-to-end checks that verify authentication boundaries, protected APIs, and critical production surfaces.
- [Enterprise Production Readiness](https://codapult.dev/docs/deployment/production-readiness): Evidence map for enterprise authentication, isolation, billing, jobs, recovery, observability, and security controls.
- [Deployment, Backup, and Restore Runbook](https://codapult.dev/docs/deployment/operations-runbook): Operational procedures for deploying Codapult, applying migrations, recovering data, and validating a restored environment.
- [Troubleshooting](https://codapult.dev/docs/deployment/troubleshooting): Solutions for common deployment issues — database errors, webhooks, OAuth, storage, jobs, and more.
### Payments
- [Payments & Billing](https://codapult.dev/docs/payments/overview): Configure subscription plans, add-ons, and payment providers for your SaaS.
- [Stripe Setup](https://codapult.dev/docs/payments/stripe): Configure Stripe for subscriptions, checkout, customer portal, and Stripe Connect.
- [LemonSqueezy Setup](https://codapult.dev/docs/payments/lemonsqueezy): Configure LemonSqueezy as an alternative payment provider with automatic tax handling.
- [Polar Setup](https://codapult.dev/docs/payments/polar): Configure Polar as a payment provider with Merchant of Record and GitHub-native billing.
- [Payment Webhooks](https://codapult.dev/docs/payments/webhooks): How Codapult handles payment webhooks, extending handlers, and testing locally.
### Api
- [API Layer](https://codapult.dev/docs/api/overview): API routes, tRPC, GraphQL, server actions, versioning, and rate limiting.
- [tRPC](https://codapult.dev/docs/api/trpc): Type-safe API procedures with tRPC v11, TanStack React Query, and server-side prefetching.
- [GraphQL](https://codapult.dev/docs/api/graphql): Add an optional GraphQL API to Codapult with graphql-yoga, SDL schema definitions, typed resolvers, authentication, and rate-limited route handlers.
### Ai
- [AI Features](https://codapult.dev/docs/ai/overview): Build AI features in Codapult with streaming chat, RAG retrieval, tool calling, embedding adapters, model configuration, quotas, and conversation persistence.
- [AI Runtime Architecture and Evals](https://codapult.dev/docs/ai/runtime-architecture): How Codapult routes AI requests through validation, context, guardrails, tools, providers, metering, and evaluation.
- [Streaming Chat](https://codapult.dev/docs/ai/streaming-chat): How the built-in AI chat uses Vercel AI SDK, model adapters, streaming responses, and tools.
- [RAG and Semantic Search](https://codapult.dev/docs/ai/rag-and-semantic-search): Index documents, generate embeddings, store vectors, and retrieve context for AI responses.
- [Quotas and Memory](https://codapult.dev/docs/ai/quotas-and-memory): Persist AI conversations and control AI usage per organization.
### Email
- [Email](https://codapult.dev/docs/email/overview): Transactional email with Resend, React Email templates, and custom domain management.
- [Email Templates](https://codapult.dev/docs/email/templates): Create and customize Codapult transactional email templates with React Email components, shared layouts, previews, localization, and Resend delivery.
### Infrastructure
- [Infrastructure](https://codapult.dev/docs/infrastructure/overview): Configure self-hosting, Docker, Terraform, Pulumi, Kubernetes, storage, background jobs, and real-time notifications.
- [Self-Hosting](https://codapult.dev/docs/infrastructure/self-hosting): Run Codapult outside Vercel with Docker, AWS IaC, Kubernetes, external databases, workers, storage, and observability.
- [File Storage](https://codapult.dev/docs/infrastructure/storage): Upload and serve files with local, S3, or Cloudflare R2 storage adapters.
- [Docker](https://codapult.dev/docs/infrastructure/docker): Build and run Codapult with the included Dockerfile and docker-compose.yml.
- [Background Jobs](https://codapult.dev/docs/infrastructure/jobs): Offload work to background jobs with in-memory or BullMQ (Redis) adapters.
- [Terraform & Pulumi](https://codapult.dev/docs/infrastructure/terraform-pulumi): Provision AWS infrastructure for Codapult with Terraform or Pulumi.
- [Kubernetes](https://codapult.dev/docs/infrastructure/kubernetes): Deploy Codapult to any Kubernetes cluster with the included Helm chart.
### Ui
- [UI & Theming](https://codapult.dev/docs/ui/theming): Customize Codapult UI theming with design tokens, Tailwind CSS variables, fonts, dark mode, brand colors, and marketing page sections.
### I18n
- [Internationalization](https://codapult.dev/docs/i18n/overview): Add languages, translate UI text, and localize blog content with next-intl and URL-based routing.
### Content Management
- [Content Management](https://codapult.dev/docs/content-management/overview): Manage your blog and help center documentation with MDX, article search, and i18n support.
### Admin
- [Admin Panel](https://codapult.dev/docs/admin/overview): Manage users, subscriptions, feature flags, SSO, experiments, and more from the built-in admin dashboard.
### Security
- [Security](https://codapult.dev/docs/security/overview): HTTP headers, rate limiting, auth guards, input validation, GDPR compliance, and API key management.
- [Data Retention Policy](https://codapult.dev/docs/security/data-retention): Recommended retention baseline for application data, logs, webhooks, backups, and user deletion.
### Monitoring
- [Analytics & Monitoring](https://codapult.dev/docs/monitoring/overview): PostHog analytics, Sentry error tracking, OpenTelemetry tracing, and Core Web Vitals monitoring.
### Modules
- [Module Architecture](https://codapult.dev/docs/modules/overview): How Codapult modules work, how to choose the right capabilities, and how to configure or remove features you do not need.
- [Waitlist](https://codapult.dev/docs/modules/waitlist): Collect early-access signups with a public landing page, rate limiting, and confirmation email.
- [Welcome Page](https://codapult.dev/docs/modules/welcome-page): Post-purchase landing for the one-time license flow — shows the license key and onboarding next steps.
- [Audit Log](https://codapult.dev/docs/modules/audit-log): Record user and organization activity for admin review, support, and compliance.
- [White-Labeling](https://codapult.dev/docs/modules/white-labeling): Customize an organization's name, logo, support contact, dashboard colors, and Codapult attribution.
- [Workflow Automation](https://codapult.dev/docs/modules/workflow-automation): Build trigger-based automations with email, webhook, Slack, delay, and property update steps.
- [A/B Testing](https://codapult.dev/docs/modules/ab-testing): Run weighted experiments with deterministic assignment and conversion tracking.
- [Referrals](https://codapult.dev/docs/modules/referrals): Generate referral codes, track referred signups, conversions, rewards, and leaderboards.
- [GDPR Export and Deletion](https://codapult.dev/docs/modules/gdpr-export-deletion): Export user data and delete accounts with built-in privacy controls.
- [Promotions](https://codapult.dev/docs/modules/promotions): Configure promotion codes and product-specific pricing overrides for app checkout.
- [Outgoing Webhooks](https://codapult.dev/docs/modules/outgoing-webhooks): Let users subscribe to product events with HMAC-signed delivery, retries, and dead-letter replay.
### Plugins
- [Product plugins](https://codapult.dev/docs/plugins/capabilities): Add sales, customer support, and email marketing capabilities to a Codapult application.
- [CRM Plugin](https://codapult.dev/docs/plugins/crm): Companies, contacts, visual deal pipeline, activity timeline, custom fields, tags, AI lead scoring and deal prediction.
- [Helpdesk Plugin](https://codapult.dev/docs/plugins/helpdesk): AI-native support ticket system with SLA tracking, canned responses, AI auto-resolve via RAG, satisfaction surveys, and analytics.
- [Email Marketing Plugin](https://codapult.dev/docs/plugins/email-marketing): Subscriber lists, audience segmentation, broadcast campaigns, open/click tracking, suppression, and AI-powered subject lines and content generation.
### Upgrading
- [Upgrading Codapult](https://codapult.dev/docs/upgrading/overview): How to pull upstream updates into your project while keeping your customizations.
### Developer Tools
- [AI Agents & IDEs](https://codapult.dev/docs/developer-tools/ai-agents-and-ides): Connect Cursor, Claude, Codex, Gemini, Windsurf, and other AI coding agents to Codapult with project instructions and MCP.
- [MCP Server](https://codapult.dev/docs/developer-tools/mcp): Give AI coding assistants deep access to your Codapult project via Model Context Protocol.
- [Testing](https://codapult.dev/docs/developer-tools/testing): Test Codapult with Vitest unit tests, Playwright end-to-end flows, API route coverage, fixtures, mocks, and CI-friendly test scripts.
- [Build Your First Feature with Codapult MCP](https://codapult.dev/docs/developer-tools/build-feature-with-mcp): Use Codapult MCP to understand a project, generate a feature boundary, and verify the result.
- [Architecture Guardrails for AI Coding Agents](https://codapult.dev/docs/developer-tools/guard-architectural-regression): Detect architectural drift and prevent software architecture regressions with approved Guard rules, changed file checks, and CI verification.
## Technical Blog
- [Build Multi-Tenant RAG in Next.js Without Leaking Customer Data](https://codapult.dev/blog/nextjs-multi-tenant-rag): A hands-on method for evaluating a Next.js SaaS boilerplate: build one realistic feature and examine its architecture, authorization, data access, migrations, and tests.
- [Choosing a Next.js SaaS Boilerplate? Build One Real Feature First](https://codapult.dev/blog/choosing-a-nextjs-saas-boilerplate): A hands-on method for evaluating a Next.js SaaS boilerplate: build one realistic feature and examine its architecture, authorization, data access, migrations, and tests.
- [AI Can Write the SaaS. It Still Doesn't Decide How the Pieces Should Fit.](https://codapult.dev/blog/ai-can-write-the-saas): Why Codapult was built around modules, adapters, explicit boundaries, and MCP context instead of another pile of starter files.
- [The Agent Shouldn't Be Able to Approve Its Own Rules](https://codapult.dev/blog/the-agent-shouldnt-be-able-to-approve-its-own-rules): AI coding agents can make legitimate architectural changes. The harder problem is separating code changes from policy changes, waivers and approval authority.
- [A Dependency Graph Is Not Architecture](https://codapult.dev/blog/a-dependency-graph-is-not-architecture): Why a dependency graph only shows current code relationships, and why AI coding agents need explicit architectural policy to avoid technical debt.
- [The Tests Passed. The Architecture Didn't.](https://codapult.dev/blog/the-tests-passed-the-architecture-didnt): Why AI coding agents introduce architectural debt despite passing tests, and how deterministic checks and MCP keep projects clean.
- [I Spent $200 in API Credits Prompting an Agent to Build a Starter. Here’s Why I Still Clone Boilerplates.](https:/