Open-source ยท MIT License

Ship your SaaS
in days, not months

A batteries-included monorepo starter with auth, multi-tenant API, background jobs, a full design system, and a CI/CD pipeline โ€” all wired together and ready to ship.

Everything you need to build a SaaS

Every plugin is independently publishable to npm under @sb-codex.

๐Ÿ”

Auth out of the box

Email/password + Google OAuth via better-auth. Session management, CSRF protection, email verification included.

๐Ÿข

Multi-tenant by design

Every table has workspace_id. Row-level security enforced at the database layer โ€” no manual WHERE clauses.

โšก

End-to-end type safety

tRPC v11 + Zod schemas shared between Fastify and React. Refactor a procedure and TypeScript catches the breakage.

๐ŸŽจ

Design system included

Radix UI primitives + Tailwind v4 + Recharts. StatCard, charts, dialogs, forms โ€” all ready to use.

๐Ÿ”„

Background jobs

BullMQ + Valkey queues for email, exports, search indexing, and webhooks. Typed payloads, retries built-in.

๐Ÿš€

CI/CD on day one

GitHub Actions โ†’ GHCR โ†’ VPS. Docker Compose + Traefik + Let's Encrypt. Push to main and it ships.

Modern stack, no lock-in

Carefully chosen defaults โ€” swap anything you need.

React 19FrontendNext.js 15MarketingTanStack RouterFrontendFastify 5BackendtRPC v11APIDrizzle ORMDatabasePostgreSQLDatabasebetter-authAuthBullMQJobsValkeyCacheTailwind v4StylingTurborepoMonorepo

Ready to ship?

Bootstrap a new project in one command. Plugins from npm, no packages/ directory, just your app code.

pnpm create @sb-codex/sb-app@latest