Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

chartdb

> 前端框架
Open source

Database diagrams editor that allows you to visualize and design your DB with a single query.

22.7K stars0 likes0 views
WebsiteGitHub

About

Database diagrams editor that allows you to visualize and design your DB with a single query.


Open-source database diagrams editor
No installations • No Database password required.

Community • Website • Examples • Demo


🎉 ChartDB

ChartDB is a powerful, web-based database diagramming editor. Instantly visualize your database schema with a single "Smart Query." Customize diagrams, export SQL scripts, and access all features—no account required. Experience seamless database design here.

What it does:

  • Instant Schema Import Run a single query to instantly retrieve your database schema as JSON. This makes it incredibly fast to visualize your database schema, whether for documentation, team discussions, or simply understanding your data better.

  • AI-Powered Export for Easy Migration Our AI-driven export feature allows you to generate the DDL script in the dialect of your choice. Whether you're migrating from MySQL to PostgreSQL or from SQLite to MariaDB, ChartDB simplifies the process by providing the necessary scripts tailored to your target database.

  • Interactive Editing Fine-tune your database schema using our intuitive editor. Easily make adjustments or annotations to better visualize complex structures.

Status

ChartDB is currently in Public Beta. Star and watch this repository to get notified of updates.

Supported Databases

  • ✅ PostgreSQL ( + + )
  • ✅ MySQL
  • ✅ SQL Server
  • ✅ MariaDB
  • ✅ SQLite ( + Cloudflare D1)
  • ✅ CockroachDB
  • ✅ ClickHouse

Getting Started

Use the cloud version or deploy locally:

How To Use

bash
npm install
npm run dev

Build

bash
npm install
npm run build

Or like this if you want to have AI capabilities:

bash
npm install
VITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> npm run build

Run the Docker Container

bash
docker run -e OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> -p 8080:80 ghcr.io/chartdb/chartdb:latest

Build and Run locally

bash
docker build -t chartdb .
docker run -e OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> -p 8080:80 chartdb

Using Custom Inference Server

bash
# Build
docker build \
  --build-arg VITE_OPENAI_API_ENDPOINT=<YOUR_ENDPOINT> \
  --build-arg VITE_LLM_MODEL_NAME=<YOUR_MODEL_NAME> \
  -t chartdb .

# Run
docker run \
  -e OPENAI_API_ENDPOINT=<YOUR_ENDPOINT> \
  -e LLM_MODEL_NAME=<YOUR_MODEL_NAME> \
  -p 8080:80 chartdb

Privacy Note: ChartDB includes privacy-focused analytics via Fathom Analytics. You can disable this by adding -e DISABLE_ANALYTICS=true to the run command or --build-arg VITE_DISABLE_ANALYTICS=true when building.

Note: You must configure either Option 1 (OpenAI API key) OR Option 2 (Custom endpoint and model name) for AI capabilities to work. Do not mix the two options.

Open your browser and navigate to http://localhost:8080.

Example configuration for a local vLLM server:

bash
VITE_OPENAI_API_ENDPOINT=http://localhost:8000/v1
VITE_LLM_MODEL_NAME=Qwen/Qwen2.5-32B-Instruct-AWQ

Try it on our website

  1. Go to ChartDB.io
  2. Click "Go to app"
  3. Choose the database that you are using.
  4. Take the magic query and run it in your database.
  5. Copy and paste the resulting JSON set into ChartDB.
  6. Enjoy Viewing & Editing!

💚 Community & Support

  • Discord (For live discussion with the community and the ChartDB team)
  • GitHub Issues (For any bugs and errors you encounter using ChartDB)
  • Twitter (Get news fast)

Contributing

We welcome community contributions, big or small, and are here to guide you along the way. Message us in the ChartDB Community Discord.

For more information on how to contribute, please see our Contributing Guide.

This project is released with a Contributor Code of Conduct. By participating in this project, you agree to follow its terms.

Thank you for helping us make ChartDB better for everyone :heart:.

License

ChartDB is licensed under the GNU Affero General Public License v3.0

Issues· 172 open

View all issuesOpen on GitHub
  • #130

    Add translations for other languages to ChartDB

    good first issueTranslationUpdated Aug 3, 2026
  • #1149

    Bug: Relation Lines disappearing.

    Updated Jul 30, 2026
  • #898

    Enhanced Git support for JSON export - Reproducible ids and ordering

    Updated Jul 20, 2026
  • #1140

    Feature Request: add AI Agent support to community and docker version

    Updated Jul 3, 2026
  • #69

    Add Helm Chart Support for Kubernetes Deployment

    InfraUpdated Jul 2, 2026
  • #1134

    Feature Request: add ashow/hide columns in canvas.

    Updated Jul 2, 2026
  • #1092

    Desktop app version [Windows/Linux]

    Updated Jun 25, 2026
  • #523

    Can't get running locally with AI tools

    Updated Jun 19, 2026
  • #1073

    Exporting 10 tables in ChartDB Free is not allowed

    Updated May 23, 2026
  • #1127

    Bug: DBML/SQL export corrupts index names containing the substring `default`

    Updated May 22, 2026

> Tags

TypeScriptdatabasedbdb-migrationeditor

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架