projectorm2erd
orm2erd
Generate ERD diagrams (Mermaid, DBML, PlantUML, D2, and more) straight from your ORM's models/schema.
- PK name
- orm2erd
- created_at
- stack
- TypeScript, Node.js
- homepage
- npmjs.com/package/orm2erd
- repository
- NaufalK25/orm2erd
- license
- MIT License

notes
You already wrote the models, so the schema exists. orm2erd reads them and writes the ERD, instead of someone drawing and maintaining one by hand.
It detects the ORM (Prisma, Sequelize, Mongoose, TypeORM, Drizzle, MikroORM), resolves the entry points, normalizes everything into one intermediate model, then emits Mermaid, DBML, PlantUML, D2 and more from a single parse.
A --check flag fails CI when the committed diagram falls behind the models. Published on npm under the MIT license.