{"name":"ChartDB: Visualize and Design Your Database with a Single Query","description":"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.","github":"https://github.com/chartdb/chartdb","url":"https://osrepos.com/repo/chartdb-chartdb","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/chartdb-chartdb","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/chartdb-chartdb.md","json":"https://osrepos.com/repo/chartdb-chartdb.json","topics":["database","diagramming","db-migration","editor","erd","sql","visualization","typescript"],"keywords":["database","diagramming","db-migration","editor","erd","sql","visualization","typescript"],"stars":null,"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.","content":"## Introduction\nChartDB 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.\n\n## Installation\nYou can use ChartDB directly via its [cloud version](https://app.chartdb.io?ref=github_readme_2 \"ChartDB Cloud Version\" target=\"_blank\") or deploy it locally.\n\n### Local Deployment:\nTo run ChartDB locally, you'll need Node.js and npm.\n\nbash\nnpm install\nnpm run dev\n\n\n### Building with AI Capabilities:\nTo include AI features, provide your OpenAI API key during the build process:\n\nbash\nnpm install\nVITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> npm run build\n\n\n### Docker Container:\nRun ChartDB using Docker. For AI capabilities, include your OpenAI API key:\n\nbash\ndocker run -e OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> -p 8080:80 ghcr.io/chartdb/chartdb:latest\n\n\nFor more detailed instructions, including building and running locally with Docker or using a custom inference server, please refer to the [official GitHub repository](https://github.com/chartdb/chartdb \"ChartDB GitHub Repository\" target=\"_blank\").\n\n## Examples\nChartDB offers a straightforward way to visualize your database:\n\n1.  Go to the [ChartDB website](https://chartdb.io?ref=github_readme_2 \"ChartDB Website\" target=\"_blank\").\n2.  Click \"Go to app.\"\n3.  Choose the database that you are using.\n4.  Run the provided \"magic query\" in your database.\n5.  Copy and paste the resulting JSON set into ChartDB.\n6.  Start viewing and editing your database diagram instantly.\n\nYou can also explore various [examples and templates](https://chartdb.io/templates?ref=github_readme \"ChartDB Examples\" target=\"_blank\") on their website.\n\n## Why Use\nChartDB stands out for several reasons:\n\n*   **Instant Schema Import**: Quickly retrieve and visualize your database schema as JSON with a single query, perfect for documentation, team discussions, or quick understanding.\n*   **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.\n*   **Interactive Editing**: Fine-tune and annotate your database schema with an intuitive editor to better visualize complex structures.\n*   **No Installation, No Password**: Access all features directly from your browser without any local installations or requiring your database password, enhancing security and convenience.\n*   **Broad Database Support**: Supports popular databases including PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, CockroachDB, and ClickHouse.\n\n## Links\n*   [GitHub Repository](https://github.com/chartdb/chartdb \"ChartDB GitHub Repository\" target=\"_blank\")\n*   [Official Website](https://www.chartdb.io?ref=github_readme \"ChartDB Website\" target=\"_blank\")\n*   [Live Demo](https://app.chartdb.io?ref=github_readme \"ChartDB Live Demo\" target=\"_blank\")\n*   [Discord Community](https://discord.gg/QeFwyWSKwC \"ChartDB Discord Community\" target=\"_blank\")\n*   [Twitter](https://x.com/intent/follow?screen_name=jonathanfishner \"ChartDB Twitter\" target=\"_blank\")","metrics":{"detailViews":3,"githubClicks":1},"dates":{"published":null,"modified":"2025-10-11T23:30:39.000Z"}}