DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to draw the real data model from a Prisma schema with Vibex

Turn a Prisma schema into a validated ERD that shows the tables that actually ship.

Short answer: vibex import prisma prisma/schema.prisma docs/db.erd.json; then vibex validate docs/db.erd.json; vibex render docs/db.erd.json --open. All steps.

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

  1. vibex import prisma prisma/schema.prisma docs/db.erd.json
  2. vibex validate docs/db.erd.json
  3. vibex 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer