AIARTICLE

5 min read

Datasette-charts 0.4a0 fixes plugin hook after Claude Opus 5.5 tested the API

The 0.4a0 release of datasette-charts adjusts the hook that lets you create new chart types, after Simon Willison used Claude Opus 5.5 to build an experimental plugin and expose the design's friction points. The release also debuts the charts.datasette.io site, with a tutorial for plugin authors and a demo gallery.

Datasette-charts 0.4a0 fixes plugin hook after Claude Opus 5.5 tested the API
Image: Alan Andrade
Article · AI
Reading
5 min

The 0.4a0 release of datasette-charts adjusts the hook that lets you create new chart types, after Simon Willison used Claude Opus 5.5 to build an experimental plugin and expose the design's friction points. The release also debuts the charts.datasette.io site, with a tutorial for plugin authors and a demo gallery.

Datasette, Simon Willison's open source tool for exploring and publishing data as SQLite databases with a web interface and API, got a new version of its charts plugin on November 27, 2026. datasette-charts 0.4a0 is an alpha release (the a0 suffix indicates this) that tweaks a structural detail: the plugin hook that lets other plugins define new chart types inside Datasette.

The interesting part isn't the hook itself, which already existed, but how Willison validated whether it actually worked. According to the author himself, in a post on his blog, no one had used this hook to build anything until now. To test it, he turned to an AI model as the API's first consumer.

The experiment: Claude as a naive API user

Willison asked Claude Opus 5.5 to build an experimental chart plugin using exclusively the public hook, without access to internal shortcuts in the project. The idea is simple and familiar to anyone who has done SDK design: an agent with no prior context on the source code tends to stumble exactly where the API is ambiguous, poorly documented, or inconsistent with the rest of the system.

Grid of four examples from the Datasette Charts documentation showing annotations such as a vertical line, reference line, shaded band, and callout on a chart point
Grid of four examples from the Datasette Charts documentation showing annotations such as a vertical line, reference line, shaded band, and callout on a chart point. Reprodução: simonwillison.net.

I had Claude Opus 5.5 build an experimental plugins just to try out the hook and it came up with a bunch of friction points in the design. This release addresses those, which should make building additional chart plugins a whole lot more ergonomic.

Simon Willison, creator of Datasette

The post doesn't detail exactly what the friction points were, nor does it show the diff of what changed in the hook between the previous version and 0.4a0. This is a real limitation of the source: it's possible to confirm the process happened and resulted in published changes, but it's not possible to reconstruct here, with precision, the before and after of the API's signature.

What changes in practice for plugin authors

Datasette works with a plugin system based on hooks: predefined extension points that let third-party code connect to the core at specific moments in the application's lifecycle. The charts hook follows this logic: a third-party plugin registers a new chart type, and datasette-charts starts offering it alongside the native types.

Until 0.4a0, this path was theoretical: the interface existed, but no real plugin had been written against it besides the core itself. It's the kind of situation where design bugs stay invisible until someone outside tries to use the API without the implicit knowledge of whoever wrote it. The release solves exactly this gap, making the hook more predictable for whoever builds the next chart type.

Along with the hook fix, Willison published the charts.datasette.io site, dedicated to the plugin. It brings two elements of direct interest to anyone adopting the tool:

  • A tutorial aimed at plugin authors, explaining how to implement a new chart type starting from the fixed hook;
  • A gallery with all the chart types and annotations already supported natively, each one linking to an interactive demo running on Datasette Lite.

Datasette Lite is the version of Datasette that runs entirely in the browser, via Pyodide and service workers, without needing a Python server behind it, something Willison himself detailed in another recent post, from November 17, 2026. Using Datasette Lite as the gallery's showcase has an obvious practical advantage: the reader interacts with the real chart, without needing to install anything, just opening the link in the browser.

Why this method matters beyond Datasette

The value of the news for those who build software isn't just in the charts plugin itself, which is a niche project within the Datasette ecosystem. It's in the method: using a language model as the first real client of an API not yet tested in production, before publishing the stable version.

This kind of cycle is replicable in any library or SDK under development. In a typical project, the path would be:

  1. Write the public API (hook, function, endpoint) with the documentation that would normally accompany a release;
  2. Ask a code agent, without access to the internal source code, to build a complete use case using only that documentation;
  3. Review where the agent had to guess behavior, invented parameters that don't exist, or took more verbose paths than necessary;
  4. Treat each of these points as an API ergonomics bug, not as the agent's error.

In short: the agent doesn't need to get it right the first time to be useful. The value lies in exposing, cheaply and quickly, the same stumbling blocks a human developer would hit when adopting the API for the first time, without the context of whoever designed it.

What remains open

Willison's post is short and works more like an annotated changelog than a case study. There's no link to the experimental plugin that Claude Opus 5.5 built, nor to the pull request with the fix's diff, which makes it impossible to compare the API before and after with technical precision. There's also no benchmark of how long the process took or how many iterations were needed between the agent finding the problem and Willison validating the fix.

For those who follow the Datasette ecosystem, the natural next step is to see whether other third-party plugins actually show up using the revised hook, which would be the real test of whether the ergonomics improved. Until then, the case serves as a practical, publicly documented example of a pattern of AI use that goes beyond generating application code: using the model as an API design QA tool before the release reaches other developers.

Translated from the Brazilian Portuguese original · Read the original

View profile →