datasette.io news preview

Simon Willison's Blog / 4/16/2026

💬 OpinionTools & Practical Usage

Key Points

  • The datasette.io site’s “news” section is generated from a GitHub-stored `news.yaml` file, using YAML entries with `date` and Markdown `body` content.
  • The article explains the YAML format is difficult to edit reliably, so a custom “news preview” UI was built to reduce friction and catch formatting issues before publishing.
  • The preview tool was created with Claude (including repo cloning and artifact generation) to both render the YAML and highlight YAML/Markdown validation errors, such as an invalid `date` format.
  • The walkthrough emphasizes a workflow improvement: paste-edit YAML and immediately see the rendered homepage output plus error indicators.
  • A visual example shows side-by-side editing and preview, with a validation error badge to help ensure correctness of news entries.
Sponsored by: Teleport — Connect agents to your infra in seconds with Teleport Beams. Built-in identity. Zero secrets. Get early access

16th April 2026

The datasette.io website has a news section built from this news.yaml file in the underlying GitHub repository. The YAML format looks like this:

- date: 2026-04-15
  body: |-
    [Datasette 1.0a27](https://docs.datasette.io/en/latest/changelog.html#a27-2026-04-15) changes how CSRF protection works in a way that simplifies form and API integration, and introduces a new `RenameTableEvent` for when a table is renamed by a SQL query.
- date: 2026-03-18
  body: |-
    ...

This format is a little hard to edit, so I finally had Claude build a custom preview UI to make checking for errors have slightly less friction.

I built it using standard claude.ai and Claude Artifacts, taking advantage of Claude's ability to clone GitHub repos and look at their content as part of a regular chat:

Clone https://github.com/simonw/datasette.io and look at the news.yaml file and how it is rendered on the homepage. Build an artifact I can paste that YAML into which previews what it will look like, and highlights any markdown errors or YAML errors

Screenshot showing two side-by-side views of a datasette.io news preview tool. The left panel shows a dark-themed YAML editor with news entries containing date and body fields in Markdown format, with a red validation error at the bottom indicating the date field has an invalid format. The right panel shows the rendered preview output with formatted headings by date (April 2026, 18th March 2026), displaying 115 news entries with linked release names, inline code snippets, and changelog descriptions. A red badge with "1" appears on the left panel header indicating one validation error.

Posted 16th April 2026 at 12:18 am

This is a beat by Simon Willison, posted on 16th April 2026.

tools 58 datasette 1476 claude 265 vibe-coding 85

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe