ランキングに戻る

chartdb/chartdb

TypeScriptchartdb.io

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

databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactschema-migrationssql
スター成長
スター
22.6k
フォーク
1.4k
週間成長
Issue
117
10k20k
2024年8月2025年3月2025年11月2026年7月
成果物npmnpm install chartdb
README

ChartDB ChartDB

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

CommunityWebsiteExamplesDemo

ChartDB is released under the AGPL license. PRs welcome! Discord community channel


🎉 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 ( + Supabase + Timescale )
  • ✅ MySQL
  • ✅ SQL Server
  • ✅ MariaDB
  • ✅ SQLite ( + Cloudflare D1 Cloudflare D1)
  • ✅ CockroachDB
  • ✅ ClickHouse

Getting Started

Use the cloud version or deploy locally:

How To Use

npm install
npm run dev

Build

npm install
npm run build

Or like this if you want to have AI capabilities:

npm install
VITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> npm run build

Run the Docker Container

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

Build and Run locally

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

Using Custom Inference Server

# 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:

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

関連リポジトリ
supabase/supabase

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

TypeScriptnpmApache License 2.0firebasesupabase
supabase.com
106.7k13.2k
netdata/netdata

The fastest path to AI-powered full stack observability, even for lean teams.

GoGo ModulesGNU General Public License v3.0monitoringdocker
netdata.cloud
79.8k6.5k
redis/redis

For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.

COtherdatabasekey-value
redis.io
75.6k24.7k
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

PythonPyPI30-days-of-pythonpython
68.7k12.7k
meilisearch/meilisearch

A lightning-fast search engine API bringing AI-powered hybrid search to your sites and applications.

Rustcrates.ioOthersearch-enginetypo-tolerance
meilisearch.com
58.7k2.6k
etcd-io/etcd

Distributed reliable key-value store for the most critical data of a distributed system

GoGo ModulesApache License 2.0etcdraft
etcd.io
52k10.4k
dbeaver/dbeaver

Free universal database tool and SQL client

JavaMavenApache License 2.0sqldatabase
dbeaver.io
51.1k4.3k
ClickHouse/ClickHouse

ClickHouse® is a real-time analytics database management system

C++Apache License 2.0dbmsolap
clickhouse.com
48.8k8.7k
metabase/metabase

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

ClojureOtheranalyticsbusinessintelligence
metabase.com
48.3k6.7k
prisma/prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

TypeScriptnpmApache License 2.0prismaorm
prisma.io
47.4k2.4k
LeCoupa/awesome-cheatsheets

👩‍💻👨‍💻 Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.

JavaScriptnpmMIT Licensecheatsheetsjavascript
lecoupa.github.io/awesome-cheatsheets/
46.2k6.7k
pingcap/tidb

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

GoGo ModulesApache License 2.0distributed-databasedistributed-transactions
tidb.io
40.3k6.2k