Inspiration

Every developer has hit this wall: you draw a clean wireframe or vibe-code an AI mockup that looks great as a static screenshot—and then everything falls apart the moment someone actually clicks a button, drags an item, or hands it off to a coding agent. Static wireframes don't explain how state moves, raw AI-streamed UIs crash on cyclic graphs or bad props, and coding agents end up guessing the behavior you had in your head.

I loved Vercel’s @json-render approach to catalog-constrained UI and classic communication-first wireframe kits, which led me to a simple question: what if a wireframe wasn't a dead picture you throw away, but a playable, fuzz-tested specification that hands verified rules directly to Kiro?

What it does

WizFrame (wizframe-workbench.vercel.app/play) is an offline-first Interactive UI Workbench built on my @genui-studio/core reliability engine:

Playable Behavioral UI (/play): Turns a creative brief, Excalidraw sketch, or spec into a live React interface driven by declarative Trigger → Guard → Effect rules (InteractionSurface + InteractionRuleEngine + TimeTravelStateStore) with procedural Web Audio cues—demonstrated out of the box by Signal Relay Vault (14 rules, zero ad-hoc component state). Live Flow Map & Time-Travel History: Watch active rules and edges pulse in real time as you interact, inspect or toggle rules in the Rule Inspector, and scrub backward through immutable state snapshots. 1-Click Winnability Fuzzing & Auto-Replay: Click Verify winnability to run 300 randomized fast-check playtest sessions (fuzzPlaytestSpec) checking whether win and lose states are reachable without crashes or infinite rule loops, flag dead rules, and Replay winning trace step-by-step on screen. Zero-LLM Excalidraw Wireframe Architect + Device Preview: Sketch with catalog-backed blocks and directed state arrows in Excalidraw—compiled synchronously with zero network or LLM calls—and test live across Desktop, Tablet, and Phone viewports (with optional BYO-LLM streaming for Quick Vibes and .md Master Prompts). Dual Export (Next.js App or Universal Agent Skill Pack): Export the exact same blueprint either as a runnable Next.js 15 App Router starter (.zip), or as an Agent Skill & Contract Pack (-skill-pack.zip) bundling .kiro/specs, SKILL.md, Excalidraw source, and Vitest contract tests baked with the fuzzer’s discovered winning traces.

To prove one @genui-studio/core runtime powers radically different architectures without changing core code, I also built four MIT-licensed starter applications on top of it:

AFTERDARK 2.0: An interactive 3D WebGL horror mystery set in a foggy cemetery, where Light Mode isn't just a button in the navbar—finding and pulling an underground breaker flips the entire 3D world into a clean daylight Swiss editorial publication. NINETY9: A retro 1997 Macintosh/NeXT workstation exploring 34 nineties tech stories, governed strictly by 5 monochrome hex shades, CRT scanlines, and three playable 1-bit HTML5 Canvas arcade games. BIOS // NECROMANCER: Where cloud configs aren't written in YAML by hand—tuning CPU clocks and RAID inside a 1994 Award BIOS screen with a live 3D motherboard thermal twin compiles directly into Terraform, Docker Compose, and Vercel configs. CHIMERA // LAB: A bio-digital SQL lab modeling live database traffic as a Physarum slime-mould network, where local optimizer agents spot full-table scans (Seq Scan → Index Scan), advise index DDL, and drive FM audio sonification. How I built it

I built WizFrame solo in a strict TypeScript 5.7 / React 19 pnpm monorepo (GenUI-kit) layered over @json-render (v0.22.0), @excalidraw/excalidraw, Three.js / @react-three/fiber, Zod v4, and fast-check:

@genui-studio/core: Houses the SHA-256 verified catalog wrapper, 3-color DFS DAG cycle sanitizer (sanitizeSpecGraph), prototype-pollution and URI guardrails, per-element fault isolation with provenance, structural-sharing TimeTravelStateStore (with a 32-transition circuit breaker), declarative InteractionRuleEngine, and @genui-studio/core/testing fuzzing arbitraries. Kiro Spec-Driven Workflow (.kiro/): Building a multi-package runtime solo gets messy fast if schemas and components drift apart. Instead of prompting feature-by-feature, I anchored the build in .kiro/specs/ (EARS requirements, architecture designs, and INV-PBT-01..04 correctness theorems), .kiro/steering/ (genui-invariants.md defining 7 non-negotiable safety laws), automated .kiro/hooks/ (catalog-audit.mjs scanning 196 source files and run-pbt-suite.mjs), a custom Kiro Power (.kiro/powers/json-render-power/POWER.md), and an MCP server (@genui-studio/mcp) for catalog inspection, spec validation, and fuzzing. CI & Standalone Shared-Core Proof: Every push runs GitHub Actions CI across workspace script audits, builds, typechecks, ESLint raw-HTML guards, 23 test suites (163 tests), Kiro hooks, and a Rollup static bundle audit proving the Excalidraw compiler makes zero network/LLM calls. Two standalone Vite apps (apps/ninety9-archive and apps/cmos-cloud-bios) mount directly on @genui-studio/core with zero dependency on apps/studio-hub. Challenges I ran into

