AI Publishing Platform

2026 – ongoing · E2E · Production AI

Python, FastAPI, Pydantic, PostgreSQL, Azure, React, TypeScript, LLM tool-calling, Headless browser rendering, Vision models, LLM agents, Image analysis, CI/CD

Built a studio for a multi-tenant publishing platform from the ground up. It helps an editorial team make the print ready pages of a fashion magazine. An editor uploads photos and a manuscript. The studio returns print ready pages, and the team refines them in the layout editor.

These pages do not use a template. Each story has a different number of looks and a varying amount of text. A model composes each page, and propreitary deterministic code measures and keeps it within bounds.

There's several other AI layers of the platform. Vision models tag, rank and place images. A model changes plain language brand guidelines into validated patches. Embeddings make the media library searchable.

Problem

A print layout that is almost correct still needs a person to repair it. A model can suggest a change, but code decides where an item goes.

On a studio page, the model decides the layout. A model cannot measure millimetres by eye. Code measures each page that the model makes.

Approach

  1. Code analyses each photo before layout. A model then composes each page, and a browser engine renders it.
  2. Code converts the render into the platform's document format, renders it again and compares the two.
  3. A deterministic audit checks margins, spacing and overlap, and a separate checker scores the page. If one check fails, the page fails.
  4. Code rejects any change to the manuscript text. The first accepted page sets the style for the rest of the story.
  5. Elsewhere on the platform, models propose and a deterministic search decides. One document format feeds preview, export and editing.

Results

  • Each studio page passes the same checks before an editor sees it. It opens as a new version in the layout editor.
  • A usage ledger records the cost of each run, also of failed and stopped runs.
  • The platform is in production with many tenants, and its layouts go to print.
  • New output targets do not need renderer changes, because all targets read one document format.

Limits

  • The same inputs can give different layouts. The checks make sure that a page has the correct properties, not a specific layout.

Context

production platform
Multi-tenant
studio page acceptance
Fail-closed
details generalised
Under NDA

Architecture

Two flow diagrams side by side. Studio: photos and manuscript, image analysis, a model composes the page in HTML and CSS, a sandboxed browser records each frame and line, conversion to the document format with a second render, then an audit and an independent checker that can send the page back for one revision, then the layout editor. Platform: copy and images, models propose, validation and a deterministic layout search, one document format, then preview, export and editing.
In both flows a model proposes and code checks the result.
  1. Copy and images in
  2. Model layer proposes
  3. Validation + deterministic layout
  4. Canonical document format
  5. Preview, export, assisted editing