JS / DODO
DevLog

Patchbay: live dashboards your AI agent wires up for you

Nov 27, 20261

In a recording studio, a patchbay is the panel full of sockets where you wire any source into any device with short cables. Microphone into the compressor, compressor into the desk, done. I wanted exactly that panel for data: sources on one side, charts on the other, and rules for processing the data in between. And someone else plugging in the cables.

That is Patchbay. You can try it at patchbay.me.uk without signing up, and the source code is on GitHub under the MIT licence.

What it is

Patchbay makes live dashboards. It takes data from public APIs (weather, earthquakes, crypto, ECB exchange rates, Wikipedia, GitHub, npm and more: 14 built-in connectors, plus two that generate demo data), from your CSV and JSON files, from RSS and Atom feeds, and from any JSON API, including private ones that need a key. The result is a dashboard that refreshes itself when the data actually changes and can be shared with a link.

But the world has plenty of dashboards. The interesting part is who builds them.

An agent instead of clicking

Most dashboard tools expect you to click every chart into place. Patchbay works the other way round: its primary interface is an MCP server that an AI agent such as Claude drives. Add https://patchbay.me.uk/mcp as a connector and say what you want in plain words:

Build me a dashboard about earthquakes this week: where they happen, how strong they are, and a daily trend. Check the result and fix anything that looks off.

The agent looks at the available sources, previews the data (columns, types, suggested charts), creates a dashboard and sends a batch of small operations: add a dataset, add a chart, change an axis. Every operation goes through strict validation and is saved as a new version you can roll back.

Then comes the part I like best: the agent looks at its own work. The render_snapshot tool returns an image of the dashboard, drawn on the server with the same code the browser uses. If it sees an empty chart or unreadable labels, it fixes them itself. Meanwhile you watch the dashboard come together live in your browser, and any change can be undone with one click.

Everything the agent can do, you can do in the editor too, with undo/redo.

What it solves

Today's AI assistants can do more than answer a question about data. Claude will draw you a dashboard right in the chat, or publish it as an artifact with its own link that can read data through your connectors and be updated later. Patchbay is a dedicated place with its own server for that. The data is fetched by the server, not by each viewer's browser: all viewers share one load, get changes live, and a public dashboard runs on a TV without anyone signing in. Keys to private APIs stay encrypted on the server, and every change is a version you can roll back. And any agent with MCP can build it, not just Claude.

It also sits somewhere between heavy BI and monitoring tools (Grafana, Metabase) and static homelab start pages (Homepage, Dashy). Grafana is often far more than you need, a start page often too little.

A few things I am proud of:

  • Keys stay hidden from the agent. You save an API key once, encrypted and bound to one address. The agent can use it by name, but cannot read or change it, and cannot make its data public. Only you can, in the web app.
  • No LLM inside. The server needs no model and no keys of its own; your agent brings the intelligence. So the server has no token costs at all.
  • Processing without code. Filters, derived columns, aggregations, time buckets and rolling averages are declarative rules with a small expression language, no eval. The editor shows the row count after every step.
  • Made for the wall. Presentation mode runs unattended on a TV, with maps, clocks, news and status tiles. A widget can even ring a bell when a new order comes in.
  • Filters and clicks. One dashboard for every region or period: click a bar and the rest filters to it.
  • Boring storage. Each dashboard is one folder. Delete the folder and the dashboard is gone.

How it came together

The first commit is from 25 October 2026, the first public release, 0.1.0, followed six days later, and the current version, 0.3.5, is from 17 November. In that month there were 565 commits, about 50,000 lines of TypeScript and another 34,000 lines of tests, 1,682 of them. Before release the server went through an adversarial security review, and every finding has its own regression test.

As with my other projects, I worked with Claude Code: one session acts as the orchestrator, planning and checking, agents take the individual tasks, and I decide what ships and when. Most of the time went not into code but into precision: making sure the agent gets errors it can understand, that the numbers in the browser, in the agent's image and in the API are always the same, and that a dashboard on a wall survives for weeks without anyone touching it.

Technically it is a single Node process (Hono, React 19, ECharts, SQLite), so it can be hosted almost anywhere. The public instance runs at my home.

Try it

  • Online: patchbay.me.uk, click Build a dashboard and pick a template. The landing page also has use cases with a video and the prompt that built each dashboard.
  • With an agent: in Claude, add a custom connector in the settings with https://patchbay.me.uk/mcp. In Claude Code, claude mcp add --transport http patchbay https://patchbay.me.uk/mcp is enough.
  • On your own machine: docker run -d -p 8787:8787 -v patchbay-data:/data ghcr.io/carnaby/patchbay:latest

Code, documentation and ideas for contributors are at github.com/carnaby/patchbay. Issues and pull requests are welcome, and a star is always nice.