内容
# 蓝图模块化
> 仪器不仅仅显示一个值 — 它做出判断。
<img src="public/Logo-BPM-nom.jpg" alt="蓝图模块化">
<!--
TODO(展示): 目前仓库中没有展示的截图。
当从/components导出真正的截图(public/或docs/)时,
替换上面的图片(或取消注释下面的行)。不要
虚构图片。
TODO(声明): 上面的类别短语反映了原始
`interpret`(components/bpm/interpret.ts)。一旦有
公共源可用,就用Manifeste(repo `memory`,MANIFESTE_Blueprint.md)
中的逐字引用替换它。
-->
<!-- <img src="docs/showcase.png" alt="蓝图模块化展示"> -->
蓝图模块化不是一个普通的UI工具包。它是一个
**仪器** 库:104个业务组件可像函数一样调用,
其中一个类带有共享的判断原始 `interpret(value, context)` —
偏离基准、趋势、异常、严重性。
语义是独特的、纯粹的,并通过收敛门户验证。
## 快速开始
```bash
pip install blueprint-modular
```
```python
import bpm
bpm.metric(label="销售额", value=125000, delta="+12%")
```
蓝图模块化公开了一个Python组件表面 `bpm.*` (metric、table、badge、live_gauge…),
是React表面的功能镜像。文档:https://blueprint-modular.com
## 现存
- **展示站点** — <https://blueprint-modular.com>
- **演示应用** — <https://app.blueprint-modular.com>
- **MCP连接器** (只读,无认证)—
`https://mcp.blueprint-modular.com/api/mcp` ·
文档 <https://blueprint-modular.com/mcp>
## 安装
**React / TypeScript** (npm)
```bash
npm install @blueprint-modular/core
```
```tsx
// 始终在命名空间中 — 永远不要解构。
import { bpm } from '@blueprint-modular/core'
import '@blueprint-modular/core/dist/style.css'
```
**Python** (PyPI)
```bash
pip install blueprint-modular
bpm run app.py
```
完整集成(CSS、Tailwind、SSR、组件API):
[`packages/core/USAGE.md`](packages/core/USAGE.md)。代理的机器参考:
[`public/llms.txt`](public/llms.txt).
## 证明 — 收敛门户
```bash
npm run gate
```
一个命令验证整个表面:类型(`tsc`)、构建(`vite`)、
文档同步、每个 `bpm.*` 的烟雾渲染和道具快照
(任何删除/重命名 = 失败 — θ-加性保证)。
## 生态系统
[**蓝图制造者**](https://blueprint-maker.com) — 从提示到应用
Next.js,在 `bpm.*` 组件中。模块化是基础;制造者制造它。
## 更进一步
- 定位 — <https://blueprint-modular.com/presentation>
- MCP目录 — [`docs/MCP_CONNECTOR.md`](docs/MCP_CONNECTOR.md)
- 机器参考 — <https://blueprint-modular.com/llms.txt>
## 许可证
`@blueprint-modular/core` :Apache-2.0 · `blueprint-modular` (PyPI):Apache-2.0