Kickstart your next project with a modern, scalable, and type-safe monorepo template.
Production-ready, batteries included, and easy to extend.
bun create turbo@latest --example https://github.com/KitsuneKode/template-nextjs-express-trpc-bettera-auth-monorepo
cd my-app
bun install
bun devRequires Bun: Bun
This repo now includes a purpose-built bootstrap CLI called
create-kitsu-stack.
bun run dev:cli -- my-appSee docs/bootstrap-cli.md for the current local workflow and generated
features.
- Full-Stack Ready: Next.js frontend, Express backend, tRPC for typesafe APIs.
- Ultra-Fast Tooling: Powered by Bun for rapid installs and scripts.
- Type Safety: End-to-end TypeScript, including API contracts.
- Modular Auth: Plug-and-play authentication package.
- Reusable UI: Shared component library for consistent design.
- Monorepo Power: Code sharing and easy scaling with Turborepo.
- Production Best Practices: Pre-configured for real-world deployments.
apps/
api/ # Express backend (tRPC, Auth, Prisma)
client/ # Next.js frontend (tRPC client, UI)
packages/
auth/ # Authentication logic(better-auth)
store/ # Prisma schema & DB access
trpc/ # tRPC routers & helpers
ui/ # Shared UI components
common/ # Shared types & utilities
backend-common/ # Backend-specific shared code
-
Install dependencies (with Bun):
bun install
-
Start development (all apps/packages):
bun dev
-
Build everything:
bun run build
-
Add shadcn component to your app
bunx --bun shadcn@latest add <component-name> --c apps/web
-
Audit and clean the starter when you begin product work
bun run repo:doctor bun run template:clean:dry
-
Commit with the enforced Conventional Commit format
Example:
feat(auth): add google provider
- Easy Initial Setup: Get started in minutes, not hours.
- Type-Safe Everywhere: No more guessing types between client and server.
- Scalable & Maintainable: Modular structure for growing teams and projects.
- Modern Stack: Stay up-to-date with the latest best practices.
- Ready for Production: Sensible defaults and extensible configuration.
bun run repo:doctoraudits stale scaffolding, broken package exports, placeholder files, and doc drift.bun run template:clean:drypreviews the opinionated cleanup plan for teams that want to strip demo and template baggage quickly.bun run template:cleanapplies that cleanup plan.bun run commit:checkvalidates the latest commit message.
MIT
Want to contribute? Add badges, contribution guidelines, or a screenshot/demo section!