opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

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

Project Description

View on GitHub

DrawDB: A Free, No-Fuss Database Diagram Tool for Developers

Why You Should Care About DrawDB

If you’ve ever wasted hours manually sketching database schemas or wrestling with clunky ERD tools, DrawDB is worth a look. It’s a free, open-source, browser-based tool that lets you design database diagrams intuitively—without logins, subscriptions, or bloated interfaces. Plus, it generates SQL for you.

With over 31k GitHub stars, it’s clearly resonating with devs who want simplicity without sacrificing functionality.


What It Does

DrawDB is a visual database schema editor that:

  • Lets you drag-and-drop tables, define columns, and create relationships (1:1, 1:N, N:M).
  • Generates SQL for PostgreSQL, MySQL, SQLite, and SQL Server.
  • Exports diagrams as PNG, SVG, or raw JSON for version control.
  • Works entirely in the browser—no account needed.

Think of it as a Figma for databases, but without the complexity.


Why It’s Cool

  1. Zero Setup, Zero Cost

    • No SaaS pricing tiers. No "export disabled" paywalls. Just open drawdb.app and start diagramming.
  2. Real-Time SQL Generation

    • Change a column type or add a foreign key? The SQL updates instantly.
  3. Keyboard Shortcuts & Dark Mode

    • Built for devs who hate mouse-heavy workflows. Ctrl+K brings up quick actions.
  4. Self-Hostable

  5. Collaboration-Friendly

    • Optional backend server for sharing diagrams (though local JSON works fine).

How to Try It

  1. Quick Online Demo:
    Just visit drawdb.app and start clicking.

  2. Self-Host (Optional):

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

    Or use Docker:

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

Final Thoughts

DrawDB isn’t trying to replace heavyweight tools like Lucidchart or DBML—it’s a lightning-fast way to draft schemas or document existing databases. I’d use it for:

  • Quick prototyping during design discussions.
  • Generating starter SQL for new projects.
  • Teaching database concepts (the visual feedback is great).

The only downside? No built-in diffing for schema changes (yet). But for a free tool, it’s impressively polished.

Give it a spin: drawdb.app | GitHub

P.S. If you’re into terminals, check out their sponsor Warp—an AI-powered terminal that’s weirdly good.

Back to Projects
Project ID: 1940604460298080402Last updated: July 3, 2025 at 04:52 AM