by dineug
Design database schemas as ERDs in your browser, VS Code, JetBrains IDEs or Obsidian. Import SQL, DBML and GraphQL, export DDL and code, and let coding agents edit live over MCP.
# Add to your Claude Code skills
git clone https://github.com/dineug/erd-editorGuides for using ai agents skills like erd-editor.
Last scanned: 10/11/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-10-11T10:38:13.679Z",
"npmAuditRan": false,
"pipAuditRan": true,
"promptInjectionRan": true
}See how erd-editor compares with popular alternatives.
erd-editor is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by dineug. Design database schemas as ERDs in your browser, VS Code, JetBrains IDEs or Obsidian. Import SQL, DBML and GraphQL, export DDL and code, and let coding agents edit live over MCP. It has 1,741 GitHub stars.
Yes. erd-editor passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/dineug/erd-editor" and add it to your Claude Code skills directory (see the Installation section above).
erd-editor is primarily written in TypeScript. It is open-source under dineug on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh erd-editor against similar tools.
No comments yet. Be the first to share your thoughts!
Based on votes and bookmarks from developers who liked this skill
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Design database schemas visually: in your browser, in your IDE, or by asking your coding agent
Open erd-editor.io in your browser, nothing to install, or get it for VS Code, JetBrains IDEs, Obsidian and Google Drive.
One editor and one .erd.json file wherever you work: on the web, in Google Drive, VS Code,
JetBrains IDEs and Obsidian, inside your own app, and in your coding agent's hands.
Ctrl/Cmd+K), an Explorer tree with find and replace, Graph
and Flow viewsDatabases: Databricks, MariaDB, MSSQL, MySQL, Oracle, PostgreSQL, Snowflake, SQLite
Code: TypeScript, GraphQL, C#, Java, JPA, Kotlin, Scala, Go, SQLAlchemy, TypeORM, Sequelize, Drizzle, DBML, AML, Mermaid, PHP, Doctrine, Rust, SeaORM, Swift, Zod, JSON Schema
Every feature step by step: the Editing Guide.
Ask Claude Code, Codex or any MCP client to change the schema, and watch it happen on the canvas.

