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.
General Questions
What is Better-T-Stack?
What is Better-T-Stack?
- Roll your own stack: pick only what you need
- Minimal templates with zero bloat
- Latest dependencies by default
- Full type safety end-to-end
- Free and open source
Do I need to install anything globally?
Do I need to install anything globally?
Which package managers are supported?
Which package managers are supported?
- npm (default)
- pnpm
- bun (recommended)
--package-manager.What Node.js version is required?
What Node.js version is required?
Can I use this with an existing project?
Can I use this with an existing project?
create command is designed for new projects. However:- You can use the
addcommand to extend an existing Better-T-Stack project with additional addons - You can manually migrate code from an existing project into a new Better-T-Stack scaffold
- The generated project structure is standard TypeScript/monorepo, so you can integrate it as needed
Where do generated files live?
Where do generated files live?
Choosing Your Stack
Does the CLI recommend a specific stack?
Does the CLI recommend a specific stack?
--yes flag uses a default stack (TanStack Router + Hono + Drizzle + SQLite), but this is just a convenience option.See Compatibility for rules about valid combinations.I'm unsure between tRPC and oRPC
I'm unsure between tRPC and oRPC
- You want the most mature, battle-tested solution
- You need extensive community resources and examples
- You’re building a traditional client-server app
- You want a lighter, more modern alternative
- You prefer a simpler API surface
- You’re interested in newer patterns
I'm unsure between Drizzle and Prisma
I'm unsure between Drizzle and Prisma
- You want SQL-like queries with TypeScript
- You prefer lightweight and fast
- You want full control over SQL
- You’re using Cloudflare Workers (better D1 support)
- You want a higher-level abstraction
- You prefer declarative schema definitions
- You need advanced features like migrations UI
- You want the most mature ecosystem
What's the difference between Better Auth and Clerk?
What's the difference between Better Auth and Clerk?
- Open-source, self-hosted authentication
- No vendor lock-in
- Free for unlimited users
- Full control over data and privacy
- Supports social logins, email/password, passkeys
- Managed authentication service
- Easier initial setup (less configuration)
- Generous free tier, paid plans for scale
- Advanced features like organizations, admin UI
- Great developer experience
Can I use multiple frontends?
Can I use multiple frontends?
apps/web/- Web frontend (TanStack Router)apps/native/- React Native app (with NativeWind)- Both can share the same backend and type definitions
Common Issues
My mobile app can't connect to the backend (Expo)
My mobile app can't connect to the backend (Expo)
-
Set the correct server URL
Replace
YOUR_IPwith your machine’s IP address (notlocalhost). - Check your firewall Ensure your firewall allows connections on the backend port (usually 3000).
-
Use Expo tunnel
This creates a tunnel that bypasses local network issues.
- Verify backend is running Make sure your backend server is running and accessible.
How do I disable telemetry?
How do I disable telemetry?
BTS_TELEMETRY_DISABLED environment variable:For a single run:The CLI fails with compatibility errors
The CLI fails with compatibility errors
- Mongoose requires MongoDB database
- Prisma doesn’t support MongoDB with other databases
- tRPC/oRPC requires a backend (can’t use with
--backend none) - Cloudflare Workers runtime has specific constraints
--yolo flag to bypass checks (not recommended), or see Compatibility for valid combinations.Dependencies fail to install
Dependencies fail to install
-
Clear cache
-
Delete and reinstall
-
Use a different package manager
TypeScript errors after generation
TypeScript errors after generation
-
Install dependencies first
-
Restart your TypeScript server
In VS Code:
Cmd+Shift+P→ “TypeScript: Restart TS Server” - Check your Node version Ensure you’re using Node.js 20 or higher.
Database setup fails
Database setup fails
- Usually works out of the box
- Check file permissions in your project directory
- Ensure Docker is running
- Check that ports aren’t already in use
- Try
docker-compose up -dmanually
- Verify your API credentials
- Check network connectivity
- Ensure you have the correct permissions
--manual-db and configure it manually later.Advanced Usage
Can I customize the generated templates?
Can I customize the generated templates?
- Modify any generated files
- Add new dependencies
- Change folder structure
- The code is yours!
How do I use the programmatic API?
How do I use the programmatic API?
Can I use custom templates?
Can I use custom templates?
- You can modify templates after generation
- You can fork the repository and modify templates in
packages/template-generator/templates - Custom template support may be added in the future
What's in the project history?
What's in the project history?
- Project name and path
- Stack configuration
- Creation timestamp
--clear.