Ng Blatui

io.github.anousss007由 GitHub 账号 anousss007 发布v1.1.0更新于 Oct 24, 2026

ng-blatui for Angular — search components, blocks, charts & templates and read their typed API.

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

ng-blatui Angular UI 库的远程 MCP 服务器,让助手浏览、搜索并读取其组件、区块、图表和模板的类型化 API 文档。

可以做什么
  • 列出目录:157 个 Angular 组件(可按分类筛选)、16 个预置区块、70 个图表示例和 35 个整页模板
  • 按关键词搜索整个注册表,覆盖组件、区块、图表和模板
  • 按 slug 获取文档:安装步骤、导入方式及完整的结构化 API
  • 只取某个组件的类型化 API:输入、双向绑定模型、输出及引用的类型
适用场景
在使用 ng-blatui 构建 Angular 界面时,让助手查找正确的组件及其选择器、输入和输出,而不是凭猜测写代码。也适合在写代码前寻找匹配的区块、图表或页面模板。
运行要求
需要一个远程 streamable HTTP 端点;未声明认证、环境变量或请求头。该库本身需另行通过 npm 安装,并依赖 Angular 21 或 22 以及 Tailwind CSS v4 配置。
安装前请注意
仅做只读的目录查询;输入中未显示凭据、付费或写入操作。返回的文档描述的是第三方库,应用安装和样式步骤前请对照官方文档核实。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ng Blatui,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.anousss007%2Fng-blatui/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "ng-blatui": {
      "type": "http",
      "url": "https://ngblatui.remix-it.com/mcp"
    }
  }
}

README

ng-blatui

[npm] [license] [Angular]

Accessible Angular UI library — a faithful port of BlatUI's visual system to Angular. Built on the official Angular headless stack (Angular Aria + CDK), styled with Tailwind CSS v4 + oklch design tokens.

157 components · 16 blocks · 70 charts · 35 page templates — all standalone, signal-based, zoneless and SSR-safe.

🔗 Docs & live demo → · 📦 npm · 🤖 Using with AI →


Highlights

  • Angular 21 & 22 — standalone components, signals (input()/model()/output()), zoneless change detection, OnPush by default.
  • SSR-ready — every component renders correctly under server-side rendering (the docs site prerenders 280+ static routes).
  • Accessible — behavior built on @angular/aria + @angular/cdk; passes AXE / WCAG AA.
  • Forms-native — every form control implements ControlValueAccessor, so the same component works with Reactive, Template-driven and Signal forms.
  • Themeable — Tailwind v4 utilities + CSS variables (oklch tokens); light/dark out of the box.
  • AI-ready — ships an MCP server, an llms.txt index and a machine-readable registry (see below).

Installation

bash
npm i ng-blatui

Peer dependencies (Angular 21 or 22): @angular/core, @angular/common, @angular/forms, @angular/cdk, @angular/aria.

Tailwind CSS setup

Styling is Tailwind CSS v4. In your app's global stylesheet (e.g. src/styles.css) add three lines:

css
@import 'tailwindcss';@import 'ng-blatui/foundations/blatui.css'; /* design tokens + dark theme */@source '../node_modules/ng-blatui'; /* ← generate the utilities the lib's classes use */

The @source line is the easy one to miss: without it Tailwind never scans ng-blatui's compiled templates, so the components render unstyled. Point it at wherever ng-blatui lives relative to the stylesheet (adjust the ../ depth). Dark mode is a dark class on a parent (<html class="dark">); override any oklch token in :root / .dark to re-theme. Full guide: https://ngblatui.remix-it.com/docs/installation.

Icons

ng-blatui ships no icon set — wire your own (e.g. @ng-icons) with provideIcons(...) and register each icon you use. Components that take an icon accept an SVG path d string, so any icon source works.

Usage

Import the component class from the ng-blatui barrel and add it to a standalone component's imports[] — no NgModule. Selectors are prefixed bui.

ts
import { Component } from '@angular/core';import { BuiButton, BuiBadge, BuiInput } from 'ng-blatui';
@Component({  selector: 'app-demo',  imports: [BuiButton, BuiBadge, BuiInput],  template: `    <label>      Email      <input buiInput type="email" placeholder="[email protected]" />    </label>    <button buiButton>Save <span buiBadge tone="success">New</span></button>  `,})export class Demo {}
  • Element selectors: <bui-avatar>, <bui-rating>, …
  • Attribute/directive selectors: <button buiButton>, <input buiInput>, <span buiBadge tone="success">, …
  • Signals: bind [checked] / (checkedChange) etc.; works under zoneless CD and SSR with no extra setup.
  • Forms: formControlName, [(ngModel)] or [formControl] all work — every control is a ControlValueAccessor.

Form fields: two levels

  • Batteries-included components wire label + hint + error + ARIA for you: BuiInputField, BuiMoneyInput (localized currency; symbol="DH" overrides the ISO code), BuiDateRangePicker (start→end with presets), plus BuiSelect, BuiCombobox, BuiAutocomplete, BuiPhoneInput.
  • Composition primitives for custom layouts: buiField + buiFieldLabel / buiFieldDescription / buiFieldError wrap a bare buiInput / .blat-* control and manage the a11y relationships.

Reach for a bare control (buiInput) only when you also add the buiField scaffolding yourself. Other easy-to-miss building blocks: buiEmpty (empty states), bui-stat (stat cards), buiFieldSet / buiFieldLegend (grouped fields).

