MCPcopy
hub / github.com/drawdb-io/drawdb

github.com/drawdb-io/drawdb @v1.8.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.8.0 ↗
463 symbols 1,448 edges 226 files 1 documented · 0%
README

Special thanks to:

Warp sponsorship

<b>Next-gen AI-powered intelligent terminal for all platforms</b>

<img width="64" alt="drawDB logo" src="https://github.com/drawdb-io/drawdb/raw/v1.8.0/src/assets/icon-dark.png">
<h1>drawDB</h1>

Free, simple, and intuitive database schema editor and SQL generator.

<a href="https://drawdb.app/" style="display: flex; align-items: center;">
    <img src="https://img.shields.io/badge/Start%20building-grey" alt="drawDB"/>
</a>
<a href="https://discord.gg/BrjZgNrmR6" style="display: flex; align-items: center;">
    <img src="https://img.shields.io/discord/1196658537208758412.svg?label=Join%20the%20Discord&logo=discord" alt="Discord"/>
</a>
<a href="https://x.com/drawDB_" style="display: flex; align-items: center;">
    <img src="https://img.shields.io/badge/Follow%20us%20on%20X-blue?logo=X" alt="Follow us on X"/>
</a>

drawDB screenshot demo

DrawDB is a robust and user-friendly database entity relationship diagram (ERD) editor right in your browser. Build diagrams with a few clicks, export and import SQL scripts, generate migrations, customize your editor, and more without creating an account. See the full set of features on here.

Getting Started

Local Development

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev

Build

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build

Docker Build

docker build -t drawdb .
docker run -p 3000:80 drawdb

If you want to enable sharing, set up the server and environment variables according to .env.sample. This is optional unless you need to share files.

Contributing

Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

Support

Core symbols most depended-on inside this repo

escapeQuotes
called by 48
src/utils/exportSQL/shared.js
updateTable
called by 40
src/context/DiagramContext.jsx
useDiagram
called by 32
src/hooks/useDiagram.js
useLayout
called by 32
src/hooks/useLayout.js
updateField
called by 26
src/context/DiagramContext.jsx
useUndoRedo
called by 25
src/hooks/useUndoRedo.js
strHasQuotes
called by 24
src/utils/utils.js
parseDefault
called by 19
src/utils/exportSQL/shared.js

Shape

Function 463

Languages

TypeScript100%

Modules by API surface

src/components/EditorHeader/ControlPanel.jsx28 symbols
src/utils/migrations/diffToSQL.js22 symbols
src/utils/utils.js18 symbols
src/components/EditorCanvas/Canvas.jsx16 symbols
src/components/LexicalEditor/ToolbarPlugin.jsx14 symbols
src/utils/exportAs/dbml.js13 symbols
src/context/DiagramContext.jsx11 symbols
src/components/EditorHeader/Modal/Open/diagram.js11 symbols
src/utils/exportSQL/generic.js10 symbols
src/components/EditorCanvas/Area.jsx10 symbols
src/components/EditorCanvas/Table.jsx9 symbols
src/components/EditorSidePanel/RelationshipsTab/RelationshipInfo.jsx8 symbols

Dependencies from manifests, versioned

@dbml/core3.13.9 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@douyinfe/semi-ui2.77.1 · 1×
@lexical/react0.12.5 · 1×
@monaco-editor/react4.7.0 · 1×
@types/react18.2.43 · 1×
@types/react-dom18.2.17 · 1×
@vercel/analytics1.2.2 · 1×
@vitejs/plugin-react6.0.3 · 1×

For agents

$ claude mcp add drawdb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact