Who it is forA developer joining a project or reviewing a database change who needs an accurate map of tables and relations.
The problemExisting diagrams in wikis or whiteboards go stale, and nobody is sure which tables join which.
The outcomeA validated ERD spec and a standalone HTML viewer showing tables, PK/FK badges, and cardinality taken from the schema.
What you need first
- Node.js and npx, for the npx commands in the README
- A Prisma schema, OpenAPI document, or GraphQL SDL file in the project, or source code the tool can read
- Claude Code or Codex if you want to use vibeX as an agent skill
Steps
vibex import prisma prisma/schema.prisma docs/db.erd.jsonvibex validate docs/db.erd.jsonvibex render docs/db.erd.json --open
Prompt for your agent
In the repo <repo path>, import prisma/schema.prisma into docs/db.erd.json with vibeX, validate it, and render docs/db.erd.html. Report the table count and any validation errors. Verify that every foreign key in the schema appears as a relation in the ERD.
Caveat. The ERD is generated from the Prisma schema, so it reflects what the schema declares, not what the database holds at runtime.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Raja0sama/vibex and "Draw the real data model from a Prisma schema"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer