bts.jsonc
What bts.jsonc does and why it matters
bts.jsonc is a small config file written to your project root when you create a project. It captures the stack choices you selected (frontend, backend, API, DB/ORM, auth, addons, etc.). The file uses JSONC (JSON with comments) and includes a schema for editor hints.
Where: ./bts.jsonc
add command to detect your current stackIf bts.jsonc is missing, the add command cannot run because the project cannot be detected.
It’s safe to delete for normal development; the generated code in apps/* and packages/* remains the source of truth. However, if you plan to use the add command later, you must keep bts.jsonc so the CLI can detect your project.
The file is JSONC with comments enabled and includes a $schema URL for tooling.
// Better-T-Stack project metadata
//
// Keep this file to use the `add` command.
// Add addons: bunx create-better-t-stack@latest add
//
// Docs: https://www.better-t-stack.dev/docs
// Stack Builder: https://www.better-t-stack.dev/new
{
"$schema": "https://r2.better-t-stack.dev/schema.json",
"version": "x.y.z",
"createdAt": "2025-01-01T00:00:00.000Z",
"reproducibleCommand": "bun create better-t-stack@latest my-app --frontend tanstack-router ...",
"frontend": ["tanstack-router"],
"backend": "hono",
"runtime": "bun",
"database": "sqlite",
"orm": "drizzle",
"api": "trpc",
"auth": "better-auth",
"payments": "none",
"addons": ["turborepo"],
"addonOptions": {
"wxt": {
"template": "react",
},
},
"examples": [],
"dbSetup": "none",
"dbSetupOptions": {
"mode": "manual",
},
"webDeploy": "none",
"serverDeploy": "none",
"packageManager": "bun",
}Notes:
reproducibleCommand contains the normal CLI command generated when the project was createdaddonOptions or dbSetupOptions and may not be fully represented in the one-line commandaddonOptions stores nested configuration for prompt-driven addonsdbSetupOptions stores structured database setup behavior for automationadd (addons and addon-specific config)See also: add command