DBZuper
A self-hosted visual workspace for MySQL, MariaDB, PostgreSQL and SQLite, in one Docker image.
The problem
Database clients like phpMyAdmin, Adminer and DBeaver mostly show a database as a tree of tables and a spreadsheet of rows. That is fine for precise edits and poor for understanding a schema you didn’t write. DBZuper set out to show a database as a connected system you can explore, without giving up a proper SQL workflow.
It is for developers and database administrators, so it had to be fast on large schemas, work across MySQL, MariaDB, PostgreSQL and SQLite, run self-hosted, and make destructive operations explicit enough that nobody loses data by accident.
What I built
- Schema Universe. The schema as a zoomable graph: tables are nodes sized by row count, relationships are edges (declared, plus lighter ones inferred from
*_idnames), and colours mark clusters of related tables. Zooming out shows cluster names, zooming in shows column cards. “Find path to” shows the chain between two tables and a ready-to-copy JOIN. - SQL workspace. A Monaco editor that autocompletes tables, columns and foreign-key joins from the schema, with tabs per connection, explain, and history.
- Data and record explorer. Server-side filters, sorting and paging per table, and a record view that follows one row through its relationships. The trail lives in the URL, so it can be shared, and can be copied out as a
SELECT … JOINquery. - Backup and restore of a database to
.sqlor.sql.gz, run by background workers with progress and cancel. - Server connections. Leave the database empty to browse every database on a server.
Architecture & stack
Laravel 13 with Inertia 3, React 19 and TypeScript. The Schema Universe is drawn with Sigma.js on a Graphology graph, the record explorer uses React Flow, and the editor is Monaco. DBZuper’s own data, users, saved connections, history and layouts, lives in SQLite, and connection credentials are encrypted at rest.
It ships as one Docker image for amd64 and arm64, with no external services at runtime. On first start it prints a setup code to the log, which is needed to create the first administrator, and an optional demo builds a small commerce database to explore.
Highlights
- Writes need intent. Writes, DDL and session statements need a confirm click.
UPDATEorDELETEwithoutWHERE,DROPandTRUNCATEneed the target table typed back, and a statement naming several objects needs all of them. - Read-only that the database enforces. A read-only connection is set read-only on the database session itself and re-asserted before every statement, rather than trusted to the UI.
- Bounded queries on each server engine. Statement timeouts map to each engine’s own setting:
max_statement_timeon MariaDB,statement_timeouton PostgreSQL, andmax_execution_timeon MySQL, where it coversSELECTstatements only. SQLite runs in-process with no statement timeout. Row, cell and response-size limits apply everywhere. - Performance budgets as tests. End-to-end tests fail if the universe takes over 2 seconds to be ready, a record expansion over 300 ms, or the connections page over a second to first paint, and the budgets are never loosened.
- Secrets kept out of history. Query history stores SQL as typed, except that passwords after
PASSWORD,IDENTIFIED BYand similar clauses are replaced with'***'.
Gallery
05 items
Video 
01 
02 
03 
04