How it works
Generate
Define the fields once. Grit writes the model, the service, the handler, the routes, the validation schema, the typed hooks and the admin screen — consistent every time.
$ grit generate resource Invoice \ --fields "number:string,total:float,paid:bool"✓ internal/models/invoice.go✓ internal/services/invoice.go✓ internal/handlers/invoice.go✓ packages/shared/schemas/invoice.ts✓ apps/admin/app/resources/invoices/page.tsx7 files written in 240msAdminister
Every generated resource arrives with a filterable table, a validated form and a detail view. It is ordinary code in your repository, so change anything you like.
| Number | Client | Total | Status |
|---|---|---|---|
| INV-1042 | Northwind | $4,200.00 | Paid |
| INV-1041 | Acme | $1,850.00 | Pending |
| INV-1040 | Globex | $12,400.00 | Paid |
| INV-1039 | Initech | $640.00 | Overdue |