快速开始
几分钟内创建您的第一个 Better-T-Stack 项目
设计理念
- 自选技术栈:只选择您需要的,没有多余内容。
- 最小化模板:零冗余的骨架脚手架。
- 最新依赖:默认始终保持最新且稳定。
- 免费开源:永久免费。
开始使用
先决条件
- Node.js LTS - 从 nodejs.org 下载
- Git (可选) - 从 git-scm.com 下载 - 如果您想初始化 git 仓库
- Bun (可选) - 从 bun.com 下载 - 如果您想使用 Bun 作为包管理器
CLI (交互式提示)
bun create better-t-stack@latestpnpm create better-t-stack@latestnpx create-better-t-stack@latest按照交互式提示选择您的前端、后端、数据库、ORM、API 层和附加组件。
跳过提示并使用默认技术栈:
bun create better-t-stack@latest --yespnpm create better-t-stack@latest --yesnpx create-better-t-stack@latest --yes技术栈构建器 (UI界面)
- 访问 /new 选择您的技术栈并复制生成的命令
- 或者通过以下方式打开:
bun create better-t-stack@latest builderpnpm create better-t-stack@latest buildernpx create-better-t-stack@latest builder常见配置
默认技术栈
bun create better-t-stack@latest my-webapp \
--frontend tanstack-router \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-auth \
--addons turborepopnpm create better-t-stack@latest my-webapp \
--frontend tanstack-router \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-auth \
--addons turboreponpx create-better-t-stack@latest my-webapp \
--frontend tanstack-router \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-auth \
--addons turborepoConvex + React + Clerk
bun create better-t-stack@latest my-convex-app \
--frontend tanstack-router \
--backend convex \
--auth clerkpnpm create better-t-stack@latest my-convex-app \
--frontend tanstack-router \
--backend convex \
--auth clerknpx create-better-t-stack@latest my-convex-app \
--frontend tanstack-router \
--backend convex \
--auth clerk纯 API
bun create better-t-stack@latest my-api \
--frontend none \
--backend fastify \
--runtime node \
--database postgres \
--orm prisma \
--api trpcpnpm create better-t-stack@latest my-api \
--frontend none \
--backend fastify \
--runtime node \
--database postgres \
--orm prisma \
--api trpcnpx create-better-t-stack@latest my-api \
--frontend none \
--backend fastify \
--runtime node \
--database postgres \
--orm prisma \
--api trpc移动应用 (Expo)
bun create better-t-stack@latest my-native \
--frontend native-nativewind \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-authpnpm create better-t-stack@latest my-native \
--frontend native-nativewind \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-authnpx create-better-t-stack@latest my-native \
--frontend native-nativewind \
--backend hono \
--database sqlite \
--orm drizzle \
--auth better-auth空 Monorepo
bun create better-t-stack@latest my-workspace \
--frontend none \
--backend nonepnpm create better-t-stack@latest my-workspace \
--frontend none \
--backend nonenpx create-better-t-stack@latest my-workspace \
--frontend none \
--backend none标志速查表
完整列表请参阅 CLI 参考。关键标志:
--frontend: tanstack-router, react-router, tanstack-start, next, nuxt, svelte, solid, native-nativewind, native-unistyles, none--backend: hono, express, fastify, elysia, next, convex, 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--addons: turborepo, pwa, tauri, biome, husky, starlight, fumadocs, ultracite, oxlint, ruler, none--examples: todo, ai, none