Manish Goyal

Case study AI website builder

AutoReady

Describe a website, and it plans the pages and writes them into a live preview. Change a whole page, or one section, by saying what you want.

The site plan: pages, sections, colours and fonts, editable before anything is built

The problem

Going from an idea to a working site usually means a blank editor and a long list of decisions.

What I did

Designed and built it on my own: the site planner, the page writer, the live preview and the admin.

How it works

  1. Describe

    You describe the site; the builder (server-rendered screens, plain JavaScript) sends it to the app.

  2. Plan

    The FastAPI app handles accounts and quotas and creates a job. A site plan comes first: pages, sections, colours, fonts.

  3. Write

    A worker asks a model (local Ollama or a cloud model) for each page and streams it back.

  4. Check

    A fixed output contract and an HTML validator check every page; an invalid page gets one repair call.

  5. Save

    Each page is saved as a new version in SQLite or PostgreSQL, so any change can be undone.

  6. Style and serve

    Tailwind compiles a stylesheet per site, and a separate address serves the previews and the published sites.

Progress streams to the browser over Server-Sent Events, so you watch each page being written.

AutoReady architecture: builder, app, worker, model, checks, versions and the sites address
The architecture, from the project's own documentation.

Decisions that mattered

Generated sites live on another address

Generated HTML is untrusted. On a separate origin it can’t read the app’s cookies or call the app’s API as the user.

The output contract is added by code

It isn’t editable, so a change to a prompt can’t break the parsing.

Static sites

They work with smaller and local models, and are simple to host anywhere.

How it is tested

  • Tests run against a fake streaming model, so no test depends on a real one.
  • Security tests for tenant isolation and the content security policy, and an accessibility test of every screen.
  • Setup is checked in CI on three operating systems.

Screens

A page being written live into the preview
A page being written live into the preview
Changing one section of a demo bakery site by describing the change
Changing one section of a demo bakery site by describing the change
The mobile preview of a generated site
The mobile preview of a generated site

Built with

  • Python
  • FastAPI
  • Server-Sent Events
  • SQLAlchemy
  • SQLite or PostgreSQL
  • Tailwind CSS
  • Docker