Self-host ChartDB
v1.21.0Database diagram editor with single-query schema import
- Stars
- 23 120
- Port
- 80 (HTTP web interface)
ghcr.io/chartdb/chartdbWhat is ChartDB?
ChartDB is a web-based database diagramming editor that lets you visualize your database schema by running a single query in your database and pasting the JSON output. It supports PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, CockroachDB, and ClickHouse. Key capabilities include AI-assisted SQL export for cross-database migration, interactive visual editing, and diagram versioning. The self-hosted edition runs via Docker or npm without needing database credentials. Licensed under AGPL-3.0 and currently in public beta.
ChartDB alternatives
sqlchatOpen-source, self-hosted chat-based SQL client that lets developers query and edit MySQL, PostgreSQL and MSSQL databases in plain language using OpenAI or Ollama.Comparesqlchat with ChartDB
nocodbSelf-hosted open-source Airtable alternative that turns any database into a no-code platform with spreadsheet-like interface, supporting PostgreSQL, MySQL, and SQLite.Comparenocodb with ChartDB
DbGateSelf-hosted, open-source (GPL-3.0) database client for engines like MySQL, Postgres, SQL Server, Mongo and Redis, shipped as desktop apps or a Docker/NPM web UI.CompareDbGate with ChartDB
dbhubDBHub is a minimal, token-efficient MCP server connecting AI assistants to PostgreSQL, MySQL, SQL Server, Oracle, MariaDB, and SQLite with built-in guardrails.Comparedbhub with ChartDB
chmonitorchmonitor is a self-hosted, open-source operational advisor for ClickHouse that reads system tables for real-time monitoring and AI-driven schema recommendations.Comparechmonitor with ChartDB
SQLPageFast SQL-only data application builder. Automatically build a UI on top of SQL queries.CompareSQLPage with ChartDB
MetabaseSelf-hosted, open-source BI tool with dashboards, a no-code query builder, a SQL editor, Metabot AI answers and embedding; run it in Docker or as a Java JAR.CompareMetabase with ChartDB
next-ai-draw-ioOpen-source, self-hosted draw.io canvas where an AI turns chat prompts into diagrams you can edit, version and export, across 25 model providers.Comparenext-ai-draw-io with ChartDB
All self-hosted alternatives to dbdiagram.io → All self-hosted alternatives to DBeaver ERD → All self-hosted alternatives to DrawSQL →
Should you self-host ChartDB?
ChartDB scores 75/100 on selfhost.directory (how scoring works) and ranks #7 of 41 in Database Management. It has 23 120 GitHub stars, +130 in the last 30 days.
It shipped 6 stable releases in the past year. The latest, v1.21.0, came out on 1 November 2026. New versions land roughly every 5 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is supabase (90/100, 114 995 stars). It scores higher overall, so compare the two before you pick. See ChartDB vs supabase side by side.
Features
- AI-Powered SQL ExportRequires OpenAI API key or custom LLM endpoint
- DBML Editor
- DBML Import/Export
- Diagram Import/Export (JSON)
- Embeddable DiagramsOnly available in ChartDB Cloud
- Image Export
- Instant Schema Import
- Interactive Diagram Editing
- Multi-database Support
- Real-Time CollaborationOnly available in ChartDB Cloud (Teams plans)
- SQL Export
- Sync Database to DiagramCloud version has automated sync via API; self-hosted requires manual re-import
- Version History & DiffsOnly available in ChartDB Cloud
ChartDB README
More in Database Management
chmonitorchmonitor is a self-hosted, open-source operational advisor for ClickHouse that reads system tables for real-time monitoring and AI-driven schema recommendations.
clinSelf CLI provisions a production-ready backend — PostgreSQL, Hasura GraphQL, Auth, Nginx — on your own server in minutes via Docker. MIT licensed with 171 plugins.
clickhouseClickHouse is an open-source, self-hosted column-oriented DBMS for real-time OLAP analytics using SQL.
CloudBeaverOpen-source, self-hosted web front end for your databases: SQL and data editors, multi-user administration, LDAP and proxy login, shipped as a Docker image.
cloudberryOne advanced and mature open-source MPP (Massively Parallel Processing) database. Open source alternative to Greenplum Database.
cogneeCognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
CouchDBSeamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reliability
d9d9 is a self-hosted, open-source headless CMS forked from Directus 9 with GPLv3 licensing, REST/GraphQL APIs, a no-code Data Studio, and multi-database support.
DatabasusSelf-hosted open-source backup tool for PostgreSQL (also MySQL, MariaDB and MongoDB) with point-in-time recovery, restore verification, encrypted archives and S3 storage.
DBackupSelf-hosted open-source backup for 10 databases and files. Supports S3, Google Drive, SFTP with AES-256-GCM encryption, incremental backups, GFS retention, OIDC SSO, 2FA.
DbGateSelf-hosted, open-source (GPL-3.0) database client for engines like MySQL, Postgres, SQL Server, Mongo and Redis, shipped as desktop apps or a Docker/NPM web UI.
dbhubDBHub is a minimal, token-efficient MCP server connecting AI assistants to PostgreSQL, MySQL, SQL Server, Oracle, MariaDB, and SQLite with built-in guardrails.


0 comments