RuneActive

Diagrams that know what they are drawing.

Type
Project
Role
Open source & research
Category
Developer tools
Started
Apr 2026
Status
Active

The problem

Generated diagrams get tangled when the renderer does not know what the boxes mean.

The approach

Rune takes D2, Mermaid or PlantUML. It classifies nodes by meaning, detects patterns and sets layout constraints before it renders with ELK. An optional learning mode uses corrections people make to improve later diagrams.

My part

I built the service, starting 8 April 2026. It is a Node.js and Hono API around the D2 binary. Endpoints render, batch, analyze, take corrections, embed with oEmbed and make permalinks. Prometheus metrics watch it. A local Ollama model does classification and embeddingsembeddings Lists of numbers that represent the meaning of text, so a computer can measure how similar two pieces of text are., and the schema lives in Supabase.

How the pieces connect

  1. D2 source
  2. Classify nodes
  3. Layout constraints
  4. Rendered diagram

Built with

  • TypeScript
  • Node.js
  • Hono
  • D2

Questions about Rune?

I’m glad to talk about how it works and what I learned building it.

Next projectApprenticeAn agent that learns from its own failures.
⌃