v3.5 — 5 ARCHITECTURES, 2 FRONTENDS

Build full-stack apps
with Go + React

One CLI scaffolds your entire application — Go API, React frontend, admin panel, auth, file uploads, background jobs, and more. Choose your architecture. Ship fast.

Terminal
$
5
Architecture Modes
single, double, triple, api, mobile
21
CLI Commands
scaffold, generate, deploy, routes...
100+
UI Components
shadcn-compatible registry
10
Official Plugins
websockets, stripe, oauth...

Everything Included

Batteries-included framework

Every Grit project ships with production-ready features out of the box.

Authentication + 2FA

JWT, OAuth2, TOTP, backup codes, trusted devices

Terminal
POST /api/auth/register → JWT tokens
POST /api/auth/login → JWT tokens (or totp_required + pending_token)
POST /api/auth/totp/verify → Exchange TOTP code for JWT
GET /api/auth/me → Current user (protected)
GET /api/auth/oauth/:provider → Google, GitHub social login

Admin Panel

DataTable, FormBuilder, dashboard widgets, resource definitions.

  • - Sort, filter, paginate, search
  • - 16+ form field types
  • - Multi-step form wizards
  • - 4 style variants

AI Gateway

One API key, hundreds of models via Vercel AI Gateway.

anthropic/claude-sonnet-4-6

File Storage

Presigned URL uploads to S3, R2, or MinIO. Image processing. Progress tracking.

Full-Stack Code Generation

One command generates Go + React + admin in seconds

Terminal
$ 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

Choose how you build

Coming from Laravel? Choose Single. MERN stack? Choose Double. Building a SaaS? Choose Triple.

Single

Go + embedded SPA

--single

Double

Web + API monorepo

--double

Triple

Web + Admin + API

--triple

API Only

Go backend only

--api

Mobile

API + Expo

--mobile

One-Command Deploy

From code to production
in one command

grit deploy builds your app, uploads via SSH, configures systemd, and sets up Caddy with auto-TLS.

  • 01Cross-compiles Go binary for Linux (CGO_ENABLED=0)
  • 02Builds frontend if present (pnpm build)
  • 03Uploads binary via SCP
  • 04Creates systemd service with auto-restart
  • 05Configures Caddy reverse proxy with Let's Encrypt TLS
Deploy guide
Terminal
$ 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

Production-ready from day one

JWT Authentication

Register, login, refresh, OAuth2 social login (Google, GitHub). Role-based access control.

Two-Factor Auth

TOTP authenticator app, 10 backup codes, trusted devices with 30-day sliding cookie.

File Storage

Presigned URL uploads to S3, R2, or MinIO. Image processing. Progress tracking.

Email (Resend)

Transactional emails with Go HTML templates. Dev uses Mailhog.

Background Jobs

Redis-backed job queue via asynq. Image processing, email sending.

Redis Cache

Cache middleware for any route. Set/Get/Delete. Configurable TTL.

Framework Comparison

How Grit compares

FeatureGritNext.jsLaravel
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

Loved by builders

Grit replaced our entire setup — Django backend, React frontend, separate admin panel. One CLI command and we had everything running in minutes.

Alex Chen
Senior EngineerStartup Founder

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.

Sarah Johnson
Full-Stack DeveloperAgency Lead

Coming from Laravel, the single-app architecture felt instantly familiar. But with Go performance and type safety. The deploy command is chef's kiss.

Marcus Rodriguez
Backend DeveloperLaravel to Go convert
Muke JohnBaptist
“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.”
Muke JohnBaptist
Creator of Grit Framework

FAQ

Frequently asked questions

Do I need to know Go to use Grit?

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.

Can I use Grit with an existing project?

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.

Is Grit production-ready?

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.

What's the difference between Single and Triple architecture?

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.

Can I switch from Next.js to TanStack Router later?

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.

How does grit deploy work? Is it like Vercel?

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.

Is Grit open source?

Yes, Grit is fully open source under the MIT license. The CLI, all plugins, and the documentation are on GitHub.

Start building in 30 seconds

Install the CLI and scaffold your first project.

go install github.com/MUKE-coder/grit/v3/cmd/grit@latest
grit new my-app