
Blatui
io.github.anousss007v1.0.0更新於 Oct 9, 2026
shadcn/ui for Laravel Blade — discover, read and install BlatUI components, blocks and charts.
概覽
讓助理搜尋、讀取並把 BlatUI 的 Blade UI 元件、區塊與圖表安裝到 Laravel 專案中。
- 功能
- BlatUI 是面向 Blade、Laravel、Alpine 與 Tailwind 技術堆疊的 shadcn/ui 風格元件庫,以 Composer CLI 形式發佈。其 MCP 伺服器開放這份元件目錄,讓 AI 編輯器能探索元件、讀取原始碼並安裝到專案中。README 列出 155 個元件、614 個變體、64 個區塊與 70 個圖表,並提供 blatui:list、blatui:add、blatui:update 等指令。
- 適用情境
- 適合在使用 Blade、Alpine.js 與 Tailwind CSS v4 開發或維護 Laravel 應用時,讓助理在編輯器內尋找並加入 UI 元件。對其他前端技術堆疊或 Tailwind v3 的專案幫助不大。
- 執行需求
- 使用提供方主機上的遠端 MCP 端點;未宣告驗證、環境變數或標頭。底層 CLI 需要 PHP 8.2+ 與 Laravel 11、12 或 13、Tailwind CSS v4、Alpine.js 3 及 Node 18+,以及 Composer 與 npm 對等套件。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Blatui,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"blatui": {
"type": "http",
"url": "https://blatui.remix-it.com/mcp"
}
}
}README
BlatUI
shadcn/ui for the BLAT stack — Blade · Laravel · Alpine · Tailwind
A CLI that copies open-source, copy-paste UI components you own straight into your Laravel project.
[Latest Version] [CI] [License] [Accessibility: WCAG AA]
155 components · 614 variants · 64 blocks · 70 charts · accessible (WCAG AA) · Livewire-ready · fully themeable · light + dark · MIT
🧩 This is the BlatUI monorepo. The Composer package is the repo root (
src/+stubs/) — Packagist reads it directly, socomposer require anousss007/blatuiis unchanged and theapps/are stripped from the dist tarball. Components are authored inapps/demo/and generated intostubs/. See Contributing before editing a component.
Why BlatUI
- Accessible by default. WAI-ARIA roles, complete keyboard navigation & focus management, and WCAG AA color contrast — modeled on shadcn/ui's Base UI behavior, verified in a real browser and audited with axe-core. Accessibility isn't an add-on; it ships in every component.
- You own the code. Components are copied into your project — not hidden in
vendor/. Edit them however you like; updating the package never overwrites your edits. - The BLAT stack. Pure Blade components, a sprinkle of Alpine.js for interactivity, Tailwind CSS v4 for styling. No React, no build-step lock-in.
- Livewire-ready.
wire:modelworks on every form control — inputs, selects, checkboxes, switches, sliders, date/time pickers, file uploads and more — with full two-way binding. A free, you-own-the-code alternative to Flux Pro. See the Livewire guide → - Faithful to shadcn/ui. Same design language, component APIs and blocks — ported to the Laravel way.
- Themeable to the core. Every token is a CSS variable.
Requirements
- PHP 8.2+ · Laravel 11, 12 or 13
- Tailwind CSS v4 · Alpine.js 3 · Node 18+
Installation
Point your two Vite entrypoints at the published foundations — replace each file's contents:
blatui.cssbrings Tailwind, the design tokens and the@thememapping;blatui.jsboots Alpine + its plugins and lazy-loads ApexCharts. Runblatui:initto confirm everything (packages, tokens, imports) is wired up.
The foundations are published once and become yours — tweak the tokens, drop the chart engine if you don't need charts, etc.
blatui:initwill tell you what's still missing.
Installing into an existing project
Everything is additive — you don't replace your files.
- Tailwind v4 is required. BlatUI uses v4-only features (
@theme inline, oklch). On Tailwind v3, migrate first withnpx @tailwindcss/upgrade;blatui:initdetects the version. - CSS: add
@import "./blatui.css";to your existingapp.css, below@import "tailwindcss";. - JS — already running Alpine? Don't import
blatui.js(it would boot a second Alpine). Register BlatUI into your own instance instead, before you start it:
- JS — using Livewire or Flux? Livewire bundles and starts Alpine for you, so don't
npm install alpinejs(that's the duplicate-Alpine trap) and don't importblatui.js. Install only the plugins —npm install -D @alpinejs/anchor @floating-ui/dom @alpinejs/collapse @alpinejs/focus(addapexchartsonly if you use charts) — and register BlatUI onto Livewire's Alpine via thealpine:inithook:
BlatUI registers a theme store for dark mode. If Flux already drives dark mode, pass
registerBlatUI(window.Alpine, { darkMode: false }) so the two don't both toggle .dark.
Adding components
Components land in resources/views/components/ui/ as Blade tags:
blatui:add prints any extra composer/npm packages a component needs
(e.g. charts pull in apexcharts).
Keeping components up to date
You own the copied files, so an upgrade is never automatic — blatui:update
shows you what changed and lets you decide, file by file:
A file that differs is either your customisation or an outdated copy — nothing on
disk tells the two apart, so BlatUI never overwrites one without showing the diff
and asking. --force still writes a .bak next to each file it replaces (opt out
with --no-backup). Files a family gained in a newer release are simply added.
Running Pint or Prettier over resources/views? Your formatter rewrites the
layout of every component you copied, and all of them then read as changed. They
are counted separately as same content, reformatted, and --ignore-whitespace
leaves them out:
The CSS/JS foundations are published, not copied — re-sync those with
vendor:publish --tag=blatui-foundations --force; blatui:init tells you when
the engine has fallen behind.
Blocks & charts
Blocks (dashboards, sidebars, login pages…) and the 70 charts are copy-paste from the demo site — they're full-page compositions, not primitives, so you grab the exact source you want rather than installing it:
👉 Browse blocks & charts on the live demo
Commands
Contributing
BlatUI is a monorepo — one repo, one PR, one CI. The Composer package is the repo root;
the demo/docs site and starter kit are apps that live alongside it (excluded from the published
package via .gitattributes).
Components are authored in apps/demo/resources/views/components/ui/ (the only place they
render, so it's the source of truth); stubs/ is generated — don't hand-edit it. After changing
a component, run bash scripts/build-package.sh and commit both. CI fails if they drift.
Full guide: CONTRIBUTING.md.
Credits
BlatUI is a port of shadcn/ui to the Laravel/Blade ecosystem. Thanks to shadcn and contributors. Icons by Lucide. Charts by ApexCharts.
License
MIT — free for personal and commercial use.
來源:README.md,提交 f4e4297
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026

