A modern, type-safe, and high-performance SaaS starter template built with a monorepo architecture.
https://github.com/nrjdalal/zerostarter.git
A modern, type-safe, and high-performance SaaS starter template built with a monorepo architecture.
[!IMPORTANT]
ZeroStarter is currently in Release Candidate (RC) status. All implemented features are stable and production-ready. We're actively adding new features and integrations day-by-day.
[!NOTE]
For detailed information about the architecture and tech stack, see the Architecture documentation.
/api/docs.
βββ api/
β βββ hono/ # Backend API server (Hono)
βββ web/
β βββ next/ # Frontend application (Next.js)
βββ packages/
βββ auth/ # Shared authentication logic (Better Auth)
βββ db/ # Database schema and Drizzle configuration
βββ env/ # Type-safe environment variables
βββ tsconfig/ # Shared TypeScript configuration
π View full architecture β
We're actively working on integrations for AI, analytics, background tasks, email, payments, and more.
π View detailed roadmap β
Architecture & Best Practices as a Service β ZeroStarter isn't just a starter template, it's a complete blueprint for building production-ready SaaS applications with battle-tested patterns and practices.
[!NOTE]
For comprehensive details and examples, see the Type-Safe API documentation.
This starter utilizes Hono RPC to provide end-to-end type safety between the backend and frontend.
api/hono/src/routers are exported as AppType at api/hono/src/index.ts.web/next/src/lib/api/client.ts infers AppType request/response types using hono/client./api/docs powered by Scalar.import { apiClient } from "@/lib/api/client"
// Fully typed request and response
const res = await apiClient.health.$get()
const data = await res.json()
π Type-Safe API documentationβ
# Clone the template
bunx gitpick https://github.com/nrjdalal/zerostarter/tree/main
cd zerostarter
# Install dependencies
bun install
# Set up environment variables (see docs)
cp .env.example .env
# Set up database
bun run db:generate
bun run db:migrate
# Start development
bun dev
π Complete installation guide β
Contributions are welcome! Please read our contributing guidelines first.
π View contributing guidelines β
MIT License β see LICENSE.md for details.