百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

erd-builder-pro

> 开发工具
开源

ERD Builder Pro 是一个面向开发人员的数据库设计和文档工具。可以在一个工作区中构建 ERD、流程图、说明和图纸

190 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

ERD Builder Pro 是一个面向开发人员的数据库设计和文档工具。可以在一个工作区中构建 ERD、流程图、说明和图纸

ERD Builder Pro is a database design and documentation tool for developers. Build ERDs, flowcharts, notes, and drawings — all in one workspace.

[!WARNING] ERD Builder Pro is under active development and not yet stable — features and config may still change. Give the repo a Star ⭐ and Watch it to get notified the moment a release lands.

Key Features

  • ** Visual Workspace**: ERD diagrams (XYFlow), flowcharts, free-hand drawing (Excalidraw), and rich-text notes (TipTap).
  • ** DBML Editor**: Write and edit DBML (Database Markup Language) with syntax highlighting, live bidirectional sync with ERD, and auto-generated column/relationship definitions.
  • ** Export**: Generate SQL DDL (PostgreSQL, MySQL), export as images or PDF.
  • ** Remote Database Connection**: Connect to remote PostgreSQL, MySQL, or SQLite databases — browse tables, inspect schemas, and import structures into your ERD.
  • ** Project Management**: Organize assets into projects with soft-delete trash system.
  • ** AI Assistant**: Context-aware chat per view — generate SQL, seed data, summarize notes, create flowcharts. Streaming responses with auto-apply.
  • ** Security**: Supabase authentication, Cloudflare R2 storage, rate limiting, Helmet middleware.

️ Tech Stack

  • Frontend: React 18 + Vite 6 + Tailwind CSS v4
  • UI System: Shadcn UI + Radix UI + Lucide Icons
  • Canvas Engines: XYFlow + Excalidraw
  • Content Editor: TipTap (Rich Text Engine)
  • Backend Architecture: Express.js + Edge Functions Support
  • Infrastructure: Supabase (DB/Auth) + Cloudflare R2 (Storage)

️ Getting Started

Quick Install (Recommended)

The CLI app is the fastest way to get started — no Docker, no Supabase, no config:

bash
npm install -g erdbpro
erdbpro

Opens at http://localhost:3101. Data stored locally in ~/.erdbpro/. Login with [email protected] / admin123.

A desktop app is also available on the releases page (macOS .dmg, Windows .msi, Linux .deb). Note: the desktop app is not yet code-signed — macOS and Windows may show a security warning on first launch.

MCP (Desktop, CLI, and Web) — Experimental

[!WARNING] MCP support is Experimental. Tool names, inputs, and capability limits may change. Review write-tool calls before approving them.

Use erdbpro mcp for CLI data or erdbpro mcp --desktop for Desktop data. The Desktop command runs its bundled MCP backend directly and does not launch a second GUI application. Supabase Web App deployments can additionally expose an OAuth-protected Streamable HTTP endpoint by setting MCP_PUBLIC_URL and enabling the Supabase OAuth 2.1 server.

The local tool set can read DB Client data and apply confirmed Note/history operations. The public Web MCP surface is separate and read-only: it exposes Web workspace documents and history, while DB Client, production_db, credentials, SQL execution, filesystem access, and writes are not registered.

In Desktop and CLI, open Settings → MCP Integration to copy a ready-to-use local stdio configuration for JetBrains AI, VS Code, Codex, Hermes Agent, or a generic MCP client. See the full MCP setup guide for client and Web MCP configuration details.

Docker

bash
docker pull bekenweb/erd-builder-pro:latest

docker run -d --name erd-builder-pro -p 3000:3000 \
  --env-file .env \
  bekenweb/erd-builder-pro:latest

Testing

The project uses Vitest for unit testing with a focus on core logic — SQL parsers, schema diff engine, auto-layout algorithms, and code generators.

Test commands:

bash
npm test            # Run all tests once
npm run test:watch  # Run in watch mode during development

Test structure:

src/lib/__tests__/
├── sqlParser.test.ts          # SQL DDL parser (17 tests)
├── schema-diff.test.ts        # Schema comparison engine (8 tests)
├── autoLayoutERD.test.ts      # ERD auto-layout algorithm (12 tests)
├── autoLayoutFlowchart.test.ts # Flowchart auto-layout algorithm (12 tests)
├── sql-generator.test.ts      # Code generation for 7 dialects (39 tests)
└── sql-generator-all.test.ts  # Bulk export & FK extraction (19 tests)

Coverage areas: SQL DDL parsing across PostgreSQL/MySQL/SQLite dialects, schema diff & merge resolution, directed-graph auto-layout (BFS layering, cycle detection, diamond decision branching), and multi-dialect code generation (MySQL, PostgreSQL, Laravel, TypeScript, Prisma, Zod).


Sponsors

Sponsor Support
IDCloudhost Virtual machine infrastructure for deployment and cloud hosting.
Doktainer App template platform with Docker panel for streamlined container management.
SumoPod Seamless container and application purchasing solutions for businesses of all sizes.

Support


License

This project is licensed under the PolyForm Noncommercial License 1.0.0.

Non-Commercial Use Only

The software is free to use, modify, and distribute for non-commercial purposes only. Any use for revenue-generating activities or within for-profit organizations is strictly prohibited under these terms.

Commercial Licensing

If you wish to use ERD Builder Pro for commercial purposes, business operations, or as part of a paid service, you must obtain a separate commercial license. Please contact the author for further information.


Built for Architects & Developers ❤️

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcodingdeveloper-toolsdevtoolsdrawing-app

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具