Skip to main content

Generators reference

All generators support the generate and g command forms. They refuse to overwrite generated files.

GeneratorPurposePrincipal output
modelDatabase schema onlysrc/db[/name]/schema/<table>.ts
resourceSchema, validated API, testschema, route, test
scaffoldResource plus SvelteKit UIresource output plus list/detail pages
jobDurable async worksrc/jobs/<name>.ts
realtimeSSE or WebSocket recipesrc/realtime/<name>.ts and route wiring
authBetter Auth integrationauth schema, plugin, pages, protected route
auditDurable audit eventsaudit schema, recorder, sanitizer
mailerNamed email builderssrc/mailers/<name>.ts
smsNamed SMS builderssrc/sms/<name>.ts

For field syntax and resource output, see Resources and scaffolding. For every flag, see the CLI reference. Generator edits are explicit: schema and route barrel files, the job registry, app composition, and frontend resource navigation are updated rather than discovered at runtime.