Next.js 15 App Router 与严格 TypeScript 配置
website-boilerplate-nextjs — Next.js 启动器模板
作者 AlexanderTsalas
基于 Next.js App Router 的网站起始模板,集成 Supabase SSR 认证、Drizzle ORM、Tailwind CSS 与 Shadcn/UI 组件,按 README 提供目录结构与 8px 网格样式约定。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 middleware.ts 实现 Supabase SSR 路由保护与会话管理
Drizzle ORM 管理数据库 schema,支持 drizzle-kit push 推送
Tailwind CSS v4 配合 8px 网格与 glass 毛玻璃工具类
Shadcn/UI 原子组件与 sections 区块分离的目录结构
Framer Motion 动画与 Phosphor Icons 图标库
模板详细介绍
该模板是面向机构与工程师的网站起始项目,README 将其定位为“Golden Stack”基础,采用 Next.js 15 App Router、严格 TypeScript、Tailwind CSS v4、Shadcn/UI、Supabase SSR、Drizzle ORM、Framer Motion 与 Phosphor Icons。功能方面,README 说明通过 middleware.ts 实现 Supabase SSR 集成以进行路由保护和会话管理,并预置了语义化 SEO 与页面性能相关配置。目录结构按 src/app、src/components/ui、src/components/sections、src/lib/supabase、src/db、src/types 划分,区分原子组件、区块组件与服务端/客户端边界。样式规则要求遵循 8px 网格间距、标题使用 text-balance 与 tracking-tight,并提供 glass 工具类用于毛玻璃效果。数据库 schema 位于 src/db/schema.ts,通过 drizzle-kit push 推送至 Supabase。README 未提供具体框架版本号、性能基准数据或生产环境部署说明,也未说明除 Supabase 外的其他集成方式。
适合你的项目吗?
适用场景
- 需要 Supabase 认证与数据库的 Next.js 网站项目起步
- 按原子设计与区块划分组织前端组件的开发流程
- 使用 Drizzle ORM 定义并推送数据库 schema 到 Supabase
- 遵循 8px 网格与毛玻璃样式约定搭建界面
适合人群
- 熟悉 Next.js App Router 与 TypeScript 的开发者
- 使用 Supabase 作为后端服务的项目
- 需要预置目录结构与样式约定的网站起始项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install(或 yarn/pnpm install)安装依赖
- 2
将 .env.example 重命名为 .env.local,填入 NEXT_PUBLIC_SUPABASE_URL、NEXT_PUBLIC_SUPABASE_ANON_KEY 与 DATABASE_URL
- 3
执行 npx drizzle-kit push 将 src/db/schema.ts 中的 schema 推送至 Supabase
- 4
执行 npm run dev 启动开发服务器,默认地址为 http://localhost:3000
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 使用前需将 .env.example 重命名为 .env.local 并填写 Supabase 凭据,因此必须拥有 Supabase 项目及相应账号。
- 需要提供 Supabase 项目 URL(NEXT_PUBLIC_SUPABASE_URL)才能运行。
- 需要提供 Supabase 匿名密钥(NEXT_PUBLIC_SUPABASE_ANON_KEY)才能运行。
- 需要提供 Supabase Postgres 连接字符串(DATABASE_URL)才能运行。
- 数据库初始化依赖 Supabase 服务,需先将 schema 推送至 Supabase。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Rename `.env.example` to `.env.local` and fill in your Supabase credentials:
README 原文
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
README 原文
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
README 原文
DATABASE_URL=your_supabase_postgres_connection_string
README 原文
https://github.com/AlexanderTsalas/website-boilerplate-nextjs/blob/master/LICENSEhttps://github.com/AlexanderTsalas/website-boilerplate-nextjs/blob/master/README.mdPush your initial database schema to Supabase:
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-14。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 80 / 100
- 技术栈
- Next.js · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-03-08
- 截图检查日期
- 2026-10-14
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: e889a3f16f58704f28ca29e0b655704a500eb8a99c5d54277a0d480770396c41
2026-10-14T15:57:44.250Z
来源文件 / 仓库# Master Boilerplate  The ultimate "Golden Stack" foundation for high-performance, premium web applications. Built for agencies and engineers who refuse to settle for mediocrity and demand zero technical debt. Free and open-source under the MIT License. ## The "Golden Stack" This boilerplate is strictly configured with the modern premium stack: - **Framework:** Next.js 15 (App Router) - **Language:** Strict TypeScript - **Styling:** Tailwind CSS v4 + 8px Spatial Grid System - **Components:** Shadcn/UI (Atomic design) - **Database & Auth:** Supabase SSR - **ORM:** Drizzle ORM - **Animations:** Framer Motion - **Icons:** Phosphor Icons ## Features - 🔒 **Secure by Default:** Full Supabase SSR integration via `middleware.ts` for route protection and session management. - ⚡ **Turbo-charged Performance:** Pre-configured for maximum PageSpeed metrics and semantic SEO. - 🎨 **Premium UI/UX:** Built with "Glassmorphism," smooth spring animations, and a strict 8px developer design system. - 🧱 **Scalable Architecture:** Pre-structured directories for isolated UI components, distinct sections, and isolated server/client boundaries. - 📝 **100% Type-Safe:** End-to-end type safety from the database schema to the front-end components. ## Getting Started ### 1. Clone the repository ```bash git clone https://github.com/your-username/master-boilerplate.git my-app cd my-app ``` ### 2. Install dependencies ```bash npm install # or yarn install / pnpm install ``` ### 3. Environment Variables Rename `.env.example` to `.env.local` and fill in your Supabase credentials: ```bash NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key DATABASE_URL=your_supabase_postgres_connection_string ``` ### 4. Database Setup (Drizzle ORM) Push your initial database schema to Supabase: ```bash npx drizzle-kit push ``` *Note: The schema is located at `src/db/schema.ts`.* ### 5. Start the Development Server ```bash npm run dev ``` Your app will be running at [http://localhost:3000](http://localhost:3000). --- ## Architectural Guidelines To maintain the integrity of this boilerplate, please adhere to the following rules: ### Directory Structure - `src/app/`: Next.js layouts, pages, and API routes. - `src/components/ui/`: Reusable, atomic components built with Shadcn. - `src/components/sections/`: Large logical blocks (Hero, Navbar, Footer). Always import these into your pages. - `src/lib/supabase/`: Supabase client configurations (`server.ts`, `client.ts`, `middleware.ts`). - `src/db/`: Database configuration and ORM schemas. - `src/types/`: Global TypeScript definitions, including `database.ts`. ### Styling Rules - Adhere to the **8px Grid** for padding/margins (e.g., `p-4`, `p-8`, `gap-8`). - Use `text-balance` and `tracking-tight` on headings for a premium presentation. - Use the `glass` utility class for sleek, frosted-glass components. --- ## Contributing Contributions are always welcome! Feel free to open an issue or submit a pull request if you want to improve the boilerplate. ## License This project is free and open-source software licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this software for any purpose, including commercial applications.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 启动器
