Product
Features
Products
Holistics.io - BI Reporting As CodeDefine reusable analytics logic. Build reports and metrics using code. Version control with Git. Design and publish datasets for self-serve exploration.Docs
Community
Resources
Interactive ERD Generator
Paste DBML (a plain-text format for database schemas) or SQL and get an entity-relationship diagram you can drag around, share by link, and embed. Edit on the left; it updates on the right.
Why interactive
Every table carries its notes and data samples. A screenshot hides them, and it won't scale to a large database. Here you can drag, zoom, and read them inline.
The whole diagram is encoded in the link. Drop it in a PR, ticket, or doc, or embed it with an <iframe>.
Encoded client-side; your schema never touches a server.
Want to save, version, export SQL, secure access, or publish docs? Open it in the full dbdiagram editor.
Open dbdiagramFor tools & AI agents
Express the design in DBML, encode it into the URL, and hand back a link that opens straight into a diagram. No account, API key, or library needed.
When a user wants to visualize an ERD or database design, render it as a diagram link they can open instantly.
Step 1 — Get the schema as DBML. If you only have SQL, convert it with the DBML CLI:
bashnpm install -g @dbml/cli # dialect flag: --postgres | --mysql | --mssql sql2dbml --postgres schema.sql -o schema.dbml
Step 2 — Encode the DBML into a link. It's deterministic — no account, API key, or library:
jsconst fs = require("fs"); const dbml = fs.readFileSync("schema.dbml", "utf8"); const c = encodeURIComponent(Buffer.from(dbml, "utf8").toString("base64")); console.log(`https://dbdiagram.io/embed#c=${c}`);
Optional — dark theme. Add theme=dark before c= in the hash for a dark diagram (light is the default):
texthttps://dbdiagram.io/embed#theme=dark&c=<encoded>
Step 3 — Hand back the link (or drop it in an iframe). The user sees the diagram instantly and can open it in dbdiagram to edit or export:
html<iframe src="https://dbdiagram.io/embed#c=ENCODED" width="100%" height="600" style="border:0"></iframe>
💡 Add it as a skill. Save it in your agent's instructions — a Claude Code skill, a Cursor rule, or a system prompt — so a schema change comes with a diagram link.
Full reference: docs.dbdiagram.io/dbml-in-link-diagram
In practice
subscriptions table to my Postgres schema and show me how it all fits together. subscriptions with FKs to accounts and plans. Here's the updated ERD: