Documentation Index
Fetch the complete documentation index at: https://mintlify.com/amanvarshney01/create-better-t-stack/llms.txt
Use this file to discover all available pages before exploring further.
Create your first project
Get started with Better-T-Stack in three simple steps:Answer the prompts
The CLI will guide you through selecting your stack:
- Project name:
my-app(or your choice) - Frontend: Choose your frontend framework (or none for backend-only)
- Backend: Choose your backend framework (or none for frontend-only)
- Runtime: Bun, Node.js, or Cloudflare Workers
- Database: SQLite, PostgreSQL, MySQL, MongoDB, or none
- ORM: Drizzle, Prisma, Mongoose, or none
- API: tRPC, oRPC, or none
- Auth: Better-Auth, Clerk, or none
- Addons: Turborepo, PWA, Tauri, etc.
- Examples: Todo app, AI chat, or none
Quick examples
Skip prompts with default stack
Use the--yes flag to skip prompts and use sensible defaults:
- Frontend: TanStack Router
- Backend: Hono
- Runtime: Bun
- Database: SQLite
- ORM: Drizzle
- API: tRPC
- No auth, no examples
Full-stack web app with authentication
- Type-safe React frontend with TanStack Router
- Hono backend API running on Bun
- PostgreSQL database with Drizzle ORM
- tRPC for end-to-end type safety
- Better-Auth for authentication
- Turborepo monorepo setup
Next.js app with Prisma
- Next.js App Router frontend
- API routes in Next.js (no separate backend)
- PostgreSQL with Prisma ORM
- Better-Auth authentication
Cloudflare Workers API
- Hono API on Cloudflare Workers
- D1 (SQLite) database
- Alchemy deployment configuration
- Ready to deploy with
bun run deploy
Convex backend with Clerk auth
- React frontend with TanStack Router
- Convex real-time backend
- Clerk authentication
- No database setup needed (Convex handles it)
Mobile app (React Native)
- Expo React Native app with NativeWind (Tailwind CSS)
- Shared Hono backend
- Type-safe API with tRPC
- Better-Auth authentication
Backend-only API
- Express backend on Node.js
- MySQL database with Drizzle ORM
- RESTful API structure
Frontend-only app
- Next.js frontend only
- No backend or database
- Perfect for connecting to existing APIs
Monorepo with web + mobile
- Web app (TanStack Router)
- Mobile app (React Native)
- Shared backend (Hono)
- Shared database and API
- Turborepo for monorepo management
With examples included
- Full-stack setup
- Todo CRUD example
- AI chat example
- Learn from working code
Use the visual Stack Builder
Not sure which options to choose? Use the interactive Stack Builder:- Shows all available options
- Validates compatibility in real-time
- Generates the exact CLI command
- Can be bookmarked for reuse
After project creation
Once your project is created, here’s what to do next:Set up your database
If you chose a database:For cloud providers:See the Database setup guide for detailed instructions.
- Sign up for your provider (Turso, Neon, Supabase, etc.)
- Create a database
- Add connection string to
.env: - Apply schema:
Understanding the project structure
Your generated project follows a clean monorepo layout:Common next steps
CLI commands
Learn all CLI commands and options
Project structure
Understand the generated project layout
Database setup
Configure your database provider
Examples
Learn from Todo and AI examples
Add command
Add more features after creation
Deployment
Deploy your project to production
Flags cheat sheet
Quick reference for common CLI flags:--frontend: tanstack-router, react-router, tanstack-start, next, nuxt, svelte, solid, native-bare, native-uniwind, native-unistyles, none--backend: hono, express, fastify, elysia, convex, self, none--runtime: bun, node, workers, none--database: sqlite, postgres, mysql, mongodb, none--orm: drizzle, prisma, mongoose, none--api: trpc, orpc, none--auth: better-auth, clerk, none--payments: polar, none--addons: turborepo, pwa, tauri, biome, lefthook, husky, starlight, fumadocs, oxlint, ruler, mcp, opentui, wxt, skills--examples: todo, ai, none--db-setup: turso, neon, supabase, prisma-postgres, planetscale, mongodb-atlas, d1, docker, none--web-deploy: cloudflare, none--server-deploy: cloudflare, none
Tips
Start simple, add later
Start simple, add later
Don’t try to add everything at once. Start with core features, then use the
add command to add more addons:Use the Stack Builder to learn
Use the Stack Builder to learn
Even if you prefer the CLI, use the Stack Builder to discover which combinations work together and explore available options.
Check compatibility first
Check compatibility first
Not all options work together. Check the compatibility guide before creating your project, or use the Stack Builder which enforces compatibility automatically.
Try the examples
Try the examples
Add
--examples todo ai to your first project to see working patterns for common use cases. You can always delete them later.Bookmark your favorite setups
Bookmark your favorite setups
Once you find a stack you like, save the command or bookmark the Stack Builder URL for future projects.
Need help?
Troubleshooting
Common issues and solutions
FAQ
Frequently asked questions
GitHub Discussions
Ask the community
Compatibility
Check valid stack combinations