基于 Next.js 16 App Router、React 与 Shadcn UI 构建的前端仪表盘
uiframe — Next.js 后台模板
作者 theblueprintcode
The Blueprint Engine 的前端仪表盘 uiframe,基于 Next.js App Router、React 与 Shadcn UI,通过环境变量连接 NestJS 后端引擎。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 NEXT_PUBLIC_API_BASE_URL 连接 NestJS 后端引擎,默认后端地址为 http://localhost:5201
内置多租户架构:登录需提供 accountId,JWT 携带租户范围并自动应用于后续 API 调用
提供动态表单生成器,依据 JSON 元数据生成 Zod schema 与 react-hook-form 组件
开发服务器默认运行在 5200 端口,避免与后端 5201 端口冲突
模板详细介绍
uiframe 是 The Blueprint Engine 的前端部分,README 将其定位为连接 NestJS 后端引擎的仪表盘界面。技术栈为 Next.js 16(App Router)、React 和 Shadcn UI,依赖安装推荐使用 Bun,也支持 Node.js v20+。
使用前需要后端 engine 运行在 http://localhost:5201,并在 .env.local 中配置 NEXT_PUBLIC_API_BASE_URL 指向后端 API。开发服务器默认运行在 5200 端口,以避免与后端冲突。
前端内置多租户支持:登录时需提供 accountId(平台管理员使用 __root__),JWT 令牌携带租户范围,后续 API 调用自动继承该范围,界面根据用户角色与账户范围条件渲染租户级或平台级操作。
项目还提供动态表单生成器,可根据 JSON 元数据生成 Zod 校验 schema 和 react-hook-form 组件,输出到 src/components/forms/。README 未提供生产构建、部署流程或测试相关的说明。
适合你的项目吗?
适用场景
- 为 The Blueprint Engine 的 NestJS 后端搭建配套的前端管理仪表盘
- 在本地同时运行前后端,开发多租户场景下的用户、角色、认证与设置页面
- 通过 JSON schema 快速生成带 Zod 校验的表单组件
适合人群
- 使用 The Blueprint Engine 后端并需要对应前端界面的开发者
- 需要多租户登录与租户范围隔离的管理后台项目
- 使用 Bun 或 Node.js v20+ 并熟悉 Next.js App Router 的前端开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
安装依赖:在 uiframe 目录执行 bun install
- 2
创建 .env.local 并设置 NEXT_PUBLIC_API_BASE_URL=http://localhost:5201/api/v1
- 3
确保后端 engine 已在 http://localhost:5201 运行,否则 API 调用会失败
- 4
执行 bun run dev 启动开发服务器,默认端口为 5200
- 5
生成表单:准备 schema.json 后执行 bun run generate:form --schema=schema.json
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 使用前必须让 engine 后端运行在 http://localhost:5201,否则 API 调用会失败。
- 需要在 uiframe 根目录创建 .env.local 并配置后端地址,否则前端无法连接后端。
- 必须设置 NEXT_PUBLIC_API_BASE_URL 指向 NestJS 后端 API 地址。
- 登录时必须提供 accountId,平台管理员需使用 __root__。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
- The `engine` backend should be running on `http://localhost:5201` for the API calls to succeed.
README 原文
Create a `.env.local` file in the root of the `uiframe` directory. The primary configuration needed is pointing the dashboard to the backend engine.
README 原文
NEXT_PUBLIC_API_BASE_URL=http://localhost:5201/api/v1
README 原文
https://github.com/theblueprintcode/uiframe/blob/main/LICENSEhttps://github.com/theblueprintcode/uiframe/blob/main/README.md- **Login Flow**: When users log in, they must provide an `accountId` (or `__root__` for platform admins).
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-14。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 88 / 100
- 技术栈
- Next.js · React
- 网站类型
- 后台 · 工具站
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-04
- 截图检查日期
- 2026-10-14
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: c99b48eb19f8affa233174e0566c6b288ec366871c6af85bc018e4ed09054f0d
2026-10-14T23:05:49.028Z
来源文件 / 仓库
# The Blueprint Engine - UI Frame (Frontend)
Welcome to the **uiframe** of The Blueprint Engine! This frontend is built using Next.js 16 (App Router), React, and Shadcn UI. It is designed to connect seamlessly to the NestJS engine backend.
This README focuses strictly on setting up and configuring the frontend dashboard environment.
## 🚀 Getting Started
### Prerequisites
- [Bun](https://bun.sh/) (Recommended) or Node.js (v20+)
- The `engine` backend should be running on `http://localhost:5201` for the API calls to succeed.
### 1. Installation
Clone the repository and install the dependencies using Bun:
```bash
cd uiframe
bun install
```
### 2. Environment Configuration
Create a `.env.local` file in the root of the `uiframe` directory. The primary configuration needed is pointing the dashboard to the backend engine.
```env
# Point to your local NestJS Engine instance
NEXT_PUBLIC_API_BASE_URL=http://localhost:5201/api/v1
```
### 3. Running the Development Server
Start the development server. By default, we have configured it to run on port `5200` to avoid conflicts with the backend.
```bash
bun run dev
```
Open [http://localhost:5200](http://localhost:5200) in your browser. You should see the dashboard!
## 🏢 Multi-Tenancy Architecture
This frontend supports a multi-tenant architecture out-of-the-box, matching the backend engine's tenant capabilities.
- **Login Flow**: When users log in, they must provide an `accountId` (or `__root__` for platform admins).
- **Session Management**: Once authenticated, the JWT token provided by the backend contains the tenant scope. All subsequent API calls automatically inherit this scope.
- **Tenant Context**: The UI conditionally renders tenant-specific actions versus platform-wide actions depending on the user's role and account scope.
## 🛠️ Built-In Generators
We have created specialized CLI tools to speed up your frontend development.
### Dynamic Form Generator
Generate full Zod validation schemas and `react-hook-form` UI components instantly using JSON metadata.
1. Create a `schema.json`:
```json
{
"entityName": "Product",
"fields": [
{ "name": "title", "type": "string", "required": true, "ui": "input" },
{ "name": "price", "type": "number", "ui": "number-input" }
]
}
```
2. Run the generator:
```bash
bun run generate:form --schema=schema.json
```
This automatically outputs a wired-up React component and Schema into `src/components/forms/`.
## 📁 Project Structure
- `src/app/(main)`: The primary dashboard pages (Users, Roles, Auth, Settings, CRM, etc.).
- `src/lib/api-client.ts`: The core Fetch wrapper configuring JWT tokens, interceptors, and error handling for the backend engine.
- `src/components/ui`: The Shadcn UI primitive components.
- `scripts/`: Custom CLI tools for code generation.
## 🤝 Need Help?
Ensure your backend engine is running. For any UI-specific component modifications, refer to the [Shadcn UI documentation](https://ui.shadcn.com/).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

next-shadcn-dashboard-starter
Free, open source, AI-friendly admin dashboard template built with Next.js 16, shadcn/ui, Tailwind CSS, and Ty…
Next.js · 后台

Studio Admin · Radix UI
Modern Admin Dashboard Template built with Shadcn UI and Next.js 16
Next.js · 后台

free-nextjs-admin-dashboard
TailAdmin is a Next.js and Tailwind CSS free, open-source admin dashboard template. Provides developers with t…
Next.js · 后台

materio-mui-nextjs-admin-template-free
An enterprise-grade Next.js admin dashboard template. Made with developer experience first: Next.js v14 (App R…
Next.js · 后台

full-stack-ai-agent-template
Full-stack AI app generator — FastAPI + Next.js with AI Agents, RAG, streaming, auth, and 20+ integrations out…
Next.js · 工具站

tiktokenizer
tiktokenizer 是一个开源的在线工具站项目,核心功能是计算文本对应的 token 数量,服务于 openai/tiktoken 库。
Next.js · 工具站
