Skip to the canvas
Schema, from a sentence

Describe the app.
Get the architecture.

Archy turns one sentence into a live entity diagram — tables, types, keys and relationships — then generates the Prisma schema, TypeScript types and SQL.

Or start from

Working from

“a ride-sharing app with riders, drivers, rides, vehicles and real-time payments”

resolved
ride-sharing.archy
users5
  • PKiduuid
  • emailstring
  • full_namestring
  • phonestring
  • created_atdatetime
drivers5
  • PKiduuid
  • FKuser_iduuid
  • license_nostring
  • ratingdecimal
  • is_onlineboolean
rides6
  • PKiduuid
  • FKrider_iduuid
  • FKdriver_id?uuid
  • statusenum
  • fare_centsint
  • requested_atdatetime
payments5
  • PKiduuid
  • FKride_iduuid
  • amount_centsint
  • providerstring
  • captured_at?datetime
vehicles4
  • PKiduuid
  • FKdriver_iduuid
  • platestring
  • modelstring
foreign key → references·drag a table·hover to isolate
Why it reads better

A diagram you can argue with.

Most generators hand you a wall of SQL and wish you luck. Archy shows the shape first — so the mistakes are obvious before they reach a migration.

Relations

Keys point at keys, not at boxes

Every edge anchors on the actual foreign-key row and terminates on the primary key it references. Cardinality is labelled on hover, so 1:1 and 1:many never get quietly confused.

orders
  • id
  • customer_id
  • total
customers
  • id
  • email
  • name
1:n

Output

One diagram, three targets

Prisma schema, TypeScript interfaces and Postgres DDL — generated from the same graph, with indexes and join tables filled in.

schema.prisma
types.ts
migration.sql

Canvas

Drag to think

Pull tables apart to untangle a hairball. Hover one to dim everything it does not touch.

rides

Types

Enums survive the trip

A status column becomes a Prisma enum, a TypeScript union and a CHECK constraint — all three, all consistent.

status enum [requested, active, done]
        ↓
type RideStatus =
  | "requested"
  | "active"
  | "done";

Speed

Nothing to install

The canvas, the generators and the copy button all run in the page. Paste the output straight into your repo.

Archy

Stop drawing boxes in Figma.

Describe it once. Drag it into shape. Copy the schema and go build the part that actually matters.