ChartDB: Visualize and Design Your Database with a Single Query

Summary
ChartDB is an open-source, web-based database diagramming editor designed to visualize and design your database schemas instantly. It generates diagrams from a single "Smart Query" and offers AI-powered export for seamless migrations across various database types, all without requiring installation or database passwords.
At a glance
- Added to OSRepos
- October 12, 2025
- Last analyzed
- October 12, 2025
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
ChartDB is a powerful, open-source, web-based database diagramming editor that revolutionizes how you visualize and design your database schemas. It allows you to instantly generate interactive diagrams from a single "Smart Query," making complex database structures easy to understand and manage. With features like AI-powered export for migrations and intuitive editing capabilities, ChartDB streamlines your database design workflow without requiring any installations or database passwords.
Installation
You can use ChartDB directly via its cloud version or deploy it locally.
Local Deployment:
To run ChartDB locally, you'll need Node.js and npm.
npm install
npm run dev
Building with AI Capabilities:
To include AI features, provide your OpenAI API key during the build process:
npm install
VITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> npm run build
Docker Container:
Run ChartDB using Docker. For AI capabilities, include your OpenAI API key:
docker run -e OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> -p 8080:80 ghcr.io/chartdb/chartdb:latest
For more detailed instructions, including building and running locally with Docker or using a custom inference server, please refer to the official GitHub repository.
Examples
ChartDB offers a straightforward way to visualize your database:
- Go to the ChartDB website.
- Click "Go to app."
- Choose the database that you are using.
- Take the magic query and run it in your database.
- Copy and paste the resulting JSON set into ChartDB.
- Enjoy Viewing & Editing!
You can also explore various examples and templates on their website.
Why Use
ChartDB stands out for several reasons:
- Instant Schema Import: Quickly retrieve and visualize your database schema as JSON with a single query, perfect for documentation, team discussions, or quick understanding.
- AI-Powered Export for Easy Migration: Generate DDL scripts in your desired dialect, simplifying migrations between different database systems like MySQL to PostgreSQL or SQLite to MariaDB.
- Interactive Editing: Fine-tune and annotate your database schema with an intuitive editor to better visualize complex structures.
- No Installation, No Password: Access all features directly from your browser without any local installations or requiring your database password, enhancing security and convenience.
- Broad Database Support: Supports popular databases including PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, CockroachDB, and ClickHouse.
Links
Source repository
Open the original repository on GitHub.
13 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

AgentFS: The Filesystem Designed for AI Agents and Their State Management
September 5, 2026
AgentFS is an innovative filesystem specifically engineered for AI agents, providing robust storage abstractions. It leverages SQLite to offer auditability, reproducibility, and portability for agent states, tool calls, and file operations. This solution simplifies debugging, analysis, and deployment of AI agents by encapsulating their entire runtime into a single, queryable database file.

cortex-mem: Give AI Agents Persistent Long-Term Memory
August 12, 2026
Cortex Memory is a Rust framework for storing, extracting, and searching long-term memories for AI agents and applications. It combines durable file-based storage with semantic search, and offers CLI, REST API, and MCP access.

fake2db: Generate Custom Test Databases with Fake Data
August 2, 2026
fake2db is a powerful Python utility designed to create custom test databases populated with fake, yet valid, data. It supports a wide array of popular database systems, including SQLite, MySQL, PostgreSQL, MongoDB, Redis, and CouchDB. This tool is ideal for developers and testers needing quick, realistic data for testing and development environments.

databasement: Schedule and Manage Database Backups
July 14, 2026
Databasement is a self-hosted web app for scheduling, monitoring, and restoring backups across multiple database engines. It suits teams that want centralized backup management and control over where backup files are stored.