drawDB is a browser-based database entity relationship diagram (ERD) editor for designing schemas visually and exporting SQL. It's built for developers, DBAs, and students who want to sketch out a database structure without installing desktop software or setting up an account. Everything runs client-side, and data stays local unless you connect optional sharing infrastructure.
drawDB fits well when you need to quickly sketch a database schema before writing migrations, when you're teaching or learning ERD concepts, or when you want to reverse-engineer an existing SQL script into a visual diagram. It's also a good fit for teams who want a free, self-hosted alternative to commercial ERD tools and don't want to hand schema data to a third-party service.
It's less suited for managing live production databases directly (it doesn't connect to a running database instance to introspect schema in real time), or for teams that need built-in multi-user real-time collaboration out of the box, since collaboration/sharing requires setting up the separate drawdb-server component yourself. If you need a full database administration GUI (query running, data browsing, user management), this isn't that; it's focused on schema design and SQL generation.
Clone the repo and run it locally with Node.js and npm:
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev
To build a production bundle:
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build
To run it in Docker:
docker build -t drawdb .
docker run -p 3000:80 drawdb
If you want sharing enabled (sending/receiving diagram links to others), set up the companion drawdb-server project and configure environment variables per the .env.sample file in this repo. This step is optional and only needed if you want file sharing beyond local use.
You can also just use the hosted version at drawdb.app without installing anything locally.