关于 Nasaq UI
Nasaq UI 是包含 React 组件、设计令牌、主题和页面模板的设计系统,并支持阿拉伯语和 RTL 布局。它面向前端团队与 AI 工具,提供 shadcn registry、npm 包和 MCP 服务。
主要功能
- 01392 个 React 组件
- 02设计令牌和 17 种品牌主题
- 03阿拉伯语及 RTL 布局
- 04shadcn registry 和 npm 包
- 05React Native 与 Electron 入口
- 06组件手册与搜索
适用场景
- 01使用 React 组件构建界面
- 02实现阿拉伯语和从右向左布局
- 03在产品界面间复用设计令牌
- 04让 AI 工具查找组件指南
MCP 相关
MCP 服务允许 Claude、Cursor 等客户端搜索组件并读取手册。工具包括组件列表、搜索、详情读取、设置、基础规范和令牌列表。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp.nasaqui.com/mcpclaude mcp add --transport http fadymondy-nasaq https://mcp.nasaqui.com/mcp{"mcpServers":{"fadymondy-nasaq":{"type":"http","url":"https://mcp.nasaqui.com/mcp"}}}在 Cursor 中打开{"servers":{"fadymondy-nasaq":{"type":"http","url":"https://mcp.nasaqui.com/mcp"}}}在 VS Code 中打开{"mcpServers":{"fadymondy-nasaq":{"type":"http","url":"https://mcp.nasaqui.com/mcp"}}}{"mcpServers":{"fadymondy-nasaq":{"serverUrl":"https://mcp.nasaqui.com/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
6| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 否 | 自由文本筛选,例如“table”或“menu” |
| category | enum | 否 | 仅此类别account | actions | admin | ai | ai-agents | alerts | analytics | auth | billing | bookings | brand | charts | chat | collaboration | crm | data-display | delivery | developer-tools | editors | feedback | feedback-sdk | files | form-builders | forms | gamification | healthcare | integrations | keyboard | layout | marketing | monitoring | navigation | onboarding | overlays | pickers | platforms | pricing | productivity | security | seo | server-tools | store | store-admin | typography | utilities | website | wellness | work | workflow |
| framework | enum | 否 | 默认使用 react(@fadymondy/nasaq/web)。shadcn:由 shadcn CLI 复制的相同 React 组件。inertia / inertia-vue:Laravel + Inertia。vue / nuxt / inertia-vue:Vue 3。blade / livewire / filament / laravel / tomatophp:Laravel Blade 组件。html / alpine:由 Alpine 运行的渲染后 HTML。react | shadcn | inertia | inertia-vue | html | alpine | vue | nuxt | blade | livewire | filament | laravel | tomatophp |
详细介绍
让每个界面都使用统一的产品语言:392 个 React 组件、一套令牌系统、17 个品牌主题和完整的页面模板,基于 Base UI 和 Tailwind CSS v4 构建,并将阿拉伯语和从右向左布局视为一等需求。可将其作为 shadcn 注册表安装(源码由你掌控),也可安装 npm 包 @fadymondy/nasaq。
| 文档和在线组件 | https://docs.nasaqui.com |
| shadcn 注册表 | https://docs.nasaqui.com/r/{name}.json(索引:`/registry.json`) |
| MCP 服务(供 AI 工具使用) | https://mcp.nasaqui.com/mcp |
| 落地页 | https://nasaqui.com |



