Codapult
DocsBlogPricingPluginsDemo
Get Codapult
Logo

Build your SaaS with AI. Keep the architecture under control.

Get Codapult

Product

  • Pricing
  • Architecture
  • Modules
  • AI platform
  • Plugins

Developers

  • MCP
  • CLI
  • Documentation
  • Launch your SaaS
  • Build a B2B SaaS

Resources

  • Blog
  • FAQ

Connect

  • Contact
  • GitHub

Compare

  • SaaS template comparison
  • Codapult vs Supastarter
  • Codapult vs Makerkit
  • Codapult vs ShipFast
  • Codapult vs SaaSBold
  • Codapult vs Gravity
  • Codapult vs Nextbase
  • Codapult vs BuilderKit

Featured on

Codapult on LaunchNestCodapult on LaunchNestbetterlaunch.cobetterlaunch.coFeatured on LaunchBuffFeatured on LaunchBuffCodapult on PeerPushCodapult on PeerPushFeatured on LaunchItFeatured on LaunchIt
© 2026 Codapult·All rights reserved·Privacy Policy·Terms of Service
Full source code · One-time purchase · Self-host anywhere
All articles

Getting Started

  • Introduction
  • Quick Start
  • Your First 30 Minutes
  • Project Structure
  • License and Permitted Use
  • Starter Profiles and Recipes
  • Product Recipes

Configuration

  • Environment Variables
  • App Configuration
  • Which Modules Should I Enable?
  • Provider Matrix
  • Capability Coverage

Database

  • Database and Provider Guide
  • Database
  • Migrations

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Ai

  • AI Runtime Architecture and Evals
  • AI Features
  • Streaming Chat
  • RAG and Semantic Search
  • Quotas and Memory

Teams

  • Teams & Organizations
  • Permissions & RBAC
  • SCIM Provisioning

Security

  • Data Retention Policy
  • Security

Deployment

  • Enterprise E2E Evidence
  • Enterprise Production Readiness
  • Deployment, Backup, and Restore Runbook
  • Deployment
  • Troubleshooting

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • Self-Hosting
  • File Storage
  • Docker
  • Background Jobs
  • Terraform & Pulumi
  • Kubernetes

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture
  • Waitlist
  • Audit Log
  • White-Labeling
  • Workflow Automation
  • A/B Testing
  • Welcome Page
  • Referrals
  • GDPR Export and Deletion
  • Promotions
  • Outgoing Webhooks

Plugins

  • Plugin System
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Upgrading

  • Upgrading Codapult

Developer Tools

  • AI Agents & IDEs
  • MCP Server
  • Testing
  • Build Your First Feature with Codapult MCP
  • How Guard Blocks an Architectural Regression
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.

What Is Codapult

Codapult is a production-ready SaaS foundation for Next.js 16. It connects the parts a serious SaaS needs — authentication, billing, teams, AI chat, admin, content, and infrastructure — so you can spend your time on the product instead of rebuilding the foundation.

Optional capabilities are organized into focused module groups. Run the interactive setup wizard (npx @codapult/cli setup) to remove the supported groups you don't need, and review the generated project before writing custom code.

The setup wizard runs once, before you start building. It permanently removes the files and routes mapped to disabled groups and applies supported prune markers. Because shared schema and dependencies can serve several capabilities, review those after setup and remove anything no longer needed before generating migrations. Adding removed code back requires pulling it manually from the source repository. Modules you keep can be toggled on or off at any time via environment variables where supported.

See License and Permitted Use for project limits, client work, hosted SaaS, and what you may not resell.

Product layers

Codapult is the full-source SaaS foundation: the Next.js application, modules, adapters, infrastructure templates, and documentation that become your product repository.

The surrounding developer tools have focused roles:

  • Codapult CLI provides setup, generators, provider/environment checks, database workflows, deployment checks, and the MCP server used from the project root.
  • Codapult Guard provides project architecture memory, approved contracts, changed-file regression checks, impact context, and verification. The CLI exposes its Codapult workflow, while @codapult/guard can also be installed directly in another JavaScript or TypeScript repository.

The application remains the product you ship; CLI and Guard operate the development and verification workflow around that source.

Key Differentiators

Adapter Pattern

Auth, payments, storage, background jobs, and notification transports all use a unified adapter interface. Switch providers by changing a single environment variable — no code changes:

AdapterProvidersEnv Var
AuthBetter-Auth (default), Kinde, NoneAUTH_PROVIDER
PaymentsStripe (default), LemonSqueezy, PolarPAYMENT_PROVIDER
StorageLocal (default), S3, R2STORAGE_PROVIDER
Background JobsIn-memory (default), BullMQ (Redis)JOB_PROVIDER
NotificationsPoll (default), SSE, WebSocketNOTIFICATION_TRANSPORT
EmbeddingsOpenAI (default), OllamaEMBEDDING_PROVIDER
Vector StoreSQLite (default), In-memoryVECTOR_STORE_PROVIDER

Enterprise-Grade Features

  • Authentication — email/password, OAuth, magic links, TOTP 2FA, enterprise SAML SSO
  • Billing — tiered plans, add-ons, multi-line checkout, Stripe Connect marketplace
  • Infrastructure as Code — Terraform (HCL), Pulumi (TypeScript), and Helm chart included
  • API layers — tRPC v11 for type-safe procedures, optional GraphQL (graphql-yoga)
  • Interactive API docs — OpenAPI 3.1 spec with a built-in explorer
  • A/B testing — weighted variants with conversion tracking
  • Multi-region database — Turso read replicas with automatic routing
  • Performance monitoring — Core Web Vitals reporter with in-app dashboard

Tech Stack

LayerTechnology
FrameworkNext.js 16 (App Router, Server Components, Turbopack)
LanguageTypeScript (strict mode)
DatabasePostgreSQL or Turso (LibSQL) + Drizzle ORM
StylingTailwind CSS v4 + shadcn/ui + Radix UI
ReactReact 19
Type-safe APItRPC v11 + TanStack React Query
AIVercel AI SDK + OpenAI / Anthropic
EmailResend + React Email
i18nnext-intl (locale-aware URL routing; English shipped)
AnalyticsPostHog
Error MonitoringSentry (client, server, edge)
TestingVitest (unit) + Playwright (E2E)
AuthBetter-Auth (default) or Kinde
PaymentsStripe (default), LemonSqueezy or Polar
StorageLocal (default), S3, or Cloudflare R2

Next Steps

  • Quick Start — install, configure, and run in under 5 minutes
  • Project Structure — understand the directory layout
  • Authentication — sign-in methods, 2FA, and SSO
  • Payments & Billing — configure subscription tiers
  • Customization — theming, branding, and white-label
Quick Start