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
- 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
- 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.
MIT
Want to contribute? Add badges, contribution guidelines, or a screenshot/demo section!