状态
版本 1.4.0,已在 npm 上发布,包名为 @fadymondy/nasaq。作者自己的产品每天都在使用这些组件。每个组件的使用手册都标注了稳定版、Beta 版或实验版状态:稳定版 API 遵循 semver,Beta 版仍可能增加属性。
快速开始:shadcn 注册表
适用于任何已运行 shadcn 的项目(存在 components.json)。
# once: the Nasaq preset (tokens, theme, provider)
npx shadcn@latest add https://docs.nasaqui.com/r/nasaq.json
# then any component by URL
npx shadcn@latest add https://docs.nasaqui.com/r/button.json
# a brand theme (11 available, theme-<brand>)
npx shadcn@latest add https://docs.nasaqui.com/r/theme-nasaq.json
若要使用简写形式 @nasaq/<name>,请将命名空间添加到 components.json:
{
"registries": {
"@nasaq": "https://docs.nasaqui.com/r/{name}.json"
}
}
npx shadcn@latest add @nasaq/button
注册表提供带有 Access-Control-Allow-Origin: * 的纯 JSON,因此也适用于其他工具。
快速开始:npm
pnpm add @fadymondy/nasaq
import { Button, NasaqProvider } from "@fadymondy/nasaq/web";
import "@fadymondy/nasaq/web/styles.css";
入口点:/web、/web/styles.css、/tokens、/tokens.css、/theme.css、/brands、/native(React Native)和 /electron。
MCP 服务
允许 Claude、Cursor 和其他 MCP 客户端搜索组件并阅读其使用手册。
# hosted (streamable HTTP)
claude mcp add --transport http nasaq https://mcp.nasaqui.com/mcp
# or local over stdio
claude mcp add nasaq -- npx -y @fadymondy/nasaq-mcp
工具:get_setup、list_components、search_components、get_component、get_foundation、list_tokens。Claude、Cursor 和其他客户端的配置说明位于文档网站的 Docs、Guides、MCP server 页面中。stdio 包同样尚未发布,因此还未上架 npm。
仓库结构
apps/
lab/ Storybook 10: the documentation site and every story; builds the static site and the registry
site/ Next.js landing/brand site and the older registry builder
packages/
web/ the React components (@nasaq/web, source of the registry)
tokens/ DTCG design tokens, generated CSS and typed module
brands/ brand manifests and marks
icons/ icon set
native/ React Native kit
electron/ Electron window chrome
feedback/ in-app feedback reporter
mcp/ the MCP server
nasaq/ the published package, @fadymondy/nasaq
tooling/ lint and check tooling
scripts/ registry build and validation, component checks
docs/ architecture notes and design audits
开发
需要 Node 22 或更高版本以及 pnpm 11。
pnpm install
pnpm lab # Storybook on http://localhost:6106
pnpm typecheck
pnpm lint # logical properties only, no raw hex colours
pnpm test # includes the token contrast matrix
pnpm check:components # every component has a valid README and a story
pnpm --filter @nasaq/site registry # build and validate the shadcn registry
pnpm --filter @nasaq/lab build # static docs + registry -> apps/lab/storybook-static
pnpm --filter @nasaq/lab serve # serve that folder on http://127.0.0.1:6108
静态构建产物集中在一个文件夹中:文档、所有 story、演示图片、r/*.json 和 registry.json。apps/lab/scripts/serve-static.mjs 是一个无需依赖的静态服务器(为每条路径设置缓存标头,并为注册表文件启用 CORS);托管说明请参阅 docs/ARCHITECTURE.md。要将其作为长期运行的服务启动:node apps/lab/scripts/serve-static.mjs --port 6108 --host 0.0.0.0。
参与贡献
欢迎贡献:缺陷报告、无障碍和 RTL 修复、文档及新组件。请阅读
CONTRIBUTING.md 了解环境设置、约定和 DCO 签署要求,然后查找
good first issue。
社区
- GitHub 讨论区:提问、交流想法、展示成果
- 问题反馈:错误和功能请求
- 安全问题报告:请参阅 SECURITY.md
请遵守行为准则。
字体、徽标和品牌
MIT 许可证适用于源代码和文档,不适用于以下内容。
- 字体。 令牌字体栈指定了 Inter(拉丁文)和 IBM Plex Sans Arabic(阿拉伯文),两者均采用 SIL OFL 许可证,代码字体为 JetBrains Mono。这些软件包不会加载其中任何字体,因此由你自行选择如何加载;文档站点会从
apps/lab/public/fonts自托管 IBM Plex Sans Arabic(300/400/500)及其许可证。如果你部署 Nasaq,则需要自行负责所加载字体的许可证。 - 徽标和品牌标识。 登录组件(
oauth-buttons、connected-accounts)会绘制官方 Google、GitHub、Apple 和 Microsoft 标识,不作修改,并采用各提供商指定的颜色,遵循其品牌指南。这些标识是其所有者的商标,本仓库不会向你授予相关许可;不得重新着色、镜像或重绘。请在你自己的产品中遵循各提供商的指南。品牌清单(packages/brands)包含作者自有产品的标识和 17 个品牌主题,并以数据形式绘制以展示主题配置;请勿将其用于你不拥有的产品。 - 图片。 商店演示使用
apps/lab/public/store下的简单 SVG 插图,这些插图专为演示绘制,仅用于正常显示,并非产品照片库。
如果你认为这里有内容的使用方式不符合其所有者的许可要求,请通过 SECURITY.md 告知我们,我们会将其移除。
致谢
由 Fady Mondy 构建。使用了 Base UI、Tailwind CSS、shadcn/ui(注册表格式和组件结构)、Storybook、Style Dictionary 和 DTCG token format。
赞助
Nasaq 由 Fady Mondy 制作,他也是 ToGO 的创建者。这是一个开源 Go + React 框架,也是 Zekra、Mahaam、 Moharrik 和 Hosbah 背后的框架。支持 Nasaq 的最佳方式是赞助 ToGO,为整个生态系统提供资金。
许可证
MIT,© 2026 Fady Mondy。请参阅 LICENSE。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。