One CLI scaffolds your entire application — Go API, React frontend, admin panel, auth, file uploads, background jobs, and more. Choose your architecture. Ship fast.
Everything Included
Every Grit project ships with production-ready features out of the box.
JWT, OAuth2, TOTP, backup codes, trusted devices
POST /api/auth/register → JWT tokensPOST /api/auth/login → JWT tokens (or totp_required + pending_token)POST /api/auth/totp/verify → Exchange TOTP code for JWTGET /api/auth/me → Current user (protected)GET /api/auth/oauth/:provider → Google, GitHub social login
DataTable, FormBuilder, dashboard widgets, resource definitions.
One API key, hundreds of models via Vercel AI Gateway.
anthropic/claude-sonnet-4-6Presigned URL uploads to S3, R2, or MinIO. Image processing. Progress tracking.
One command generates Go + React + admin in seconds
$ grit generate resource Product --fields "name:string,price:float,stock:int"✓ internal/models/product.go✓ internal/services/product.go✓ internal/handlers/product.go✓ apps/admin/src/routes/_dashboard/resources/products.tsx✓ Injected model, handler, routes, resource registry✅ Resource Product generated successfully!
Flexible Architecture
Coming from Laravel? Choose Single. MERN stack? Choose Double. Building a SaaS? Choose Triple.
Go + embedded SPA
--singleWeb + API monorepo
--doubleWeb + Admin + API
--tripleGo backend only
--apiAPI + Expo
--mobileOne-Command Deploy
grit deploy builds your app, uploads via SSH, configures systemd, and sets up Caddy with auto-TLS.
$ grit deploy --host deploy@server.com --domain myapp.com→ Building frontend...→ Building Go binary (linux/amd64)...→ Uploading binary to /opt/myapp/→ Setting up systemd service...→ Configuring Caddy reverse proxy...✓ Deployment successful!Live at: https://myapp.com
What Ships With Every Project
Register, login, refresh, OAuth2 social login (Google, GitHub). Role-based access control.
TOTP authenticator app, 10 backup codes, trusted devices with 30-day sliding cookie.
Presigned URL uploads to S3, R2, or MinIO. Image processing. Progress tracking.
Transactional emails with Go HTML templates. Dev uses Mailhog.
Redis-backed job queue via asynq. Image processing, email sending.
Cache middleware for any route. Set/Get/Delete. Configurable TTL.
Framework Comparison
| Feature | Grit | Next.js | Laravel |
|---|---|---|---|
| Go Backend | |||
| React Frontend | |||
| Admin Panel | |||
| Code Generator | |||
| JWT + OAuth2 | |||
| Two-Factor Auth | |||
| File Storage | |||
| Background Jobs | |||
| AI Integration | |||
| One-Command Deploy | |||
| Multiple Architectures | |||
| Desktop App |
What Developers Say
Grit replaced our entire setup — Django backend, React frontend, separate admin panel. One CLI command and we had everything running in minutes.
The code generator alone saves us 2-3 hours per feature. Generate a resource, get Go model + service + handler + admin page + React hooks. Incredible DX.
Coming from Laravel, the single-app architecture felt instantly familiar. But with Go performance and type safety. The deploy command is chef's kiss.
Built With Grit
Projects and products built with the Grit framework.
Self-hostable creator platform. Website builder, email marketing, courses, community.
Competitive Go coding platform with real-time WebSocket battles, ELO ranking, and sandbox execution.
Visual database browser for GORM. View tables, run queries, export data. Embedded in every Grit project.
Self-hosted observability SDK. Request tracing, DB monitoring, runtime metrics, Prometheus export.
WAF + rate limiting + brute-force protection with real-time threat dashboard.
Zero-annotation API documentation generator for Gin. Auto-generates OpenAPI spec with Scalar UI.
“I built Grit because I was tired of spending weeks setting up the same boilerplate for every project. Auth, admin panels, file uploads, background jobs — they should just work. Now they do. One command, and you have a production-ready app. That's the framework I wanted to use.”
FAQ
Basic Go knowledge helps, but Grit generates most of the code for you. The generated code follows clear patterns (handler → service → model) that are easy to extend. If you know any backend language, you'll pick it up fast.
Grit is designed for greenfield projects. It scaffolds the full project structure. However, you can use grit generate resource in existing Grit projects to add new features incrementally.
Yes. Every scaffolded project includes JWT auth, RBAC, rate limiting (Sentinel), observability (Pulse), error handling, CORS, gzip compression, connection pooling, and graceful shutdown. It's designed for production from day one.
Single embeds the React SPA into the Go binary via go:embed — one file to deploy. Triple is a Turborepo monorepo with separate web app, admin panel, and API — ideal for teams and complex products.
The backend (Go API) is identical regardless of frontend choice. You'd need to rebuild the frontend pages, but all hooks, types, and API patterns are the same. The admin panel components are also framework-agnostic React.
grit deploy is for self-hosted deployments. It SSHs to your server, uploads the binary, configures systemd, and sets up Caddy with auto-TLS. For Vercel/Railway, just push to git — the Dockerfile is included.
Yes, Grit is fully open source under the MIT license. The CLI, all plugins, and the documentation are on GitHub.
Install the CLI and scaffold your first project.
go install github.com/MUKE-coder/grit/v3/cmd/grit@latestgrit new my-app