Theming

Styling is Tailwind v4 + CSS variables. Override the oklch design tokens (--background, --foreground, --primary, --border, --muted, --radius, …) to restyle everything globally; toggle a dark class for dark mode. See https://ngblatui.remix-it.com/docs/theming.

Localization

Two providers cover the whole library, both set once in your app config:

ts
import { provideBuiLabels, provideBuiLocale } from 'ng-blatui';
providers: [  provideBuiLocale('fr-BE'), // dates, times, numbers, week start, weekend, week numbering  provideBuiLabels({ fileUploadRemove: 'Supprimer le fichier' }), // built-in strings];

Set neither and everything formats as en-US — that is Angular's own LOCALE_ID default, and the usual reason pickers stay American in an app that is not. Resolution runs most-specific first: a component's [locale] input → provideBuiLocale() → the app's LOCALE_ID → en-US. You never need registerLocaleData() here; ng-blatui formats through Intl.

Both providers also take a signal, or a factory run in an injection context — which is what keeps them open to any translation library (Transloco, ngx-translate, a signal store of your own) without ng-blatui depending on one, or knowing any translation format. Full guide, with a Transloco example: https://ngblatui.remix-it.com/docs/localization.

What's inside

Templates are full, production-style pages (dashboard, pricing, auth, store, CRM, blog, docs, e-commerce product, plus 20 art-directed landing pages) — faithful 1:1 reproductions of the BlatUI originals.

Using with AI agents

ng-blatui is built to be consumed by AI coding assistants so they discover and use the catalog correctly instead of guessing — via three layers:

LayerWhatWhere
MCP serverTools to list/search the catalog and fetch full docs + codenpx ng-blatui-mcp
llms.txtThe llms.txt standard indexhttps://ngblatui.remix-it.com/llms.txt
registry.jsonMachine-readable cataloghttps://ngblatui.remix-it.com/registry.json

Quick start (works in Claude, Cursor, Windsurf, Cline, Zed, VS Code…):

bash
claude mcp add ng-blatui -- npx -y ng-blatui-mcp# or add to any MCP client:# { "mcpServers": { "ng-blatui": { "command": "npx", "args": ["-y", "ng-blatui-mcp"] } } }

The MCP server exposes list_components (optional category), list_blocks, list_charts, list_templates, search({ query }) and get_docs({ name }). Full guide with per-client config and copy-paste editor rules: USING-WITH-AI.md.


Development

This is an Angular workspace with two projects: the library (projects/ng-blatui) and the docs/demo app (projects/demo).

bash
git clone https://github.com/anousss007/ng-blatui.gitcd ng-blatuinpm installnpm start          # serve the docs/demo app at http://localhost:4200

Scripts

CommandWhat it does
npm startServe the demo app (ng serve demo)
npm run build:libBuild the publishable library (ng build ng-blatui)
npm run buildBuild the demo site
npm testUnit tests (Vitest)
npm run lintESLint (type-aware, strict) + template a11y
npm run formatPrettier (with Tailwind class sorting)
npm run build:registryRegenerate registry.json + llms.txt from the catalog
npm run capture:previewsCapture template preview images (Playwright)
npm run deploy:siteBuild + deploy the docs site to the VPS

Project structure

projects/  ng-blatui/        # the published library (src/lib/* = 157 component dirs, public-api.ts)  demo/             # docs + live demo site (components/blocks/charts/templates galleries)    src/app/pages/templates/   # the 35 page templates    public/         # static assets incl. generated llms.txt + registry.jsonscripts/  build-registry.mjs   # generates registry.json + llms.txt + mcp/registry.json  capture-previews.mjs # template preview screenshots  deploy-site.sh       # build + rsync to VPSmcp/                # the ng-blatui-mcp MCP server package (published separately).claude/skills/     # angular-best-practices (contributing) + ng-blatui (consuming)AGENTS.md           # guide for AI agents working IN this repoUSING-WITH-AI.md    # guide for consuming ng-blatui WITH an AI agent

Conventions

Angular v22, zoneless, standalone (defaults — never set explicitly). Signals everywhere; native control flow (@if/@for/@switch); no *ngIf/ngClass. Library selector prefix bui, demo prefix app. See AGENTS.md and CONTRIBUTING.md for the full ruleset.

Releasing

  • Library (ng-blatui) — the Release GitHub Actions workflow (manual dispatch) runs semantic-release: it analyzes Conventional Commits, bumps the version, tags, creates a GitHub release and publishes to npm with provenance.
  • MCP server (ng-blatui-mcp) — bump mcp/package.json, then run the Release MCP workflow (manual dispatch) to publish it.

Credits

Angular port of BlatUI (Blade/Laravel + Tailwind component system). Behavior on Angular Aria + CDK.

License

MIT

来源:README.md,提交 692e62b

工具

7

list_components

List ng-blatui's 157 Angular components, optionally filtered by category.

输入参数category

list_blocks

List 16 prebuilt blocks (login, signup, …).

无需输入参数。

list_charts

List 70 chart examples.

无需输入参数。

list_templates

List 35 full page templates.

无需输入参数。

get_docs

Get a component/block/chart/template's docs by slug: install, import and the full structured API (inputs, two-way models, outputs, types).

输入参数name必填

get_api

Focused: just the typed API (inputs, two-way models, outputs and referenced types) of a component, by slug.

输入参数name必填

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分