DOOMQL

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

A Doom-style game running entirely inside SQLite queries shows recursive CTEs can be pushed into absurd territory, mostly a curiosity, but a workable demo of the new Datasette Apps plugin.

Read this as

A developer named Peter Gostev built DOOMQL, a small Doom-style shooting game where every rule, movement, enemies, shooting, even drawing the pixels on screen, is handled by SQL, the language usually used for asking questions of databases. It runs in a terminal via a Python script using SQLite, a popular free database. Simon Willison then built a web dashboard, using AI assistance from a Claude model, that shows a live map of the game while he plays it. It is a novelty project, not a product.

This is a hobby demonstration, not a commercial development: a game engine implemented entirely as SQL queries in SQLite, built by Peter Gostev using GPT-5.6 Sol. Its practical value is as a showcase of Datasette Apps, Willison's new plugin for adding custom HTML apps to a Datasette instance, Willison had Claude (Fable 5) generate a live viewer with a minimap from the game's frame_pixels view. No costs, users or business implications are stated.

DOOMQL (github.com/petergpt/doomql) is a Python terminal game where SQLite owns movement, collision, combat, progression and rendering; the ray tracer is one huge SQL query built on a recursive CTE, outputting to a 160×54 frame_pixels view (8,640 RGB pixels) at 89ms per query. Running it creates /tmp/doomql/.doomql/doomql.sqlite, which Willison explores via Datasette with the new datasette-apps plugin (uvx --with datasette-apps), serving an auto-refreshing HTML viewer plus minimap. Built with GPT-5.6 Sol; viewer app generated with Claude Fable 5.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

DOOMQL SQLite Datasette Datasette Apps plugin GPT-5.6 Sol Claude Fable 5

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading