Database diagrams editor that allows you to visualize and design your DB with a single query
open coreAGPL-3.0-onlyself-hostablefree
ChartDB is a web-based database diagram editor: you run one "smart query" against your database, paste the JSON it returns, and get an editable entity relationship diagram without giving ChartDB your database password. It supports PostgreSQL, MySQL, SQL Server, MariaDB, SQLite and Cloudflare D1, CockroachDB and ClickHouse, exports SQL, DBML, JSON or an image, and can generate DDL for another dialect with AI, using an OpenAI key or your own OpenAI-compatible endpoint. The editor is open source under AGPL-3.0 and runs from one Docker image with no account. ChartDB Cloud adds paid Pro and Team plans with real-time collaboration, sync with a live database, version history, Snowflake and BigQuery, and SAML SSO on a custom plan.
Ways to install
On your own server
Hosted for you
Problems it solves
- I joined a team with a 200-table Postgres database and nobody has an up-to-date ER diagram
- generate an entity relationship diagram from an existing database without handing over the password
- visualize my MySQL schema so I can explain it in a design review
- draw a database schema in the browser and export the CREATE TABLE SQL
- migrate a schema from MySQL to PostgreSQL and need the DDL rewritten for the new dialect
- self-hosted dbdiagram.io alternative that runs from a Docker image
- edit a database diagram as DBML and see the tables update
- keep our database documentation diagram in sync with the live schema automatically
- export an ER diagram as an image for our architecture docs
- collaborate on a database design with teammates in real time
- embed a live database diagram in our internal documentation
- a free ERD tool for SQL Server and SQLite that needs no install
- use a local LLM to convert our schema between SQL dialects instead of OpenAI
- see how views depend on tables in our database
- design a new database schema for a side project and get SQL I can run
- diagram our ClickHouse or CockroachDB tables
Features
- import a schema by running one smart query and pasting its JSON result: no database credentials
- PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, Cloudflare D1, CockroachDB and ClickHouse
- interactive editing of tables, fields, relationships, views and their dependencies, layouts, colors and filters
- export SQL, DBML, diagram JSON or an image
- AI export of DDL in another database dialect, with an OpenAI key or a custom OpenAI-compatible endpoint and model
- single Docker image (ghcr.io/chartdb/chartdb), no account required
- Fathom analytics that can be turned off with DISABLE_ANALYTICS
- ChartDB Cloud Pro: up to 100 tables, interactive DBML editor, schema export and sticky notes
- ChartDB Cloud Team: real-time collaboration, AI assistant, auto-sync with a live database, migrations, change log and versioning, Snowflake and BigQuery, MFA
- custom plan: SAML SSO, user activity log and granular permissions (RBAC)
View 1 more
- free online SQL tools: syntax checker, formatter, text-to-SQL, DBML to SQL and dialect converter
Ways to run it
ChartDB (self-hosted)
Not included
- real-time collaboration, auto-sync with a live database, change log and versioning, and Snowflake and BigQuery, which the pricing page lists only on hosted plans5
You arrange
- a server with Docker, or Node.js to build it
- an OpenAI API key or an OpenAI-compatible endpoint for the AI features
ChartDB Cloud
Free; Pro US$25/month for one person; Teams from US$59; Custom through sales5
Only in this edition
- hosting by ChartDB
- real-time collaboration, auto-sync, versioning, Snowflake and BigQuery on Team
- SAML SSO, activity log and RBAC on Custom
Capabilities
| Has single sign-on | Custom plan, priced by sales5 |
|---|
Alternatives
The same job
These do what ChartDB does.