@dineug/erd-editor-mcp gives the agent one tool per editing operation.
When VS Code, Obsidian or a JetBrains IDE holds the diagram, the agent joins it as one more
collaborator, and its undo reverts only its own edits; with no editor, it edits the file on disk.
An editor with its connection off, or an untrusted workspace or project, lets the agent read but
refuses its edits. It needs Node.js 22.12 or later. Add it with one command, in your project folder:
# Claude Code
claude mcp add --transport stdio erd-editor -- npx -y @dineug/erd-editor-mcp
# Codex
codex mcp add erd-editor -- npx -y @dineug/erd-editor-mcp
Other clients and the tool list: its README.
| Install | ||
|---|---|---|
| Web app | erd-editor.io | Installable PWA that works offline, with real-time collaboration |
| Google Drive | Google Workspace Marketplace | Drive's Open with and New menus, saving back to the same file |
| VS Code | Marketplace | Opens .erd.json files |
| IntelliJ | JetBrains Marketplace | Opens .erd.json files in IntelliJ-based IDEs |
| Obsidian | Community plugins | Opens .erd and .erd.json files in a vault, desktop only |
| Your app | npm install @dineug/erd-editor |
The <erd-editor> custom element and the read-only <erd-viewer>, no framework needed |
| Coding agents | @dineug/erd-editor-mcp |
MCP server for Claude Code, Codex and other clients |
In an IDE, create an empty .erd.json file and open it. In Obsidian, run
ERD Editor: Create new diagram; in Google Drive, choose New → More → ERD Editor.
Every ERD Editor shares its edits as a stream of actions, which keeps several views of one diagram in sync, such as browser tabs or split editors, and lets a coding agent join as one more collaborator.
On erd-editor.io, choose Start session from the collaboration button in the sidebar and share the link: everyone who opens it edits with you. The link is the only key, so share it only with people you would let edit. The session lives in the host's browser and ends when the host closes their last tab, so a guest who wants the diagram exports it first.
Peers connect over WebRTC, with the diagram and every edit encrypted by AES-GCM. The signaling relay never sees plaintext, and the room key lives in the URL fragment, which browsers leave out of every request.
flowchart TB
subgraph clientA["Client A"]
bcA["Broadcast Channel"]
tabA1["Tab (leader)"]
tabA2["Tab"]
swA["Shared Worker"]
idbA[("IndexedDB")]
bcA <--> tabA1
bcA <--> tabA2
tabA1 <--> swA
tabA2 <--> swA
swA <--> idbA
end
subgraph clientB["Client B (guest)"]
tabB1["Tab"]
end
relay["Signaling Relay (nostr / mqtt)"]
tabA1 <-->|"WebRTC (AES-GCM)"| tabB1
tabA1 -. "signaling" .-> relay
tabB1 -. "signaling" .-> relay
npm install @dineug/erd-editor
import '@dineug/erd-editor/erd-editor.js';
const editor = document.createElement('erd-editor');
// the editor fills its container, and a custom element is inline by default
Object.assign(editor.style, { display: 'block', width: '100%', height: '100vh' });
document.body.appendChild(editor);
To show a diagram without editing it, import @dineug/erd-editor/erd-viewer.js and place
<erd-viewer src="diagram.erd.json" style="display: block; height: 480px"></erd-viewer>, which
pans, zooms and searches it within the box its style gives it. Importing the package root defines
neither element.
A page that cannot load scripts, such as a wiki or a site builder, can frame the hosted viewer instead:
<iframe src="https://erd-editor.io/embed?src=https%3A%2F%2Fgithub.com%2Fdineug%2Ferd-editor%2Fblob%2Fmain%2Fdata%2Fembed-small.erd.json" width="100%" height="480" style="border: 0" loading="lazy" title="ERD Editor"></iframe>
That line shows this repository's data/embed-small.erd.json. The
builder at erd-editor.io/embed writes it from a file's URL and the
viewer's options. A file or gist on GitHub can be given by the address its page shows, as here; the
hosted viewer fetches it from GitHub's raw host, which caches each file for five minutes and works
for public repositories and public gists only, and of a gist it shows the first file. Any other
server holding the file has to allow erd-editor.io's cross-origin requests (CORS).
Both elements work from any framework or from none. Attributes and the element API:
packages/erd-editor.
<erd-editor> for your
own app; <erd-viewer> is in packages/erd-editorA pnpm workspace. @dineug/erd-editor,
@dineug/erd-editor-mcp and
@dineug/erd-editor-yjs are published to npm, the three plugins ship
through their stores, app is erd-editor.io, and the rest are private libraries those builds take
in.
| Folder | npm name | Description |
|---|---|---|
erd-editor |
@dineug/erd-editor |
The editor core: the <erd-editor> custom element, the read-only <erd-viewer> and the headless engine.js and peer.js entries |
erd-editor-yjs |
@dineug/erd-editor-yjs |
The published Yjs binding, which keeps an <erd-editor> or a headless peer store in step through a Y.Doc |
erd-editor-schema |
@dineug/erd-editor-schema |
The v2/v3 document schema, parsing, serializers, queries and LWW operators |
schema-sql-parser |
@dineug/schema-sql-parser |
Permissive DDL parser used for SQL import |
uuid |
@dineug/uuid |
UUIDv7 and the Uuid25 encoding, the ids the editor mints |
r-html |
@dineug/r-html |
The tagged-template rendering framework and store the editor is built on |
vite-plugin-r-html |
@dineug/vite-plugin-r-html |
JSX → tagged templates, plus HMR boundaries |
r-html-konva |
@dineug/r-html-konva |
The Konva host for r-html templates, which the editor's canvas renders through |
grid |
@dineug/grid |
A spreadsheet grid on a Konva canvas, built on r-html-konva, that draws only the cells in view |
app |
@dineug/erd-editor-app |
The React PWA at erd-editor.io, with the G |