Back to directory

Data & Analytics · Business Intelligence & Reporting

drawDB

Design database diagrams and generate SQL in the browser

drawDB is a free, browser based database diagram editor and SQL generator for relational schema work. It supports visual modeling, SQL import and export, DBML, JSON, local browser storage, and several database dialects. The open source editor requires no account, while drawDB Pro adds cloud synchronization, sharing, teams, permissions, live collaboration, AI, and MCP features.

Key facts

License
AGPL-3.0
Main language
JavaScript
Maintainer
drawDB open source community
First released
2023
Latest release
v1.8.2, September 29, 2026
GitHub stars
40,104, October 2026
Hosted option
Free browser editor; Solo Pro and Team Pro priced at checkout

What drawDB is

drawDB originated as an open source browser editor for database diagrams and SQL generation, with the repository created on July 16, 2023, establishing 2023 as its first release year. The project is maintained by the drawDB open source community, with listed contributors including 1ilit, dependabot, picimako, haecheonlee, KARM99, FelixZY, LuigimonSoft, joao-zanutto, ClaPalo, and huyjs9. Its documented adoption indicators include 40,104 GitHub stars and 3,331 forks in October 2026, making stars the available measure of public interest rather than a stated user total. Development remains active, with v1.8.2 dated September 29, 2026, after July 2026 releases. The documents do not state formal foundation backing, grants, sponsorship, recurring funding, or other financing arrangements. drawDB offers a free editor under AGPL-3.0, while Solo Pro and Team Pro add hosted services such as cloud synchronization, sharing, teams, permissions, live collaboration, AI, and MCP features.

How it works

drawDB is a browser based relational schema editor where users create tables, fields, indexes, and foreign key relationships on an interactive canvas. It supports Generic, MySQL, PostgreSQL, SQLite, MariaDB, Microsoft SQL Server, and Oracle SQL in beta, with dialect specific types and capabilities. A typical workflow starts by opening the editor without an account, selecting a database type, and choosing a blank diagram or built in template. The user can then add tables, define columns and indexes, connect related tables, arrange the canvas, and adjust grids, labels, visible details, and presentation settings. For an existing schema, the user pastes or uploads a DDL script, lets drawDB reverse engineer it into an editable diagram, makes changes visually, and exports the result as database specific SQL. The diagram can also be saved as DBML, JSON, or an image, while local work and custom templates remain in browser IndexedDB.

Architecture and recent releases

drawDB is a browser based JavaScript database diagram editor and SQL generator, with CSS, HTML, and Dockerfile components documented in its repository. Its architecture separates the standalone open source editor from optional sharing services: local diagrams and custom templates use browser IndexedDB, while configured backend services support sharing and the VITE_BACKEND_URL integration. Users can build relational schemas visually, reverse engineer DDL, and exchange work through SQL, DBML, JSON, or image exports. Supported choices are Generic, MySQL, PostgreSQL, SQLite, MariaDB, Microsoft SQL Server, and Oracle SQL in beta, with dialect specific types and capabilities. Development uses npm install, npm run dev, and npm run build; Docker serves the application through the documented port mapping. drawDB Pro adds cloud synchronization, public sharing, GitHub integration, version history, teams, permissions, live collaboration, AI, and MCP. The latest documented release is v1.8.2, dated September 29, 2026.

License and pricing

drawDB is licensed under the GNU Affero General Public License v3.0, permitting commercial use, modification, and redistribution subject to that license, including source obligations for covered modified network services. The free browser editor requires no account and includes local diagrams, all documented SQL dialects, SQL, DBML, and JSON import and export, plus image export; diagrams and custom templates are stored in browser IndexedDB. Clearing browser data or changing browsers can remove local work, so exports are necessary for preservation. drawDB Pro is a separate hosted service with Solo Pro and Team Pro plans, adding cloud storage and synchronization, version history, public sharing, GitHub integration, AI assistance, and an MCP server. Team Pro also includes live collaboration, diagram permissions, and team management. The pricing page does not display plan amounts, stating that plans could not load, so exact prices are unavailable; users upgrade at checkout when hosted features are required.

Limitations and how it compares

