MCPcopy Index your code
hub / github.com/AmanVarshney01/create-better-t-stack

github.com/AmanVarshney01/create-better-t-stack @v3.35.2 sqlite

repository ↗ · DeepWiki ↗ · release v3.35.2 ↗
1,164 symbols 3,433 edges 353 files 5 documented · 0%
README

Better-T-Stack

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

Vercel OSS Program

Sponsors

Sponsors

demo

Philosophy

  • Roll your own stack: you pick only the parts you need, nothing extra.
  • Minimal templates: bare-bones scaffolds with zero bloat.
  • Latest dependencies: always use current, stable versions by default.
  • Free and open source: forever.

Quick Start

# Using bun (recommended)
bun create better-t-stack@latest

# Using pnpm
pnpm create better-t-stack@latest

# Using npm
npx create-better-t-stack@latest

Claude Code plugin

Want your AI assistant to scaffold and extend projects with Better-T-Stack? Install the plugin and it will plan a valid stack and generate it through the bundled MCP server instead of hand-rolling boilerplate.

/plugin marketplace add AmanVarshney01/create-better-t-stack
/plugin install better-t-stack@better-t-stack

Then ask: "create a fullstack app with Next, Hono, Postgres and Better Auth", or run /better-t-stack:new <description>. See plugin/ and the Agent Workflows docs.

Features

  • Frontend: React (TanStack Router, React Router, TanStack Start), Next.js, Nuxt, Svelte, Solid, Astro, React Native (Bare, NativeWind, Unistyles), or none
  • Backend: Hono, Express, Fastify, Elysia, Self (fullstack web app), Convex, or none
  • API: tRPC or oRPC (or none)
  • Runtime: Bun, Node.js, or Cloudflare Workers
  • Databases: SQLite, PostgreSQL, MySQL, MongoDB (or none)
  • ORMs: Drizzle, Prisma, Mongoose (or none)
  • Auth: Better Auth or Clerk (optional)
  • Addons: Turborepo, Nx, PWA, Tauri, Electrobun, Biome, Lefthook, Husky, Starlight, Fumadocs, Ultracite, Oxlint, MCP, OpenTUI, WXT, Skills
  • Examples: Todo, AI
  • DB Setup: Turso, Neon, Supabase, Prisma PostgreSQL, MongoDB Atlas, Cloudflare D1, Docker
  • Web Deploy: Cloudflare Workers

Type safety end-to-end, clean monorepo layout, and zero lock-in: you choose only what you need.

Repository Structure

This repository is organized as a monorepo containing:

  • CLI: apps/cli - The scaffolding CLI tool
  • Documentation: apps/web - Official website and documentation
  • Plugin: plugin - Claude Code plugin (MCP server + skills + commands + agent)

Documentation

Visit better-t-stack.dev for full documentation, guides, and examples. You can also use the visual Stack Builder at https://better-t-stack.dev/new to generate a command for your stack.

Development

# Clone the repository
git clone https://github.com/AmanVarshney01/create-better-t-stack.git

# Install dependencies
bun install

# Start CLI development
bun dev:cli

# Start website development
bun dev:web

Want to contribute?

Please read the Contribution Guide first and open an issue before starting new features to ensure alignment with project goals.

Star History

Star History Chart

Extension points exported contracts — how you extend this code

VirtualFile (Interface)
(no doc)
packages/template-generator/src/types.ts
TestResult (Interface)
(no doc)
apps/cli/test/test-utils.ts
TechBadgeProps (Interface)
(no doc)
apps/web/src/components/ui/tech-badge.tsx
DistTags (Interface)
(no doc)
scripts/cleanup-previews.ts
VirtualDirectory (Interface)
(no doc)
packages/template-generator/src/types.ts
TestConfig (Interface)
(no doc)
apps/cli/test/test-utils.ts
ShareDialogProps (Interface)
(no doc)
apps/web/src/components/ui/share-dialog.tsx
VirtualFileTree (Interface)
(no doc)
packages/template-generator/src/types.ts

Core symbols most depended-on inside this repo

runTRPCTest
called by 280
apps/cli/test/test-utils.ts
expectSuccess
called by 206
apps/cli/test/test-utils.ts
cn
called by 143
apps/web/src/lib/utils.ts
addPackageDependency
called by 112
packages/template-generator/src/utils/add-deps.ts
readFile
called by 92
packages/template-generator/src/core/virtual-fs.ts
processTemplatesFromPrefix
called by 79
packages/template-generator/src/template-handlers/utils.ts
expectError
called by 70
apps/cli/test/test-utils.ts
exists
called by 64
packages/template-generator/src/core/virtual-fs.ts

Shape

Function 1,057
Interface 53
Method 30
Class 24

Languages

TypeScript100%

Modules by API surface

apps/cli/src/helpers/addons/evlog-setup.ts43 symbols
apps/cli/src/utils/errors.ts33 symbols
packages/types/src/json-schema.ts25 symbols
packages/template-generator/src/core/virtual-fs.ts25 symbols
packages/template-generator/src/post-process/package-configs.ts22 symbols
apps/cli/src/utils/compatibility-rules.ts22 symbols
apps/cli/src/prompts/navigable.ts20 symbols
apps/cli/src/helpers/core/post-installation.ts20 symbols
packages/template-generator/src/processors/readme-generator.ts17 symbols
apps/web/src/components/ui/kibo-ui/code-block/index.tsx17 symbols
apps/cli/test/matrix/oracle.ts17 symbols
apps/cli/src/utils/config-validation.ts17 symbols

Dependencies from manifests, versioned

@base-ui/react1.4.1 · 1×
@base-ui/utils0.2.8 · 1×
@better-t-stack/backendworkspace:* · 1×
@better-t-stack/template-generatorworkspace:* · 1×
@better-t-stack/types3.35.2 · 1×
@clack/core1.4.1 · 1×
@clack/prompts1.5.1 · 1×
@convex-dev/crons0.2.0 · 1×
@erquhart/convex-oss-statscatalog: · 1×
@modelcontextprotocol/sdk1.29.0 · 1×
@number-flow/react0.6.0 · 1×
@orama/orama3.1.18 · 1×

Datastores touched

(mongodb)Database · 1 repos
(mysql)Database · 1 repos
mydbDatabase · 1 repos
postgresDatabase · 1 repos
DATABASE_NAMEDatabase · 1 repos
mydatabaseDatabase · 1 repos
mydbDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add create-better-t-stack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact