SaaS Starter Kit
Translation pending
Developer toolsTypeScript · HTMLGitHub @forge-uiOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
AI 原生的企业级UI组件
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗| 平台 | 仓库 |
|---|---|
| GitHub(权威) | https://github.com/forge-ui/forge |
| Gitee | https://gitee.com/forgeui/forge |
| AtomGit | https://atomgit.com/bitlink/forge |
官方开发与 Issue / Release 以 GitHub 为准;Gitee、AtomGit 为国内镜像。
人和 AI 按同一套组件规则做后台:设计 token、React 组件、AppLayout、业务模板,以及一份可安装的 Forge Skill。
@forge-ui-official/core。颜色、字体、圆角、边框和密度不用每页重写。AppLayout 带 sidebar、topbar、profile、notification、language switcher、team switcher 和 page header。需要 React 19、Next.js 15 或以上、Tailwind v4,以及项目自行安装的 @solar-icons/react ^2.3.2。本仓库当前发布的组件包版本是 0.4.7。
从 Forge Starter 开始。里面有登录、后台壳和加模块的流程。
git clone https://github.com/forge-ui/forge-starter.git
cd forge-starter
pnpm install
pnpm dev
pnpm add @forge-ui-official/core
pnpm add -D tailwindcss @tailwindcss/postcss
在入口 CSS 里引入样式。@source 只保留和文件位置匹配的那一行,否则 Tailwind v4 扫不到组件里的 class。
@import "tailwindcss";
@import "@forge-ui-official/core/styles.css";
/* app/globals.css */
@source "../node_modules/@forge-ui-official/core/dist";
/* src/app/globals.css */
@source "../../node_modules/@forge-ui-official/core/dist";
import { AppLayout, Button, DataTable, SurfaceCard } from "@forge-ui-official/core";
更细的安装说明见文档站的快速开始。
| 做什么 | 从哪里开始 | |
|---|---|---|
@forge-ui-official/core | 组件、设计 token、AppLayout | pnpm add @forge-ui-official/core |
| Forge Starter | 后台脚手架:登录、样板模块、加页面 | git clone 后 pnpm dev |
| Forge Skill | 让 Codex、Claude Code、Cursor 按组件和 token 写页面 | 下面的安装脚本 |
| Forge Design Extension | 在真实 Chrome 页面上点选、放置组件并改界面 | 独立仓库的 README |
Forge Design Extension 是 Chrome 插件加本机桥接。它不替代组件库,也不替代 Starter。Starter 负责把后台跑起来,Design Extension 负责改已经跑起来的页面:点中要改的位置,侧边栏里的本地模型带着真实 selector 改文案、样式和交互,或把 Forge 组件写入源码;也可以从组件盘拖到锚点旁,确认后再写入。页面内容留在本机,不经过云端。安装方式是启动本机桥接,在 Chrome 里加载 extension/。
相关示例:forge-agent,一个基于 Forge 的 AI Agent 产品壳。
更多整页示例在模板目录:项目管理、客户关系、仪表盘外壳,以及 10 个已填数据的控制台。
写业务页之前,先读组件目录:
docs/for-agents/README.md:总入口docs/for-agents/routes.md:/cases/* 路由表docs/for-agents/components.md:组件用途和对应 case全量 export 清单在 docs/for-agents/inventory.json。
安装 Forge Skill:
# Claude Code / Cursor
curl -fsSL https://forgeui.org/install-skill.sh | bash
# Codex
curl -fsSL https://forgeui.org/install-skill.sh | FORGE_AGENT=codex bash
官网域名暂时不可用时,从 GitHub 安装同一份脚本:
# Claude Code / Cursor
curl -fsSL https://raw.githubusercontent.com/forge-ui/forge/main/public/install-skill.sh | bash
# Codex
curl -fsSL https://raw.githubusercontent.com/forge-ui/forge/main/public/install-skill.sh | FORGE_AGENT=codex bash
请用 Forge 生态创建一个新的后台原型项目。
Forge 仓库地址:https://github.com/forge-ui/forge
Forge Starter 地址:https://github.com/forge-ui/forge-starter
Forge Design Extension 地址:https://github.com/forge-ui/forge-design-extension
请先确认本地已经安装或可读取 Forge Skill。
然后 clone Forge Starter 并初始化环境。
请确认项目已经安装 @forge-ui-official/core;如果 starter 没有带上,请执行 pnpm add @forge-ui-official/core。
同时确认入口 CSS 已引入 @forge-ui-official/core/styles.css,并且 Tailwind v4 已配置 @source 指向 @forge-ui-official/core/dist。
最后确认 pnpm dev、pnpm typecheck、pnpm build 都可用。
环境就绪后,先主动向我确认业务目标、用户角色、需要的页面/模块、核心数据对象、主要操作流程和验收标准。
我确认后,再开始设计并实现业务模块。
实现时请使用 Forge Skill;快开走 Forge Starter,在真实页面上改 UI 走 Forge Design Extension:
- Forge Skill 负责约束组件库、token、AppLayout 和基础样式。
- Forge Starter 负责后台壳、登录、业务样板和加模块流程。
- Forge Design Extension 负责在真实 Chrome 页面上点选、放置 Forge 组件并改界面。
页面实现优先使用 AppLayout 和 ForgeUI 组件,不要手写基础 Button/Card/Table/Form/Layout 样式。
页面布局可以按业务需要设计,但基础颜色、字体、圆角、边框、密度和响应式行为必须遵循 ForgeUI。
完成后运行 pnpm typecheck 和 pnpm build,并给出可访问地址、页面截图和剩余问题。
仓库要求 Node.js >=22.13.0,包管理器由根目录 packageManager 固定为 pnpm 11.1.3。
pnpm install
pnpm dev
常用命令:
pnpm build # 构建组件包和文档站
pnpm typecheck # 检查组件包和站点类型
pnpm core:build # 只构建 @forge-ui-official/core
pnpm core:typecheck # 只检查组件包类型
pnpm lint # ESLint
| 路径 | 说明 |
|---|---|
core/ | @forge-ui-official/core 源码 |
docs/for-agents/ | 给 AI 的组件路由表和介绍表,先读 README.md |
src/app/docs | 文档页 |
src/app/components | 组件展示和变体 |
src/app/cases | 组件组合案例。props 以源码为准 |
src/app/templates | 完整后台模板和业务页 |
skills/forge-react | 可安装的 Forge Skill,给 Codex、Claude Code 和 Cursor 用 |
public/ | 图片、图标和安装脚本 |
源码使用 MIT License。图标使用 Solar Icons:React 实现为 MIT,480 Design 的图形为 CC BY 4.0。完整声明见 THIRD_PARTY_NOTICES.md。