Your last full-stack framework

Grit is a Go and React framework crafted for speed and for building alongside AI.

Available for macOS, Linux, and Windows

Fast

A Go binary that starts in milliseconds and holds thousands of concurrent connections without breaking a sweat.

Generated

One resource definition writes the model, the API, the typed client and the admin screen — all of it yours to edit.

Complete

Auth, storage, queues, email and an audit log ship in the scaffold, not in a checklist for later.

grit / apps/api
invoice.goinvoice_service.go
1package models
2
3import (
4 "time"
5
6 "gorm.io/gorm"
7 "myapp/internal/ids"
8)
9
10type Invoice struct {
11 ID string `gorm:"primarykey"`
12 Number string `gorm:"uniqueIndex"`
13 Total float64 `json:"total"`
14 CreatedAt time.Time `json:"created_at"`
15}
16
17func (m *Invoice) BeforeCreate(tx *gorm.DB) error {
18 if m.ID == "" {
19 m.ID = ids.New()
20 }
21 return nil
22}
Go 1.24✓ build passingLn 19, Col 22