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.
Overview
bts.jsonc is a configuration file automatically created in your project root when you scaffold a new Better-T-Stack project. It captures all your stack choices and enables the CLI to understand your project structure for future operations.
Location
File Format
The file uses JSONC (JSON with Comments) format and includes a$schema reference for editor autocomplete and validation:
Schema Reference
The configuration follows theBetterTStackConfigFileSchema defined in packages/types/src/schemas.ts:194-203.
Core Fields
CLI version used to create the project (e.g.,
"1.0.0")ISO 8601 timestamp when the project was created
The exact command used to create this project, useful for recreating the same configuration
Stack Configuration
Frontend framework(s) selected. Possible values:
tanstack-routerreact-routertanstack-startnextnuxtsveltesolidastronative-bare,native-uniwind,native-unistyles(React Native)none
Backend framework. Options:
hono, express, fastify, elysia, convex, self, noneRuntime environment:
bun, node, workers, noneDatabase type:
sqlite, postgres, mysql, mongodb, noneORM/database client:
drizzle, prisma, mongoose, noneAPI layer:
trpc, orpc, noneAuthentication provider:
better-auth, clerk, nonePayment integration:
polar, noneAdditional Options
Additional tools and features:
turborepo- Monorepo build systempwa- Progressive Web App supporttauri- Desktop app wrapperbiome,oxlint- Linting toolslefthook,husky- Git hooksstarlight,fumadocs- Documentationruler- Project rulesmcp,skills,ultracite,opentui,wxt- Advanced featuresnone
Example templates:
todo, ai, or empty arrayDatabase hosting setup:
turso- Turso (SQLite)neon- Neon (Postgres)supabase- Supabase (Postgres)prisma-postgres- Prisma Postgresplanetscale- PlanetScale (MySQL)mongodb-atlas- MongoDB Atlasd1- Cloudflare D1docker- Local Dockernone
Web deployment target:
cloudflare, noneServer deployment target:
cloudflare, nonePackage manager:
npm, pnpm, bunUsage by CLI
Project Detection
The CLI readsbts.jsonc to detect existing projects:
Configuration Updates
Theadd command can update specific fields while preserving comments:
Editor Support
The$schema field enables IDE features:
Autocomplete
Get field suggestions as you type in VS Code, Cursor, or other editors that support JSON Schema
Can You Delete It?
Yes,bts.jsonc can be safely deleted for normal development. Your generated code in apps/* and packages/* remains the source of truth.
Example Configurations
Full-Stack T3-style App
API-Only Backend
Serverless with Convex
Related
add Command
Use bts.jsonc to add features to existing projects
Project Structure
See how configuration affects generated layouts