Athas Boilerplate

Feature Scaffolding

external-ready

Build frontend and vertical slices quickly with scaffold commands.

Frontend feature scaffold

bun run scaffold:feature --app admin-console --feature audit-log --route /_authenticated/audit-log
bun run scaffold:vertical-slice --audience admin --capability reports --name list --method GET

This generates contract + backend procedure stub + frontend feature slice.

Provider/billing preset

bun run scaffold:providers-billing --app admin-console --slice billing --with-backend

Rules

  • keep route files adapter-only
  • keep feature transport in features/*/api.ts
  • use audience-correct namespaces (public, client, admin)

See full guide in docs/guides/creating-a-feature.md.

On this page