drawDB’s main limitation is that local diagrams live in browser IndexedDB, so users must handle backups and may lose access after clearing site data or changing browsers; Oracle SQL support is also beta, and Pro pricing amounts are not displayed on the pricing page. Compared with Mermaid, an open-source text based diagramming tool, drawDB favors direct canvas editing, relational controls, SQL reverse engineering, and DDL export, while Mermaid favors definitions that fit source control and automation. SchemaSpy, another open-source option, centers on generating database documentation rather than editing schemas, making it less aligned with interactive modeling. Among proprietary alternatives, dbdiagram.io offers a hosted relational modeling workflow, while MySQL Workbench provides a desktop environment oriented toward MySQL design and administration. These choices differ in workflow and scope, so drawDB is ideal for developers, students, and database teams wanting visual relational modeling, SQL exchange, local browser work, and optional hosted collaboration.

Main features

  • Visual ER diagrams. Create tables, fields, indexes, and foreign key relationships on a configurable, interactive canvas using visual entity-relationship diagrams.
  • SQL reverse engineering. Paste or upload DDL scripts to reverse engineer supported relational schemas into editable diagrams for further modification.
  • SQL export. Export modeled diagrams as database-specific DDL scripts for the documented database dialects supported by the SQL export feature.
  • Database dialects. Choose among Generic, MySQL, PostgreSQL, SQLite, MariaDB, Microsoft SQL Server, and the Oracle SQL beta database dialects.
  • DBML and JSON. Import and export DBML or JSON alongside SQL, enabling portable schema exchange and backups across compatible database design tools.
  • Local browser storage. Work without an account while diagrams and custom templates remain stored locally in your browser’s IndexedDB database.
  • Hosted collaboration. drawDB Pro adds hosted collaboration through cloud synchronization, sharing, history, permissions, teams, live collaboration, artificial intelligence, and MCP.

Self-hosting drawDB

Clone the repository, install its npm dependencies, and run the documented development command, or build the application for production. The repository also documents Docker image creation and a container mapping port 3000. The standalone editor stores diagrams and custom templates in browser IndexedDB and does not require a database or account. Sharing is optional and requires a configured server, environment variables, and a frontend backend URL. The project does not publish minimum CPU, memory, or storage requirements. Export important diagrams to SQL, DBML, JSON, or image files before clearing browser site data or changing browsers.

Strengths

  • The editor works without an account or database.
  • SQL import and export cover several documented dialects.
  • Local IndexedDB storage supports browser based private work.
  • Active tags continue through September 2026.

Drawbacks

  • Browser storage requires users to manage their own backups.
  • Oracle SQL support is documented as beta.
  • The pricing page does not display plan amounts.

What teams replace with it

Teams usually evaluate drawDB when they want to move off Lucidchart, dbdiagram.io, MySQL Workbench.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to drawDB

Frequently asked questions

Is drawDB free?

Yes. The open source editor runs in a browser without an account, and its local functionality is free. Diagrams are stored in browser IndexedDB, so users should export important work before clearing site data. Pro is a separate service for cloud synchronization, sharing, teams, history, AI, and related hosted capabilities.

Can drawDB be used commercially?

The project is licensed under the GNU Affero General Public License v3.0, which permits commercial use, modification, and redistribution subject to the license obligations. In particular, covered modified network services must offer corresponding source. Review the complete license and dependency terms before distributing a modified hosted service or combining drawDB with other software.

How can drawDB be self-hosted?

Clone the repository, install npm dependencies, and run the documented development command or production build. Docker instructions build an image and map the application to port 3000. The local editor needs no database. Sharing requires the optional server, environment configuration, and a frontend backend URL.

How does drawDB compare with Mermaid?

drawDB offers direct canvas editing, relational modeling controls, SQL reverse engineering, and SQL export. Mermaid stores diagram definitions as text, which can be reviewed in Git and generated by automation. drawDB is suited to interactive schema design, while Mermaid is suited to source controlled documentation and text based workflows.

Are drawDB diagrams private?

Local diagrams remain in browser IndexedDB and do not require an account or hosted storage. Browser data is not a backup and may disappear when site data is cleared. Sharing and Pro synchronization place diagrams on configured or hosted services, so users should review access settings before uploading sensitive database schemas.

Similar projects to compare

Sources

Last updated 2026-10-22.