@atmos.build/ui

中文文档
0.2.1发布于 2026/10/21UNLICENSEDTypeScriptES Module近 30 天下载 2317

The complete atmOS React component system and MCP App authoring helpers.

原始使用文档

atmOS UI

@atmos/ui is the component package for atmOS product surfaces and MCP Apps. Its root export contains the complete base component catalog.

MCP Apps

An extension imports components from the normal package entry:

import { Button, Command, Dialog, DialogContent, Table } from '@atmos/ui'

MCP-specific host integration is available from a subpath of the same package:

import { useAtmosMcpApp } from '@atmos.build/ui/mcp-app'

The build configuration and stylesheet use their own subpaths:

import { atmosMcpAppViteConfig } from '@atmos.build/ui/mcp-app/vite'
@import '@atmos.build/ui/mcp-app/styles.css';

@source './**/*.{ts,tsx}';

The stylesheet scans the complete component catalog, so any component exported by @atmos.build/ui receives its normal Tailwind styles without maintaining a second MCP-specific allowlist.

Inside this repository, extension UI packages resolve @atmos/ui through the pnpm workspace. External extensions install an exact public npm version during authoring:

npm install --save-exact @atmos.build/ui react@19 react-dom@19

The compiled app-build/app.js and app-build/app.css are committed with the extension and inlined into its MCP App resource. Attaching or opening an extension therefore never installs packages or executes a package manager.

版本与发布记录

@atmos.build/ui 共发布 33 个版本,首次发布于 2026/08/23;过去 12 个月发布了 33 个版本。

版本发布日期距今
0.2.1latest2026/10/2117 天前
0.2.02026/10/2117 天前
0.1.302026/10/1920 天前
0.1.292026/10/1424 天前
0.1.282026/10/1325 天前
0.1.272026/10/1127 天前

关于 @atmos.build/ui 的常见问题

@atmos.build/ui 是什么?

The complete atmOS React component system and MCP App authoring helpers.

如何安装 @atmos.build/ui?

在项目目录运行 npm install @atmos.build/ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^19.0.0)、react-dom(^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atmos.build/ui 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@atmos.build/ui 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@atmos.build/ui 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@atmos.build/ui 可以商用吗?

@atmos.build/ui 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@atmos.build/ui 的下载量有多少?

根据 npm 官方下载统计,@atmos.build/ui 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,317 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atmos.build/ui 还在维护吗?

最新版本 0.2.1 发布于 2026/10/21(17 天前);至今共发布 33 个版本,其中过去 12 个月发布了 33 个;首次发布于 2026/08/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。