基于 Turborepo 与 pnpm workspaces 的 monorepo 结构,前端 apps/web 使用 Next.js,API apps/api 使用 Fastify,共享包位于 packages/
blitzpack — Next.js 工具站模板
作者 CarboxyDev
Blitzpack 是一个基于 Turborepo 的全栈 TypeScript monorepo 模板,包含 Next.js 前端与 Fastify API,内置认证、管理后台、邮件系统与 API 文档等模块。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置 Better Auth 认证体系:邮箱密码注册登录、邮箱验证、密码重置、Google/GitHub OAuth、角色访问控制、会话管理与用户封禁
提供管理后台页面 /admin、/admin/users、/admin/sessions,包含系统监控、用户 CRUD 与会话管理
API 层包含 Zod 校验、Helmet 安全头、CORS、基于角色的限流、Pino 结构化日志与 Scalar 交互式文档
邮件系统使用 React Email 模板与 Resend 集成,开发环境支持控制台预览邮件
开发工具链包含 create-blitzpack CLI、Vitest 测试、Husky/lint-staged Git 钩子与 Docker Compose 本地 PostgreSQL
模板详细介绍
Blitzpack 是一个全栈 TypeScript monorepo 模板,仓库为 https://github.com/CarboxyDev/blitzpack。README 说明其使用 Turborepo 与 pnpm workspaces 组织代码,前端位于 apps/web(Next.js),API 位于 apps/api(Fastify),共享代码放在 packages/ 下的 types、utils、ui、tailwind-config 等包中。模板通过 pnpm create blitzpack 命令初始化,安装向导提供 Recommended、Platform-Agnostic、Modular 三种配置方案;选择 Modular 时可在脚手架生成前自定义功能。README 中列出的默认运行地址为 Web http://localhost:3000、API http://localhost:8080/api、API 文档 http://localhost:8080/docs。
功能方面,README 描述了基于 Better Auth 的认证与授权系统,包括邮箱密码注册与登录、邮箱验证、密码重置与修改、Google/GitHub OAuth、三种角色(user、admin、super_admin)的访问控制、7 天会话与自动刷新、用户封禁等;管理后台包含系统监控、用户管理、会话管理三个页面;API 层提供用户、会话、上传、统计、指标和管理操作等 REST 路由,使用 Zod 做请求/响应校验,包含 Helmet、CORS、基于角色的限流与 cookie 签名,使用 Pino 结构化日志,并通过 Scalar 生成交互式 API 文档。邮件系统使用 React Email 模板与 Resend 集成,开发环境可在控制台查看邮件。
开发体验方面,README 提到 create-blitzpack CLI、Vitest 测试、Husky 与 lint-staged 的 Git 钩子、Turborepo 缓存与并行执行、用于本地 PostgreSQL 的 Docker Compose,以及可选的 API/Web Dockerfile 和 CD 工作流。README 未说明具体部署平台、生产环境配置细节、性能指标或安全审计结论;预览截图仅证明存在桌面与移动端页面截图,不证明具体页面功能。
适合你的项目吗?
适用场景
- 需要快速搭建包含认证、管理后台与 API 文档的全栈 TypeScript 项目起点
- 希望以 monorepo 方式统一管理 Next.js 前端、Fastify API 与共享类型/工具包
- 需要在本地通过 Docker Compose 运行 PostgreSQL 并使用 Prisma 进行数据库迁移
- 需要为 AI 代理提供项目结构上下文,README 提到仓库包含 CLAUDE.md 文档
适合人群
- 熟悉 TypeScript、Next.js、Fastify 与 Prisma 的开发者
- 需要开箱即用认证与角色权限控制的全栈项目
- 偏好 pnpm 与 Turborepo 工作流的团队
- 希望使用 Docker 在本地运行 PostgreSQL 的开发环境
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
使用 pnpm create blitzpack 初始化项目,安装向导会引导完成创建并提示后续步骤
- 2
需要本机安装并运行 Docker,用于启动 PostgreSQL 等开发服务
- 3
初始化时选择 Recommended、Platform-Agnostic 或 Modular 配置;Modular 会在脚手架生成前打开功能自定义
- 4
README 中列出的默认地址:Web http://localhost:3000、API http://localhost:8080/api、API 文档 http://localhost:8080/docs
- 5
README 未提供生产环境部署平台、环境变量清单或 CD 配置的详细步骤
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 本地开发需要安装并运行 Docker,用于启动 PostgreSQL 等开发服务。
- Google 与 GitHub OAuth 需要配置相应环境变量后才能启用。
- 生产环境邮件发送依赖 Resend API 服务。
- 文件存储使用 AWS S3,需要相应的外部云服务。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
The setup wizard will guide you through project creation and next steps. Make sure you have Docker installed and running on your machine.
README 原文
- **OAuth Integration**: Google and GitHub OAuth providers ready to enable with environment variables.
README 原文
- **Resend Integration**: Production-ready email sending with Resend API.
README 原文
https://github.com/CarboxyDev/blitzpack/blob/main/LICENSEhttps://github.com/CarboxyDev/blitzpack/blob/main/README.md- AWS S3 for file storage
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-14。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 88 / 100
- 技术栈
- Next.js · React
- 网站类型
- 工具站 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-07-28
- 截图检查日期
- 2026-10-14
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: 827ded2c5e8cf3b58e9d8adc3e2239e3000155300626beb65cba7904ba600a5a
2026-10-14T11:39:31.794Z
来源文件 / 仓库<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="assets/logo-light.svg"> <img src="assets/logo-light.svg" alt="Blitzpack Logo" height="200"> </picture> <h1>Blitzpack</h1> <p>Full-stack TypeScript monorepo template with Next.js, Fastify, and Turborepo. From zero to production in hours.</p> [](LICENSE) [](https://nodejs.org/) [](https://pnpm.io/) [](https://www.typescriptlang.org/) [](https://github.com/CarboxyDev/blitzpack/actions/workflows/ci.yml) </div> ## Why Blitzpack? Most full-stack templates give you a folder structure and routing. Blitzpack gives you a complete, production-ready application with authentication, admin controls, API infrastructure, observability and several more battle-tested features. You get a solid frictionless foundation to build your next product on. What normally takes 2-3 weeks of infrastructure work is ready in a single command. - **Truly Production-Ready**: Auth flows, rate limiting, structured logging, testing infrastructure and more are configured for production from day one. - **Built for Zero Friction**: Unified tooling, shared packages, monorepo structure and full TypeScript support ensures that all components work seamlessly together. - **No Assembly Required**: Auth flows, email system, admin dashboard, and other core features are already wired up and ready to use. No more wasting time setting up from scratch. - **True full-stack type safety**: Zod schemas validate once, protect everywhere. From API requests to database queries to UI forms. - **Authentication Made Easy**: Login, Sign-up, Email verification, password reset, OAuth (Google/GitHub), role-based access control, session management, and user banning. All wired up and working. Not TODOs but actual implementations. - **Modern UI out of the box** - You get beautiful components with shadcn/ui, Tailwind v4, dark/light mode, theme support and smooth animations. - **Hassle-Free Database** - Prisma ORM with PostgreSQL, easy migrations and Docker setup that just works. - **AI Agent Ready**: The bundled CLAUDE.md documentation gives AI agents instant context about the structure. Ship faster with AI that understands your whole stack. ## Quick Start ```bash pnpm create blitzpack ``` The setup wizard will guide you through project creation and next steps. Make sure you have Docker installed and running on your machine. During setup, choose a profile: - **Recommended**: Core app with everything included. - **Platform-Agnostic**: Core app without dockerfiles. - **Modular**: Core app with features of your choice. If you choose **Modular**, the wizard opens feature customization before scaffolding. **What's running after setup:** - Web: [http://localhost:3000](http://localhost:3000) - API: [http://localhost:8080/api](http://localhost:8080/api) - API Docs: [http://localhost:8080/docs](http://localhost:8080/docs) ## Tech Stack **Web** - Next.js 16 - React 19 - Tailwind CSS v4 for styling - shadcn/ui for UI primitives - TanStack Query for server state - React Hook Form for forms - Recharts for data visualization **API** - Fastify 5 - Prisma 7 and PostgreSQL 17 - Better-auth for authentication - Pino for structured logging - Scalar for API docs - React Email and Resend for emails - AWS S3 for file storage **Monorepo** - Turborepo - pnpm workspaces - Vitest for testing - Husky and lint-staged for git hooks - Shared packages for types, utils, config in `packages/` ## Project Structure ``` blitzpack/ ├── apps/ │ ├── web/ # Next.js frontend (port 3000) │ │ ├── Dockerfile # Web container image (optional deployment) │ │ ├── src/ │ │ │ ├── app/ # Pages and layouts │ │ │ ├── components/ # React components │ │ │ ├── lib/ # API client, utilities │ │ │ ├── hooks/ # Custom React hooks │ │ │ └── store/ # Jotai state atoms │ │ └── public/ # Static assets │ │ │ └── api/ # Fastify API (port 8080) │ ├── Dockerfile # API container image (optional deployment) │ ├── src/ │ │ ├── routes/ # API endpoints │ │ ├── services/ # Business logic │ │ ├── plugins/ # Fastify plugins │ │ ├── hooks/ # Request hooks (auth, validation) │ │ └── config/ # Configuration files │ ├── prisma/ # Database schema & migrations │ └── emails/ # React Email templates │ ├── packages/ │ ├── types/ # Shared types and Zod schemas │ ├── utils/ # Shared utilities │ ├── ui/ # Shared UI components │ └── tailwind-config/ # Shared Tailwind configuration │ ├── deploy/ │ └── docker/ │ └── docker-compose.prod.yml # Local production Docker stack (optional) ├── docker-compose.yml # Development services (PostgreSQL) ├── .github/workflows/cd.yml # Optional CD pipeline for Docker image publishing ├── turbo.json # Turborepo configuration └── pnpm-workspace.yaml # pnpm workspaces configuration ``` ## Features ### Authentication & Authorization Production-ready auth system powered by Better Auth: - **Email/Password Auth**: User signup with email verification, secure password hashing, password reset flow, and password change functionality. - **OAuth Integration**: Google and GitHub OAuth providers ready to enable with environment variables. - **Role-Based Access Control**: Three user roles (user, admin, super_admin) with role-based route protection and API authorization. - **Session Management**: 7-day sessions with automatic refresh, secure cookie-based authentication, and cross-domain support. - **User Banning**: Ban users temporarily or permanently with custom reasons and automatic expiration handling. - **Email Verification**: Send verification emails on signup with resend capability and verification status tracking. **Included pages:** `/login`, `/signup`, `/forgot-password`, `/reset-password` ### Admin Dashboard Complete admin control panel with real-time monitoring and management: - **System Monitoring**: Real-time metrics dashboard with user growth trends, session activity, role distribution, and system health indicators. Auto-refresh functionality with configurable intervals. - **User Management**: Full CRUD operations on users with pagination, sorting, and filtering. Create, edit, ban/unban users with expiration dates, and manage user roles. - **Session Management**: View all active sessions across the platform, inspect session details (IP, device, timestamps), and revoke individual or all user sessions. **Included pages:** `/admin`, `/admin/users`, `/admin/sessions` ### API Infrastructure Battle-tested API architecture: - **Comprehensive Routes**: RESTful API endpoints for users, sessions, uploads, stats, metrics, and admin operations. - **Validation**: Automatic request/response validation with Zod schemas and type-safe route definitions. - **Security**: Helmet security headers, CORS configuration, role-based rate limiting, and cookie signing. - **Logging**: Structured logging with Pino featuring 4 verbosity levels, request ID tracing, and performance metrics. - **Documentation**: Auto-generated OpenAPI specs with interactive Scalar API documentation. ### Developer Experience Optimized workflows and tooling: - **CLI Tool**: `create-blitzpack` interactive setup wizard for instant project scaffolding. - **Comprehensive Scripts**: Development, build, test, lint, and database management commands. - **Testing Suite**: Vitest-powered unit and integration tests with coverage reporting. - **Git Hooks**: Pre-commit linting and formatting, pre-push type checking and testing. - **Turborepo**: Smart caching, parallel execution, and dependency tracking. - **Docker Compose**: PostgreSQL database containerized for consistent local development. - **Optional Deployment Assets**: Dockerfiles for API/Web plus CD workflow for image publishing. ### Email System Transactional email infrastructure with beautiful templates: - **React Email Templates**: Pre-built email templates for verification, password reset, password change, welcome, and account deletion. - **Resend Integration**: Production-ready email sending with Resend API. - **Development Preview**: Console logging of emails in development with React Email dev server.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

ai-website-cloner-template
Clone any website with one command using AI coding agents
Next.js · 启动器

Next.js SaaS Starter
Next.js SaaS Starter 是 Next.js 官方维护的 SaaS 起点模板,定位介于学习资源和可直接部署的脚手架之间。
Next.js · SaaS

Next.js Commerce
Next.js Commerce 是 Vercel 团队维护的电商启动模板,基于 Next.js App Router 构建,采用服务端渲染、React Server Components、Server Actions …
Next.js · 电商

Next-js-Boilerplate
Next-js-Boilerplate 是一个面向 Next.js 16、Tailwind CSS 4 和 TypeScript 的启动器,核心定位是开发者体验优先。
Next.js · 启动器

tailwind-nextjs-starter-blog
tailwind-nextjs-starter-blog 是一个面向个人技术博客的 Next.js 与 Tailwind CSS 启动模板,其 v2 版本基于 App Router 与 React Server Comp…
Next.js · 博客

next-forge
Production-grade Turborepo template for Next.js apps.
Next.js · 启动器
