Public

demo

README.md

https://www.achromatic.dev/docs/starter-kits/pro-nextjs-drizzle npm install npm run db:migrate npm run dev

SaaS Template

A production-ready SaaS boilerplate with authentication, billing, organizations and more.

Tech Stack

CategoryTechnologies
FrameworkNext.js 16.3, React 19, TypeScript 7
StylingTailwind CSS 4, Base UI, Lucide Icons
DatatRPC, React Query, Drizzle ORM, PostgreSQL
AuthBetter Auth (email, Google OAuth, 2FA)
BillingStripe (subscriptions, per-seat, one-time)
EmailResend, React Email
StorageS3-compatible (AWS S3 / Cloudflare R2)
ObservabilitySentry, Google Analytics 4

Quick Start

bash
npm installcp .env.example .env# Edit .env: set DATABASE_URL and BETTER_AUTH_SECRETnpm run db:migratenpm run dev

Open http://localhost:3000

Full setup guide: README_QUICKSTART.md

Documentation

DocumentDescription
README_QUICKSTART.mdStep-by-step setup guide
README_DATABASE.mdDrizzle ORM, schema, migrations
README_AUTH.mdAuthentication, roles, sessions, 2FA
README_TRPC.mdtRPC API layer and procedures
README_BILLING.mdStripe billing, subscriptions, webhooks
README_STRIPE.mdStripe local testing, production webhooks, and required events
README_EMAIL.mdResend email system and templates
README_MCP.mdLocal read-only MCP server
README_STORAGE.mdS3-compatible file storage
README_CONTENT.mdBlog, docs and marketing pages
README_AI.mdAI chatbot system
README_OBSERVABILITY.mdSentry, logging, analytics
README_DEPLOYMENT.mdVercel deployment guide
AGENTS.mdAI agent guidelines (Cursor, Claude, Copilot)
.env.exampleAll environment variables
LICENSEAchromatic License

Commands

CommandDescription
npm run devStart development server
npm run buildBuild for production
npm run db:migrateRun database migrations
npm run db:studioOpen Drizzle Studio (DB GUI)
npm run docker:upStart PostgreSQL
npm run stripe:listenForward Stripe webhooks locally
npm run mcp:buildCompile the local MCP server
npm run mcp:startStart the MCP server over stdio
npm run deps:checkCheck for dependency updates
npm run deps:updateUpdate package.json versions

Configuration

AI Credits

Stripe products and prices are generated from the app's billing configuration. For Stripe keys, local webhook testing, and production setup, follow README_STRIPE.md.

Project Structure

app/├── (marketing)/     # Public pages (landing, blog, docs)├── (saas)/          # Protected app (dashboard, settings)└── api/             # API routes (auth, webhooks, tRPC)components/          # React componentsconfig/              # App, auth, billing configurationlib/                 # Core libraries (auth, billing, db, email)trpc/                # tRPC API routers

License

Achromatic License