Building an engine solo where schemas, React fibers, interaction rules, and exporters all have to stay in sync surfaced subtle bugs I never would have spotted on my own:

Silent SSR React Fiber Hook Bug: Everything looked fine in client renders, but my SSR hydration checks caught invoking catalog renderers as plain functions instead of React elements—silently running child hooks on the wrapper fiber and breaking React.memo. Isolating on its own child fiber inside fixed hook ordering across valid, healed, and faulted transitions. Locale-Dependent Wireframe Compilation: Property and determinism tests uncovered that JavaScript’s String.prototype.localeCompare sorted sibling wireframe blocks differently under Danish (da) collation ("aa" sorts after "z"), breaking cross-machine snapshot determinism. I replaced locale collation with strict UTF-16 code-point tie-breaking (compareCodePoints). Race Conditions in Countdown Macros: Fuzzing my offline Pivot Macros revealed a subtle guard mismatch (/outcome vs /experience/outcome) that allowed a ticking countdown timer to overwrite a player's win state one second after they won. Avoiding Circular Agent Contract Tests: Exporting tests that only pass against the mock they came from doesn't help a coding agent. I solved this with a dual-driver AppDriver pattern inside exported Skill Packs: reference-driver.ts passes immediately (GENUI_DRIVER_TARGET=reference), while the default production-driver.ts stub fails with NotImplementedError until the coding agent wires it to real app code. Accomplishments that I'm proud of Zero-Setup Playability: Anyone can open /play offline with zero API keys, play Signal Relay Vault to a win, watch the Live Flow Map pulse, fuzz-test 300 sessions, auto-replay the shortest winning trace, and export working code in under a minute. Turning Kiro’s Workflow Into an Exportable Artifact: Working inside Kiro’s spec-and-hook loop saved me so many times as a solo builder that I baked the same idea into WizFrame’s export—generating .kiro/specs alongside executable fast-check traces so coding agents build against proven behavior instead of static screenshots. Extreme Runtime Versatility: Running a playable puzzle vault, a 3D WebGL horror-to-daylight world, a 5-tone 1997 archive, a 1994 BIOS-to-Terraform compiler, and a slime-mould SQL lab on the exact same @genui-studio/core pipeline. What I learned Property-based shrinking finds the bugs humans don't imagine: Randomized fast-check shrinking caught missing trailing newlines dropping final streamed elements, -0 breaking canonical hashes, diamond child aliasing, and out-of-order parent/child JSON Pointer writes—turning my blind spots into permanent CI regression tests. (I also learned to frame verification honestly: bounded property suites catch real structural bugs early, though they aren't infinite mathematical proofs.) Specs and hooks are a force multiplier for solo builders: Keeping 7 explicit invariants in .kiro/steering backed by .kiro/hooks prevented schema-to-component drift across 17 catalog definitions and 196 files without slowing me down. What's next for WizFrame Multi-Scene Flow Authoring on the Canvas: Let creators draw scene-to-scene transitions and guard badges directly inside Excalidraw and round-trip them into InteractionRuleEngine rules. Playwright DOM Adapter for Skill Packs: Ship a pre-wired Playwright production-driver.ts template alongside the unit AppDriver so Kiro and CI pipelines can run exported fuzzer traces straight against a live localhost browser build. Standalone npm Release of @genui-studio/core & genui-studio CLI: Publish the core runtime, fuzzer CLI (npx genui-studio fuzz), and MCP verifier for developers building guardrailed @json-render interfaces in production.

Built With

  • drei
  • eslint
  • excalidraw
  • fast-check
  • github-actions
  • jsdom
  • json-render
  • jszip
  • kiro
  • next.js
  • node.js
  • pnpm
  • react
  • react-three-fiber
  • tailwind-css
  • three.js
  • typescript
  • vercel
  • vite
  • vitest
  • web-audio-api
  • webgl
  • yantra
  • zod
  • zustand
Share this project:

Updates

Submission history