Imports database schemas via a JSON query, edits ER diagrams in the browser, and exports DDL for other database dialects.
Overview
ChartDB is a browser-based tool for drawing and refining database diagrams. You run a single schema query against your database, paste the JSON result, and the editor renders tables and relationships without storing your database password in the service.
An AI-assisted export can generate DDL scripts in the dialect you choose, which supports moves between engines such as MySQL, PostgreSQL, SQLite, and MariaDB. The interactive editor lets you adjust layouts and annotations for documentation or team review.
Supported engines include PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, Cloudflare D1, CockroachDB, and ClickHouse. You can use the hosted app at ChartDB.io or build and run a Docker container locally, with optional OpenAI or custom inference endpoints for AI features.
Analytics use Fathom and can be disabled at build or run time. No account is required for core diagramming on the public offering.
Key features
- One-query schema JSON import
- Interactive diagram editing
- AI DDL export across dialects
- Multiple database engine support
- No account required workflow
- Docker local deployment
- Optional custom AI endpoints
- Privacy-toggle analytics
Use cases
- Database schema documentation
- Cross-dialect migration planning
- Team schema review sessions
- Understanding legacy data models
- ER diagram prototyping
Open-source alternative to