Skip to content

Getting Started

Terminal window
git clone https://github.com/mcp-tool-shop-org/ai-ui.git
cd ai-ui
npm install

AI-UI requires Node.js 20+ and a running dev server for the probe and runtime-effects commands.

Create ai-ui.config.json in your project root:

{
"docs": { "globs": ["README.md"] },
"probe": {
"baseUrl": "http://localhost:5173",
"routes": ["/"]
}
}

Start your dev server, then:

Terminal window
ai-ui stage0

That runs atlas → probe → diff in sequence.

ai-ui-output/
├── atlas.json # Feature catalog from your docs
├── probe.jsonl # Trigger graph from browser crawl
├── diff.json # Feature-to-trigger matching
└── diff.md # Human-readable diff report

The diff report tells you:

  • Matched features — documented features with a discoverable UI trigger
  • Must-surface — documented features with no visible entry point
  • Undocumented triggers — UI elements that aren’t mentioned in docs
  • Coverage percentage — how much of your docs is discoverable

AI-UI is a local clone — just delete the directory:

Terminal window
rm -rf ai-ui

All output goes to ai-ui-output/ in your project directory. Delete that too if you want a clean slate.

RequirementMinimum
Node.js20.0.0
OSWindows, macOS, Linux
BrowserChromium (via Playwright)
Dev serverAny (Vite, Next, Astro, etc.)

The probe command uses Playwright to launch a headless Chromium browser. It connects to your dev server over localhost — no external network access.

Terminal window
ai-ui stage0
ai-ui graph
ai-ui verify --strict --gate minimum --min-coverage 60
# Exit: 0=pass, 1=user error, 2=runtime error

No secrets, no API keys, no external dependencies. Just Node.js and a dev server.