Skip to content
tanlee102Public

About

Free local-first SQL-to-ERD converter and database schema visualizer for PostgreSQL, MySQL, SQLite, and SQL Server. No account or backend.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

ERD Go logo

ERD Go

Free, local-first SQL-to-ERD converter and database diagram editor.

PostgreSQL · MySQL · SQLite · SQL Server · No account

Open the ERD Go app Star ERD Go on GitHub MIT License Follow ERD Go on X

ERD Go SQL editor and generated entity-relationship diagram

If ERD Go helps you, please star the repository so more developers can discover it.

SQL to ERD in your browser

ERD Go is an open-source, browser-based database schema visualizer. Paste or import SQL DDL and instantly generate an interactive entity-relationship diagram—without creating an account or sending your schema to an application backend.

It understands common CREATE TABLE and ALTER TABLE workflows, primary and foreign keys, indexes, constraints, enums, composite types, and views across popular SQL dialects.

Highlights

  • Convert PostgreSQL, MySQL, SQLite, and SQL Server schemas into ER diagrams.
  • Explore relationships, arrange tables, apply colors, and navigate with a minimap.
  • Edit table names and columns directly on the canvas, with tab-aware SQL updates and destructive-change review.
  • Reconnect supported foreign keys, create relationships from column handles, and review inferred relationships.
  • Find tables and columns from the canvas, organize them into named groups, and add notes and a grid without changing SQL.
  • Generate local sample INSERT statements, preview validated rows, and insert them into a new SQL tab.
  • Export database diagrams as PNG, SVG, or PDF. Organize source tabs in SQL Explorer and download one SQL file or a ZIP of selected files and folders.
  • Edit and import rows into existing tables in Data View. Validated changes become SQL statements in a data tab.
  • Run supported read-only SELECT queries in Query View.
  • Save diagrams locally in your browser and reopen them later.
  • Optionally edit SQL with Gemini using your own API key.

SQL workspace

Page Route Workflow
SQL to ERD /e/new Import or edit SQL tabs; explore ERD, Data, and Query views
SQL guide /docs, /docs/sql-to-erd Learn the editor workflow and its limitations

This open-source repository is focused on SQL to ERD. The homepage links to recent SQL documents; use the editor file button to open or delete diagrams stored in this browser. Other hosted diagram and conversion tools are outside this repository.

Data View and Query View implement an in-memory SQL subset; they do not connect to a database server. Canvas edits refuse changes whose dependent SQL cannot be updated safely; edit those statements together in the SQL editor. Data View imports CSV, TSV, text, and XLSX rows in batches of up to 1,000, with column mapping and validation before changes reach SQL. Sample generation uses local dictionaries and supported constraints; review its preview and diagnostics before inserting. SVG and PDF exports contain a diagram image rather than editable vector shapes or selectable text.

Common uses

  • Visualize an existing database schema from SQL.
  • Design and document relational database structures.
  • Review tables, keys, constraints, and relationships.
  • Create shareable ERD exports for development and documentation.

Run locally

Requires Node.js 20.19+, 22.13+, or 24+. Use a supported even-numbered Node release.

git clone https://github.com/tanlee102/ErdGo.git
cd ErdGo
npm ci
npm run dev

Open http://localhost:3000. npm run check runs lint, the regression tests, and a production build. Run it with Node.js 24 for the same native SQLite checks used by CI.

For browser workflow tests, build first, then install Chromium and run Playwright:

npm run check
npx playwright install chromium
npm run test:e2e

If Chrome is already installed, PLAYWRIGHT_CHANNEL=chrome npm run test:e2e uses it. Set PLAYWRIGHT_PORT when port 4173 is occupied. The test server starts a local production preview and never contacts an application backend.

Privacy

Diagrams stay in your browser. ERD Go has no accounts, cloud sync, sharing service, or analytics.

Existing SQL documents and renderer context under erdgo:documents:v1 remain readable. Records created by the previous multi-tool version are preserved in storage but hidden from SQL lists; this version does not open or overwrite them. Clearing browser storage removes saved diagrams; export important work as a backup. Monaco code, styles, and its worker are bundled locally. The source remains editable while tools load; Retry recovers failed downloads without losing edits.

The optional AI editor contacts Gemini only after you provide your own API key and make a request. Never use production credentials or sensitive schema data with a third-party provider.

Community

Contributions are welcome. Read the contributing guide, architecture notes, and code of conduct before opening a pull request.

License

MIT

About

Free local-first SQL-to-ERD converter and database schema visualizer for PostgreSQL, MySQL, SQLite, and SQL Server. No account or backend.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages