Erd
Simplest DSL to draw ER diagrams executable on any environments
Install / Use
/learn @k-kawa/ErdREADME
ERD
The compiler of the simplest DSL to draw ER diagrams. This project is still under PoC phase.
Install
Execute the following command to install the latest version.
go get github.com/k-kawa/erd
Or download the executable binary suitable for your environment
Usage
You can write the table definitions with your favorite editor like this
User : All our customers {
id
email varchar(128) : User's email address
name : User's name
}
Post {
id
blog_id -> Blog.id
category_id -> Category.id
title : title of the blog post
text : plain text of the blog post
}
Blog {
id
user_id -> User.id
name
}
Category {
id
name
parent_category_id ..> Category.id
blog_id -> Blog.id
}
and store it to sample.erd.
Then, you can convert it to the Graphviz Dot format with erd command like this.
$ cat sample.erd | erd convert
digraph er {
....
}
Finally you can convert it to a PNG image with dot command like this.
$ cat sample.erd | erd convert | dot -Tpng -o sample.png

License
MIT
Related Skills
node-connect
326.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
80.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
326.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
80.4kCommit, push, and open a PR
