# chartdb
**Repository Path**: anydev/chartdb
## Basic Information
- **Project Name**: chartdb
- **Description**: 基于 Web 的数据库表编辑器,无需数据库密码,仅需提供一条 SQL 查询结果即可导入数据库表和结构。用户可以通过直观、交互式的界面编辑和导出建表 SQL。它支持 PostgreSQL、MySQL、SQL Server、SQLite、ClickHouse、MariaDB 数据库,适用于数据库迁移和优化过程中,快速生成和调整 DDL 脚本等场景。
- **Primary Language**: Unknown
- **License**: AGPL-3.0
- **Default Branch**: main
- **Homepage**: https://chartdb.io/
- **GVP Project**: No
## Statistics
- **Stars**: 3
- **Forks**: 1
- **Created**: 2024-11-05
- **Last Updated**: 2025-08-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Open-source database diagrams editor
No installations • No Database password required.
---
### 🎉 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
- ✅ ClickHouse
## Getting Started
Use the [cloud version](https://app.chartdb.io/) 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:
```
npm install
VITE_OPENAI_API_KEY= npm run build
```
### Running the Docker Container
```bash
docker build -t chartdb .
docker run -p 8080:80 chartdb
```
Open your browser and navigate to `http://localhost:8080`.
## Try it on our website
1. Go to [ChartDB.io](https://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](https://discord.gg/QeFwyWSKwC) (For live discussion with the community and the ChartDB team)
- [GitHub Issues](https://github.com/chartdb/chartdb/issues) (For any bugs and errors you encounter using ChartDB)
- [Twitter](https://x.com/chartdb_io) (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](https://discord.gg/QeFwyWSKwC).
For more information on how to contribute, please see our
[Contributing Guide](/CONTRIBUTING.md).
This project is released with a [Contributor Code of Conduct](/CODE_OF_CONDUCT.md).
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](LICENSE)