How we're building YAH: behind the scenes of an AI website builder
What I've learned building an AI website builder, including the empty home page that passed every check and the blackjack game that couldn't deal.
Getting an AI model to write a web page is easy these days. Getting one to make a whole website that builds, works on a phone, takes real bookings and is still right after its owner's tenth change is a different job, and it's the one I've spent this year on.
Here's what I've learned so far. Some of it I learned the hard way.
One big prompt was never going to be enough
The first version of YAH was one enormous prompt. You described your site, the model got everything at once and sent everything back at once. It worked often enough to fool me. When it failed, though, the whole site failed with it, and there was no telling which part of that giant prompt was to blame.
So a build is now a series of smaller steps, and each step goes to whichever model does that job best.
- Ask. If your description leaves out something important, YAH asks before it builds. A site built around a guessed business name only gets rebuilt later.
- Plan. Claude Haiku 5.5 turns the conversation into a plan: which pages, which sections, which features. It starts from a blueprint for your kind of business, because a restaurant needs a menu and table booking and a salon needs services and appointments, whether or not the owner remembered to say so.
- Draw. Haiku then draws each page: the layout, the type, where the photos go. The drawing is plain markup with no script in it. YAH compiles it into the finished site and plugs in tested parts for anything that has to work, like bookings, a shop or payments. Haiku is quick, and cheap enough that I can let it have another go when something fails.
- Look. Claude Opus 5.5 looks at the built page once, the way an art director would, and lists what it would change. Haiku makes the changes. Opus costs far more than Haiku, which is why it gets one look and not the whole job.
- Check and repair. This is where most of the work goes, so it gets its own section below.
Games and small tools don't fit this. They need code that runs, so for those a model still writes code, on top of a kit I'll come to.
The best thing about small steps is that I can measure each one and swap it without touching the rest. When I'm choosing between two models, or two ways of doing something, I run both on the same briefs and compare the results side by side without knowing which is which. My favourite on paper has lost more than once.
The empty home page that passed every check
At one point I tried a cheaper model for writing sites. One of the sites it produced had a completely empty home page. And every check I had at the time passed it. It compiled. It loaded. It didn't crash. As far as my checks could tell, nothing was wrong.
I'd been asking "does it compile?" when the question was "would a person looking at this think it's finished?". So these days every build is compiled exactly as it will be served, then opened in a real browser, where every page is visited and anything empty, crashed or broken gets caught. And then it's actually used. If YAH builds a calculator, the checks press its buttons, because a calculator with dead buttons compiles perfectly well.
Whatever fails goes back to Claude along with the exact error, and it tries again before you see anything. I keep an eye on how often that happens. When the number of builds needing a repair doubled over a couple of days, I went looking for the causes, expecting to rewrite some prompts. Mostly the fixes were small, boring and automatic, like adding an import the model had forgotten.
The blackjack game that couldn't deal
YAH builds small games as well as websites, and casino games taught me my favourite lesson. If you ask a model to write blackjack from scratch, you get something that looks great and deals the cards wrong. Roulette, dice and craps each broke in their own creative way.
So I stopped asking. I have one rule now: what the kit provides works, and what the model writes from scratch breaks.
The kit is a set of tested parts: booking forms, shops, memberships, tickets, galleries, and proper game engines for snake, blackjack, roulette and the rest. The model decides what a site needs and how it should look, and the kit does the parts that have to be right. The kit's files are locked and put back on every build, so a later edit can't quietly break them.
Business sites now take that rule as far as it will go. A page the model draws has no script in it at all, so anything on it that has to work comes from the kit.
Small changes stay small
A website spends most of its life being edited. When you ask for a change, YAH works out which parts of the page it touches and changes only those. It doesn't rewrite the whole site and hope nothing else moved. You can also click any part of the page and change just that, or type straight into the preview. Every change is saved as a version, and any version from the last 180 days is one click from undone.
Taste turns out to matter
I've become oddly strict about design. The first sites YAH made were colourful in the way AI designs tend to be, with glows, gradients and a different shade for every section. Good business sites don't look like that. They use a few simple colours, save the strong one for buttons and keep everything else calm.
Teaching the builder that took longer than most features did. And the biggest lesson in it had nothing to do with the model. It was about what I was handing it, which got a post of its own.
The parts that aren't AI
A website that takes people's money has to be dependable. So everything behind the site is ordinary, well-tested code: bookings, orders, Stripe payments, invoices, mailing lists, and the Manage tab that runs them all. YAH runs on AWS, and every site is served through a CDN.
What's next
Depth, mostly. I want each kind of business site to be as good as one a professional would make, and I want edits to feel instant. I'll keep writing about it here, and from launch everything that ships goes in the changelog.