Skip to main content

Archetype

Define once. Generate everything.

Database • APIs • Tests • Docs • Seeds

Get Started
You write
const Product = defineEntity('Product', {
fields: {
name: text().required(),
price: number().positive(),
description: text().optional(),
},
relations: {
reviews: hasMany('Review'),
},
behaviors: { timestamps: true },
})
You get
tsType-safe end to end
0Zero boilerplate
*Tests, docs, seeds auto-generated
npx archetype init