Skip to content

drawDB

Browser-based ER diagram editor that generates SQL for common databases

Copyleft (OSI) · AGPL-3.0
  • Self-hosted

Listed by , founder & editor

67

Health

Active

Overview

Stars

40,382

Last commit

2 days ago

Nov 2026

Repository age

3 years

since Jul 2023

Latest version

v1.9.0

Nov 2026

Contributors

–

15 active in 90 days

Releases

1

last 12 months

Language

JavaScript

drawDB is a database schema editor that runs in your browser. You draw entity relationship diagrams, import and export SQL scripts, and generate migrations. You can use it without creating an account. It is written in JavaScript and licensed under AGPL-3.0.

It generates SQL for PostgreSQL, MySQL, MariaDB, SQLite, SQL Server and Oracle. Real-time collaboration is offered on the hosted version. Sharing is optional when you self-host: you set up a server and environment variables from the sample file, and you can pass the server URL to the Docker image at start.

You can run it locally with npm, build it as static files, or use the Docker image from GitHub Container Registry. It suits you as an alternative to commercial schema design and diagramming tools when your goal is database design rather than general drawings.

Who it's for

Backend developers designing new schemas

You can draw tables and relations, then export SQL for your database.

Skip if: You need to reverse engineer a live database with a full modeling suite.

Teams that want an internal diagram tool

You can self-host it with Docker and keep schemas on your own infrastructure.

Skip if: You cannot accept the AGPL-3.0 terms for modified versions.

Students learning relational design

It works in the browser without an account.

Skip if: You want general flowcharts, where a general diagramming tool fits better.

The problem it solves

Planning a database schema usually means hand-written SQL or a heavy modeling tool. drawDB lets you sketch the entities visually and get SQL out of it, without installing anything.

Strengths

  • Generates SQL for PostgreSQL, MySQL, SQLite, SQL Server and Oracle
  • Works in the browser with no account required
  • Imports and exports SQL scripts and generates migrations
  • Docker image available for self-hosting
  • Hosted plan available if you do not want to run it

Trade-offs

  • Sharing needs a separate server and environment setup
  • AGPL-3.0 license has network-use obligations
  • Built for ER diagrams, not general diagramming
  • Only 1 release in the last year

Self-host drawDB

Self-hostable
Yes
Docker Compose
The repository ships a Compose file
Hosted plan
From $14/month · pricing

Quick start

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

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is drawDB free?

The source is open under AGPL-3.0 and you can self-host it. A hosted plan also exists.

Can I self-host it?

Yes. Build with npm or use the Docker image.

Which databases can it generate SQL for?

PostgreSQL, MySQL, MariaDB, SQLite, SQL Server and Oracle.

Do I need an account?

No, not to use the editor in your browser.

Similar tools in Diagramming and whiteboard tools

ChartDB

Diagramming and whiteboard tools

Web editor that turns one query into an editable database schema diagram

23k 1.5k 23 days ago Active AGPL-3.0

Gaphor

Diagramming and whiteboard tools

Desktop modeling tool for UML, SysML, RAAML and C4 diagrams, scriptable in Python

2.3k 247 7 days ago Active Apache-2.0

Replaces Microsoft Visio

draw.io

Diagramming and whiteboard tools

Browser-based diagram editor for flowcharts, UML and network diagrams you can self-host

9.6k 1.4k 6 days ago Active Apache-2.0

Replaces Miro

OpenBoard

Diagramming and whiteboard tools

Interactive whiteboard app for classrooms on Windows, macOS and Debian

3.1k 540 10 days ago Active GPL-3.0

Azimutt

Diagramming and whiteboard tools

Database schema explorer and ERD tool for teams with large, messy databases

2.2k 144 3 months ago Dormant MIT

Freeplane

Diagramming and whiteboard tools

Free Java mind mapping desktop app with scripting, for personal and work notes

4.5k 508 yesterday Active GPL-2.0

Replaces Xmind