drawdb-io /drawdb

Free, simple, and intuitive online database diagram editor and SQL generator.

★ 40,292⑂ 3,362👁 146⑃ 780● 381▤ 1◈ 22
JavaScriptAGPL-3.0Created 2023-07-16drawdb.app
40,292
stars
+5+69+435
3,362
forks
146
watchers
780
prs
381
issues
1
releases
22
discussions

README

drawDB


Free, simple, and intuitive database schema editor and SQL generator.


    
        
    
    
        
    
    
        
    




DrawDB is a robust and user-friendly database entity relationship diagram (ERD) editor right in your browser. Build diagrams with a few clicks, export and import SQL scripts, generate migrations, customize your editor, and more without creating an account. See the full set of features on here.

 Getting Started

 Local Development

bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev


 Build

bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build


 Docker Build

bash
docker build -t drawdb .
docker run -p 3000:80 drawdb


If you want to enable sharing, set up the server and environment variables according to .env.sample. This is optional unless you need to share files.

With the Docker image, pass the server URL when starting the container. No rebuild is needed:

bash
docker run -p 3000:80 -e VITE_BACKEND_URL=https://your-drawdb-server.example.com ghcr.io/drawdb-io/drawdb:latest


 Contributing

Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

 Support
- Join discussions: Discord

Top issues

Discussions

Latest release

v1.9.0 - Import from your database v1.9.0 2026-11-01
Import from your database

File → Import from database. Pick your dialect, copy the read-only query drawDB gives you, run it in the SQL client you already use (psql, Workbench, DBeaver, SSMS…), and paste the result back. drawDB draws the diagram and auto-arranges it.

- Works with PostgreSQL, MySQL, MariaDB, SQL Server, SQLite and Oracle
- No connection string: your credentials never leave your machine, and drawDB never sees row data

(1182)

 Subject areas that hold tables

Areas now own the tables inside them: move an area and its tables move with it, hide or show a whole group at

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON