One schema. Every ORM.

Define your data shape once β€” Sapphire emits Mongoose, Drizzle, JSON Schema and TypeScript types from a single source of truth.

playground β€” edit the schema, watch it recompute live
schema
sample value (JSON)
 
⛃

Multi-output

One definition becomes a Mongoose schema, a Drizzle table, and a JSON Schema document.

{ }

Typed end to end

Infer<> derives a precise TypeScript type from the same schema β€” no drift.

βœ“

Validation built in

parse / safeParse with structured, DTO-ready errors via flatten() and format().