How it works

From definition to running feature

Generate

A resource is one command, not one afternoon

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.

  • Model, service and handler
  • Typed client and hooks
  • Admin table and form
Read the guide
bash
$ 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.tsx
7 files written in 240ms

Administer

An admin panel you never have to build

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.

  • Sort, filter and paginate
  • Validation from your Go tags
  • Role-aware actions
Read the guide
InvoicesNew invoice
NumberClientTotalStatus
INV-1042Northwind$4,200.00Paid
INV-1041Acme$1,850.00Pending
INV-1040Globex$12,400.00Paid
INV-1039Initech$640.00Overdue