anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

A free database diagram editor that runs in your browser. You draw tables and relationships, import SQL, and export SQL, images or DBML. The notes cover running your own copy, Docker and the MCP server for AI tools.
drawDB is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.
git clone https://github.com/drawdb-io/drawdb cd drawdb npm install
drawDB is a database diagram editor that runs in your browser, made by drawdb-io. You add tables and fields, link them with relationships, and export the SQL. The README calls it a free, simple and intuitive schema editor and SQL generator. It works without an account.
Developers, students and teams who want to sketch or document a database before they build it, or to read an old schema as a picture. You can import existing SQL and see its tables and relationships as a diagram. The hosted editor needs no account for the core modeling, and you can run your own copy if you prefer.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software teams | Back-end developers | Model tables and relationships before writing migrations, then export the SQL | A developer picks PostgreSQL, adds users and posts tables, links posts.user_id to users.id and exports the SQL. |
| Education | Students and teachers | Draw an entity relationship diagram for a course project and export it as an image or a PDF | A student models a shop with a join table between orders and products and saves the diagram as a PNG. |
| Documentation | Engineers who take over a database | Import the existing SQL, read it as a diagram and group the tables into subject areas | An engineer imports a MySQL script, adds notes where the schema is unclear and exports a PDF. |
| Teams with AI coding tools | Developers who use Claude Desktop, Cursor, Cline, Goose or Windsurf | Connect the MCP server (needs a paid drawDB Pro plan with cloud storage) so the tool can read a cloud diagram’s tables and relationships | A developer asks the tool to list their diagrams, then to describe the orders table. |
Skip it if you need a tool that reads a running database. The docs list imports from SQL scripts, JSON, DDB and DBML files, and none from a live connection.
You can use the hosted editor, run your own copy, or connect the MCP server to an AI tool. The docs list seven database types, with Oracle SQL still in beta.
Get it saves a zip of Mindket’s setup notes in your downloads folder, with the steps from drawDB’s README and docs. The quickest route is the hosted editor, which needs no install. To run your own copy from source, you need Git and Node.js with npm. The Docker routes need Docker instead, and the prebuilt image needs no clone.
| Need | Detail |
|---|---|
| Hosted editor | A browser. The docs say you can model without an account |
| Your own copy | Git, and Node.js with npm. The README names no version. The Dockerfile uses node:20-alpine and raises Node’s memory limit to 4096 MB for the build |
| Docker | Only for the container route |
| MCP server | Node.js 20 or newer, a drawDB Pro plan with cloud storage and an API key |
git clone https://github.com/drawdb-io/drawdb cd drawdb npm install npm run dev
For Docker, the README gives two lines to run in the clone. The -p 3000:80 part maps port 3000 on your computer to port 80 in the container.
docker build -t drawdb . docker run -p 3000:80 drawdb
If you run the optional drawdb-server for sharing, pass its address to the prebuilt image. The README says no rebuild is needed.
docker run -p 3000:80 -e VITE_BACKEND_URL=https://your-drawdb-server.example.com ghcr.io/drawdb-io/drawdb:latest
Open the editor, choose File, then New, and pick a blank diagram or a template. Choose the database type first, because it decides which field types and features you see.
| Direction | Formats |
|---|---|
| In | drawDB JSON and DDB files, DBML, and SQL for MySQL, PostgreSQL, SQLite, MariaDB, Microsoft SQL Server and Oracle SQL |
| Out | SQL, PNG, JPEG, SVG and PDF, drawDB JSON, DBML, Mermaid and Markdown |
Ctrl/Cmd + S saves, Ctrl/Cmd + Z undoes, Alt + E opens the DBML editor and Ctrl/Cmd + Alt + W fits the diagram to the window.
For an AI tool, add this block to its local MCP server settings, with your own API key in place of the placeholder. It needs drawDB Pro.
{
"mcpServers": {
"drawdb": {
"command": "npx",
"args": ["-y", "@drawdb/mcp"],
"env": {
"DRAWDB_API_KEY": "ddb_your_key_here"
}
}
}
}You want a small blog schema. You open the editor, choose File, then New, and pick a blank PostgreSQL diagram. You add a users table and a posts table, and give posts a user_id field. Then you drag from the blue connection point on user_id to users.id.
The docs use this same pair as their example. drawDB infers the cardinality from the primary and unique constraints, and you can adjust it afterward. When you export, the SQL comes from a generator for PostgreSQL.
With drawDB Pro, a cloud diagram can also be read by an AI tool through the MCP server. You ask:
List my drawDB diagrams, then summarize the schema of the diagram named “Orders”.
The docs say the agent calls list_diagrams first, then uses the diagram ID it gets back for the other tools.
If you are new. A schema is the set of tables in a database and how they link. An entity relationship diagram draws it as boxes and lines. A primary key identifies a row, and a foreign key points at a row in another table. Start in the hosted editor and pick Generic if you have not chosen a database. Fork one of the six built-in templates to see a finished diagram. Export a diagram before you clear your browser data, because the open-source editor keeps it only there.
For experts. The open-source editor is a React app built with Vite. Editor state lives in React Context providers, with no Redux or Zustand store. The canvas is an SVG surface driven by pointer events. Tables are drawn through foreignObject elements, and relationships are SVG paths calculated from the positions of their fields.
Diagrams and custom templates go to IndexedDB through Dexie, while preferences and custom datatype aliases go to local storage. SQL is parsed into an abstract syntax tree, then converted into tables, fields, indexes, enums, types and relationships where the dialect gives enough information. Check constraints are inserted into the generated SQL as written, so write them in the target database’s syntax. PostgreSQL diagrams add table inheritance, array dimensions and enums. PostgreSQL and Generic diagrams both have a Types tab for composite types.
A new language takes four steps: create a translated locale file based on src/i18n/locales/en.js, import it in src/i18n/i18n.js, add it to the language list and register it in the i18next resources map.
drawDB runs in your browser, and a few parts of it reach beyond it.
This kit holds setup notes only. Mindket wrote them. drawDB runs from its maker's repository and site: https://github.com/drawdb-io/drawdb and https://www.drawdb.app
These notes are not made or endorsed by the drawDB team. The README says drawDB is a "database entity relationship diagram (ERD) editor right in your browser" and that you can build diagrams, "export and import SQL scripts, generate migrations, customize your editor, and more without creating an account". The documentation is at https://www.drawdb.app/docs. The pages are on the repository's main branch and the docs site, read on 3 November 2026.
License: AGPL-3.0. GitHub names it, and the LICENSE file (https://github.com/drawdb-io/drawdb/blob/main/LICENSE) is the GNU Affero General Public License, version 3. Section 13 says that if you modify the program, your modified version must prominently offer every user who interacts with it over a network the chance to receive its source. Read the license before you host a changed copy for other people.
@drawdb/mcp, that runs on your computer. See setup/mcp-clients.md.node:20-alpine image, and the Dockerfile raises Node's memory limit to 4096 MB for the build.Run it in a terminal. The README calls it Local Development.
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev
Source: https://github.com/drawdb-io/drawdb/blob/main/README.md
npm run dev, npm run build and the compose filedocker build, docker run and the container's backend setting.env.sampleThe README and the docs give no skill, plugin or setup steps for Claude Code, Codex or Gemini CLI. The only documented way to connect an outside AI tool is the MCP server, and the clients the docs name for it are in setup/mcp-clients.md. drawDB Pro also has a built-in AI schema assistant in the editor.
README.md 6 KB setup/api-keys.md 3 KB setup/docker.md 2 KB setup/hosted-editor.md 4 KB setup/local-development.md 2 KB setup/mcp-clients.md 7 KB setup/sharing-and-backend.md 2 KB
Updated by Mindket to the current version of this kit.
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.