← All writing

Ralphloop + Storybook = A match made in heaven for frontend development

Lately, we’ve been using AI agents to build UI components, but our review process was a cognitive nightmare. Every time the agent made a change, a developer had to manually spin up the app, log in, navigate deep into a specific page, and visually check the results just to give the agent feedback. It completely defeated the purpose of automation.

Then sprang to my mind that in our toolbox, we can ask AI agent to browse Storybook instead of the actual app. Combine with Ralphloop, the AI agent pulls a task, updates the code, and immediately deploys it to an isolated Storybook environment.

Using a Browser MCP, the agent opens the Storybook link itself, visually inspects the component, and verifies the change. If the design doesn't match, it catches its own mistake and fixes the code instantly. No logging in, no navigating, just pure self-correction. Once it passes, it commits and grabs the next task.

Ralphloop development workflow with AI and Storybook: check for the next task, the AI agent updates the UI code, verifies the change in Storybook through a Browser MCP, loops back if it does not match, then reviews, commits and picks the next task

I've been applying this WoW in my work and it runs perfectly and help me to focus on more important thing rather than asking the agent to fix the CSS (centre the div!) on every single component changes.

If you have any insights or improvements on this, I'm all ears!

~/whoz.dev / how-its-made.md

$ cat how-its-made.md

You found the cheat code.

No extra lives, sorry. Here's how this page is built instead.

Generator
Zola 0.23, a single Rust binary. Plain static HTML, no framework runtime.
Templates
Tera 2 components. Posts in Markdown, the rest of the content in one TOML file.
Styles
Sass compiled by Zola, light and dark tokens, no CSS framework.
Script
One vanilla JS file, zero dependencies.
The pond
Two 2D canvases. ASCII waves from drifting noise, and nine dot-art koi with a 12-vertebra spine. Eight gold and red for luck, one black for protection. Click to feed them.
Motion
CSS scroll-driven animations, View Transitions and Speculation Rules prerendering.
Type
Bricolage Grotesque, Instrument Sans and JetBrains Mono.
Hosting
Vercel.
Built with
Claude Code, and a lot of opinions from me.

measuring…counting frames…