Open-Source Tool for Validating Generative UI
zook1337 · reddit · 2026-07-15
The author introduces an open-source project uivet for validating non-deterministic generative UI in CI.
Problem
Generative UI output varies each time; pixel diff regression isn't applicable, and LLM-only text evaluation doesn't render DOM.
How it works
For each scenario:
- Samples N generations
- Renders with headless Chromium
- Evaluates data consistency, accessibility (axe-core), layout, console errors
- Combines with a multimodal judge model for strict JSON output
- Uses score stddev for consistency and fails CI via exit code comparison with baseline
Design motivation
Real defects: generated cards silently omit warranty links. Human evaluator agreement (Cohen's kappa) is low, necessitating parallel deterministic checks and model judges.
Current ask
This is an MIT-licensed project with an offline demo. The author seeks critique on:
- Whether multimodal JSON scoring is stable enough to block builds
- Or if we should only trust deterministic consistency and integrity thresholds
More from coding & agent
- Ben Bajarin: Frontier AI is becoming the enterprise cyber-defense stack — BenBajarin · 2026-10-26
- Building AI bots on raw APIs? Devs say models are 'dumb without the harness' — madeofAjala · 2026-10-26
- HarnessMM cuts agent tokens per task by up to 88% while raising success rates — omarsar0 · 2026-10-26
- Microsoft demos intent-classifying agents built with Copilot App and Foundry, deployable across Teams and Outlook — marlene_zw · 2026-10-26
- Looking for a wearable mic with best battery life that feeds recordings to personal agents via MCP — altryne · 2026-10-26
- The identity crisis in software engineering: multiagent systems demand a new problem set — rakyll · 2026-10-26