selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

drawdb logo

Self-host drawdb

v1.9.0

Visual database schema editor with SQL generators

ReleaseOpen CoreAGPL-3.0
docker run -p 3000:80 drawdb
Updatedlast week
LanguageJavaScript
Setup difficultyEasy
Stars
40 291
Port
80 (Nginx serving the built static app inside the container; run as -p 3000:80.)
Docker
ghcr.io/drawdb-io/drawdb
drawDB editor showing a schema diagram on the canvas

What is drawdb?

drawDB puts a database schema designer in the browser: you model tables, fields, indexes and foreign-key relationships on an infinite canvas and get dialect-specific DDL out of it. Supported flavours are MySQL and PostgreSQL, plus MariaDB, SQLite, Microsoft SQL Server, Oracle (still beta) and a portable Generic option. Feeding it an existing DDL script reverse-engineers the diagram, and work can leave the app as SQL, DBML, JSON, Markdown, Mermaid, or an image (PNG, JPEG, SVG, PDF). The open-source edition keeps diagrams and custom templates in browser storage, so nothing is uploaded; sharing snapshots uses GitHub Gist instead of a live sync, and connecting your own drawdb-server backend enables richer sharing. Running it yourself means cloning the repo for an npm dev or production build, or launching the published container image on port 80 (mapped to 3000) and passing VITE_BACKEND_URL at start — no rebuild required. Undo/redo history, templates, keyboard shortcuts, a presentation view and a configurable workspace round out the editor. Cloud sync, teams and permissions, live collaboration, version history with migrations, the AI schema assistant, API keys and an MCP server belong to the paid drawDB Pro service rather than this self-hosted app.

Should you self-host drawdb?

drawdb scores 80/100 on selfhost.directory (how scoring works) and ranks #1 of 12 in Diagramming. It has 40 291 GitHub stars, +450 in the last 30 days.

It shipped 1 stable release in the past year. The latest, v1.9.0, came out on 1 November 2026.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is next-ai-draw-io (80/100, 36 840 stars). drawdb scores higher overall. See drawdb vs next-ai-draw-io side by side.

Features

  • AI schema assistantPro feature; docs list AI, API keys and MCP under drawDB Pro.
  • Custom data types
  • DBML import and export
  • ER Diagram Editor
  • Image and document export
  • Keyboard Shortcuts
  • Local browser storage
  • Multiple SQL dialectsOracle SQL is marked Beta in the docs.
  • Presentation Mode
  • Real-Time CollaborationdrawDB Pro (hosted) feature, not part of the self-hosted open-source editor.
  • Reverse engineer schema from DDL
  • Sharing via Gist snapshot
  • SQL DDL generation
  • Templates
  • Version history and migrationsDocumented under drawDB Pro, not the browser-local OSS editor.

drawdb README

drawDB logo

drawDB

Free, simple, and intuitive database schema editor and SQL generator.
drawDB screenshot demo

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.

How to install drawdb

Install drawdb with Docker

Environment variables
VITE_BACKEND_URL, VITE_GIST_BACKEND_URL
docker build -t drawdb .
docker run -p 3000:80 drawdb
docker run -p 3000:80 -e VITE_BACKEND_URL=https://your-drawdb-server.example.com ghcr.io/drawdb-io/drawdb:latest

Sharing is optional: set up the drawdb-server backend and pass its URL at container start, no rebuild needed.

How to configure drawdb

  • VITE_BACKEND_URLURL of your own drawdb-server backend (optional, needed for sharing); with the Docker image it is passed at container start and needs no rebuild.

    values: URL

drawdb releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Do I need an account to try it?

No — you can open the editor and start drawing immediately; sign-in is only needed for Pro features like cloud sync, sharing and team collaboration.

Can I import an existing schema?

Yes — paste or upload a DDL script and drawDB rebuilds the diagram for you. Output can go to SQL, DBML, JSON or an image.

Which databases does it support?

MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, Oracle and a generic dialect, each with DDL import (script to diagram) and export (diagram to DDL).

Where are my diagrams saved?

The free editor keeps diagrams in your browser's IndexedDB, so back them up before clearing browser data. With Pro they sync to the cloud and across your team.

Is drawDB free?

Yes — it is free and open source, and the full editor runs in the browser with no account. Pro adds cloud storage, teams and real-time collaboration.

More in Diagramming

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…