RelateDB
RelateDB
Offline-first schema designer
Unlimited local projectsOffline-firstImport SQL/DBMLExport SQL/DBMLSnapshotsMigration SQL

Design database schemas visually — even offline.

RelateDB is a browser-based ERD studio for modeling tables, columns, and relationships. Everything is free and unlimited locally.

Local usage
Unlimited
Versioning
Snapshots
Share
Read-only links
Schema Preview
Offline-ready
Workspace
3 schemas
public
3 tables
userssessionsaudit_log
billing
3 tables
customersinvoicespayments
analytics
3 tables
eventspropertiesrollups
Import
DBML or SQL CREATE TABLE
Export
Postgres/MySQL + DBML
FEATURES

Everything you need for schema design

A fast canvas for modeling + thoughtful productivity features for real projects.

Visual ERD canvas

Tables as nodes, relations as edges. Drag, select, edit, and keep the big picture visible across schemas.

Offline-first

Work persists locally via IndexedDB-backed storage. Refresh, reopen, and continue without servers.

Import

Bring in DBML or SQL CREATE TABLE, then refine visually and keep schemas organized in workspaces.

Export

Export SQL for Postgres/MySQL, export DBML, render the canvas to PNG/JPG/SVG, or create a read-only share link (including snapshots).

Auto-layout

ELK-based auto layout per schema with packing across schemas, aligned to sidebar order — with lock-position support.

Version history

Save snapshots, rename them, export them, and compare versions against your current schema with visual diffs.

Backups + migration SQL

Export workspace backups (.relatedb.json) and generate Postgres/MySQL migration SQL between versions.

WORKFLOW

From idea → schema → export

A smooth loop for iterating quickly, keeping it consistent, and shipping confidently.

01
Draft on the canvas

Create tables, columns, and relationships. Add notes and areas for context.

02
Organize by workspace

Split work into schemas. Keep an active schema while still visualizing cross-schema structure.

03
Export & share

Generate SQL/DBML, migration SQL, backups, export diagram images, or share a read-only link for reviews (including snapshot versions).

Try it in your browser
Open Studio and start modeling immediately.
CAPABILITIES

Unlimited locally.

RelateDB is free to use with no limits for local-first work.

Free
Unlimited local-first studio.
$0
Unlimited workspaces, schemas, and tables
Offline-first persistence (IndexedDB)
Import DBML + SQL
Export SQL/DBML + diagram images
Read-only public share links (including snapshots)
Schema snapshots + version history
Migration SQL + workspace backups
Pro
Sync across devices.
Cloud sync across devices
Faster onboarding across machines
Ready for future collaboration features
FAQ

Common questions

Short answers for first-time users and teams evaluating the workflow.

Is this actually offline-first?

Yes — state persists locally (IndexedDB-backed). You can refresh/reopen and keep working without a server.

Do I need an account?

No. Everything runs locally in your browser.

Can I import an existing schema?

Yes — import DBML or SQL CREATE TABLE and continue editing visually.

Can I export to Postgres/MySQL?

Yes — export SQL for Postgres/MySQL and export DBML at the schema or workspace level.

Can I save versions and generate migrations?

Yes — save schema snapshots, compare versions, and export Postgres/MySQL migration SQL between snapshots and/or the current schema.

Can I back up my workspace?

Yes — export a .relatedb.json workspace backup and restore it later via the Import modal.

Support me