Scan your whole stack
From OX Research Newsroom
Latest version: v0.1.3
UI Gateway was last scanned on 1 Dec 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.3 LATEST | 1 Dec 2026 | No rules fired |
Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A library-agnostic, project-aware gateway that turns a design handoff into verified UI component mappings. It fails closed: when it cannot answer safely it returns a typed refusal that names what is missing.
greenfield or existing,
detected and overridable.strict is opt-in.RETURNED as the only exit.A restaurant landing page mapped end-to-end onto a real Next.js + shadcn app:
npm run demo:restaurant returns seven verified mappings with both acceptance
checks passing, and node demo/restaurant/walkthrough.mjs replays the narrated
run. See demo/restaurant.
CI: typecheck, build, tests, coverage thresholds, docs examples, evals and
the end-to-end demo run on Linux, Windows and macOS; packed-install smoke tests
run on Node 20/22/24. See .github/workflows/ci.yml.
Coverage: npm run test:coverage enforces floors (statements/lines 78%,
branches 74%, functions 76%); current coverage is ~79% statements.
Latency: npm run bench reports handoff-to-result percentiles (p50/p90/p99).
Evals: the pre-registered harness compares the gateway against a plain-agent
baseline. The only committed model-backed sample (a 6-item CPU run, gemma3:1b)
is directional, not a frontier result:
| Arm | Hit rate | Compiles | Constraints | Mean wall |
|---|---|---|---|---|
| gateway full skill | 66.7% (30.0–90.3) | 100% (51.0–100) | 100% | 5.6 s |
| plain agent, no gateway | 0% | 16.7% | 83.3% | 24.3 s |
Intervals are Wilson 95%. See BENCHMARK.md for method and reproduction.
A key-backed frontier run at full stride is pending; BENCHMARK.md has the
exact steps and a table to fill from the committed JSON.
npm install ui-gateway
Then set up your target project with one command:
npx ui-gateway init --project /absolute/path/to/your/app
init detects Claude Code, Cursor, VS Code, OpenCode or a generic MCP client,
writes/merges the client config, copies the skill into .ui-gateway/skill, and
prints project detection plus any needs_input questions. To print a config
without writing anything:
npx ui-gateway mcp:config --project /absolute/path/to/your/app
npx ui-gateway mcp:config --project /absolute/path/to/your/app --client cursor
Clients without MCP can use the CLI equivalent:
npx ui-gateway init --project /absolute/path/to/your/app --print-skill
The gateway never writes to your project — it returns scaffolds, mappings and typed refusals for you to apply. See NON-GOALS.md for deliberate limits.
npm install
npm run typecheck
npm test
npm run demo # end-to-end: greenfield shadcn + existing MUI
npm run demo:restaurant # restaurant landing page end-to-end (see demo/restaurant)
npm run eval # pre-registered eval harness (offline stand-in arms)
npm run eval:agent # build -> validate -> submit contract over the golden set
npm run eval:claude # real Claude three-arm run (requires ANTHROPIC_API_KEY)
npm run eval:groq # OpenAI-compatible/Groq run (requires GROQ_API_KEY)
npm run eval:local # real local Ollama benchmark + plain-agent arm
npm run eval:repos # pinned external repos; add -- --pins-only to resolve commits
npm run site # regenerate site/index.html from eval artifacts
npm run eval:site # Playwright site eval over the dashboard fixture
npm run eval:page # generated page shell: axe, keyboard, states, disclosure
npm run eval:page:real # actual MUI/Chakra/Mantine scaffolds and themes
npm run calibration # reliability curve -> docs/calibration.svg\nnpm run site # generated open-caveats status page -> site/index.html
Node 20+ is required. The default in-memory event log has no native
dependencies. --sqlite <file> needs Node 22.5+ because it uses node:sqlite,
and fails with an explicit message on older Node.
The agent-facing skill is SKILL.md, with self-contained references and examples:
| File | Purpose |
|---|---|
references/design-md.md |
Strict Design MD grammar and checklist. |
references/handoff.md |
Handoff fields, wireframe convention, hashing, idempotency. |
references/outcomes.md |
Outcome table, result fields, reporting, file-writing policy. |
references/errors.md |
Error codes and retry policy. |
references/patterns.md |
Page plan, dashboard pattern, required states and page checks. |
references/composition-apis.md |
Version-sensitive library APIs and token projection. |
references/tools.md |
Tool order, inputs, MCP resources and setup. |
examples/design-md.md |
Valid example Design MD. |
examples/handoff-input.json |
Builder input for regenerating the example handoff. |
examples/handoff.json |
Complete, hash-pinned example handoff. |
The skill expects the MCP server. Print a ready-to-paste config:
npx ui-gateway mcp:config --project /absolute/path/to/your/app
npx ui-gateway mcp:config --project /absolute/path/to/your/app --client opencode
The first form prints a generic mcpServers config; --client also accepts
claude, cursor and vscode. --project is the application the agent edits,
not this repository. npx ui-gateway init writes the config for you.
The MCP server exposes 14 tools over stdio:
detect_project — profile, provenance, confidence, needs_input.describe_kb — supported libraries, entries, kb_version.hash_design_md — normalized Design MD hash.import_design_md — read and validate a Design MD file from disk.import_design_tokens — convert DTCG JSON into Design MD tokens.validate_design_md — grammar, normalizations, policy, satisfiability.derive_design_md — infer a valid Design MD from the project's tokens.build_handoff — generates the wireframe, pins the profile/hash and returns a
validation report.validate_handoff — the gateway's pre-flight checks plus a strict semantic
gate, including Design MD compilation, schema version, KB freshness and
satisfiability.submit_handoff — returns the result, state and ownership_returned,
plus page_plan, page, token_projection and warnings when present.map_ui — two-call happy path: detect/derive, build, validate and submit.verify_page — read-only page check for anchors, ids, unused imports, basic
a11y, the main landmark, duplicate display utilities and responsive
breakpoint conflicts; can optionally compile the page and its related
scaffolds in a throwaway TypeScript project.get_handoff — state, ownership, lease and result from the event log.refusal_ledger — repeated refusal reasons and suggested fixes.| Tool | Purpose |
|---|---|
detect_project |
Detect the UI profile of a project: framework, styling, libraries, local components and project skill files. |
describe_kb |
List supported libraries, licenses, availability and component entries. |
hash_design_md |
Compute the Design MD sha256 after the gateway's deterministic normalization. |
import_design_md |
Read a Design MD file from the project filesystem, validate it against the strict grammar, and return its normalized content, hash and validation report. |
import_design_tokens |
Read a DTCG (Design Tokens Community Group) JSON file and convert its tokens into Design MD token entries. |
validate_design_md |
Validate a Design MD against the strict grammar and the project profile. |
build_handoff |
Build a complete, hash-pinned handoff from a Design MD and intents. |
validate_handoff |
Run the gateway's pre-flight checks plus a strict semantic gate: schema, supported schema version, design hash, Design MD compilation, semantics, satisfiability, profile hash, KB freshness and adapter support. |
submit_handoff |
Submit a validated handoff and receive verified component mappings. |
verify_page |
Read-only page check: syntax, broken or dead anchors, missing page_plan region ids, duplicate ids, unused imports, missing img alt, unlabeled links/buttons and the main landmark. |
derive_design_md |
Infer a strict Design MD from the project's CSS variables, Tailwind config, DTCG token files and an existing DESIGN.md. |
map_ui |
Two-call happy path. |
refusal_ledger |
Summarize repeated refusals from the event log (missing information, ambiguity, unsatisfiable constraints) and suggest fixes. |
get_handoff |
Read a handoff's state, ownership and result from the event log. |
It also serves the references and examples as MCP resources
(ui-gateway://reference/handoff, ui-gateway://example/handoff, and so on).
The integration test builds, validates, submits and reads a handoff over
JSON-RPC.
Agent order:
detect_project -> describe_kb -> validate_design_md -> build_handoff
-> validate_handoff -> submit_handoff -> (write files) -> verify_page
-> get_handoff
Do not skip build_handoff; it generates the wireframe and hash that the
gateway expects.
server.json publishes the server to the official MCP Registry as
io.github.yuvraajnarula/uigateway, and mcpName in package.json proves npm
ownership; smithery.yaml declares Smithery's TypeScript runtime with
target: "local", served by the SDK entry in
packages/transports/src/smithery.ts. The npm listing resolves to
npx ui-gateway mcp (add --project <app> to point it at an app).
npm run check:mcpb builds and schema-validates an MCPB bundle; publishing it
is a browser sign-in at https://smithery.ai/new (Smithery has been part of
Arcade since August 2026 and stopped its own API, accounts and API keys on
31 October 2026, deprecating its CLI and SDKs), while npm run publish:mcpb
still drives the documented release API for a workspace that holds a key.
docs/smithery-listing.md holds the listing copy,
the tool card and the post-publish checklist.
See docs/mcp-registry.md for the submission flow and
the GitHub Marketplace steps for action.yml.
npm run cli -- init evals/fixtures/projects/existing-mui --dry-run
npm run cli -- detect evals/fixtures/projects/existing-mui
npm run cli -- kb --library shadcn
npm run cli -- validate examples/handoff.json
npm run cli -- validate-design examples/design-md.md
npm run cli -- build-handoff examples/handoff-input.json --out examples/handoff.json
npm run cli -- submit examples/handoff.json --project evals/fixtures/projects/greenfield-react
npm run cli -- submit examples/handoff.json --out .tmp/response.json # echoes "wrote <path>" on stderr
npm run cli -- preview .tmp/response.json --out .tmp/preview.html
npm run cli -- submit examples/handoff.json --sqlite .tmp/events.sqlite
npm run cli -- status <handoff_id> --sqlite .tmp/events.sqlite
npm run cli -- label evals/fixtures/labels.jsonl
submit prints the full SubmitResponse JSON; --out writes it to a file and
confirms the path on stderr, so stdout stays JSON. Exit codes follow the outcome
(0 COMPLETED, 1 REJECTED, 3 NEEDS_INPUT, …) — see references/outcomes.md.
build-handoff reads a HandoffInput JSON file and writes or prints the complete
handoff. preview renders a result as standalone, dependency-free HTML.
check prints JSON by default; add --text for the one-line-per-finding list.
kb-freshness <library> --current <version> fetches the npm registry and any
--docs <url> pages and prints drift proposals with citations and a 0–1
confidence score; it never edits the KB or opens a PR. Documentation URLs must
be on the library's official host (from its source_url, plus any
--official <host>), and non-official URLs are rejected rather than cited.
Every KB library records the version line its entries were verified against
(describe_kb → libraries[].library_version, entries and mappings carry the
same field). Generated scaffolds start with // library@line, so a scaffold is
never silently reused across majors.
The gateway can also run as an HTTP server exposing the same tools:
npm run cli -- http --port 3456 --project /absolute/path/to/app
Endpoints:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.