All 67 Features
Everything you need to build production-ready Go web applications. No assembly required.
Why RapidGo?
Go is fast, typed, and compiles to a single binary. But building web apps in Go has always meant stitching together dozens of libraries yourself. RapidGo changes that.
The Boilerplate Problem
Every new Go web project starts the same way: pick a router, find an ORM, wire up middleware, set up config loading, add logging, build a CLI. Hours of plumbing before writing a single line of business logic.
RapidGo's Answer
One framework. 67 features. ORM, auth, queues, caching, CLI, migrations, validation, mail, events, notifications, and more, all wired together with clean architecture and productive DX, powered by Go's speed.
Core Foundation
Application lifecycle, dependency injection, configuration, logging, error handling, and CLI.
DI Container
Service container with provider pattern for dependency injection. Register, resolve, and manage service lifecycles with Register/Boot phases.
Service Providers
Register/Boot lifecycle for wiring services. Config, database, router, session, queue, Redis, all registered as providers.
Configuration
Environment-based config via .env files with godotenv. Typed accessors, environment detection, nested config groups.
Structured Logging
slog-based structured logging with JSON/text output, log levels, request context, and configurable writers.
Error Handling
Centralized error handling middleware with structured error types, stack traces, and automatic JSON/HTML responses.
Cobra CLI
Full CLI with serve, migrate, seed, scaffold, schedule:run, and work commands. Extensible with custom commands.
HTTP & Routing
Gin-powered routing, MVC controllers, middleware, validation, views, WebSocket, and static files.
Gin-Powered Router
High-performance HTTP routing built on Gin. Route groups, middleware chains, parameter binding, and named routes with URL generation.
Resource Controllers
RESTful resource routing with a single line. Automatically maps index, create, show, update, and delete actions.
Middleware Pipeline
Registry with aliases and groups. Auth, CORS, CSRF, rate limiting, request ID, recovery, and session middleware built in.
Input Validation
Built-in and struct-based validation with required, email, min/max length, regex, and custom rules.
API Response Helpers
Envelope pattern with Success(), Error(), Paginated() helpers. Consistent JSON response structure across your API.
Views & Templates
Go HTML templates with layouts, partials, custom functions, and hot reload in development mode.
WebSocket Support
Real-time bidirectional communication via coder/websocket. Rooms and channels for chat, notifications, live dashboards.
Static File Serving
Serve CSS, JS, images, and fonts from the resources/static directory with proper MIME types and caching.
Multi-Mode Server
Run Web, API, WebSocket, and Worker modes on separate ports or combined. Graceful shutdown with signal handling.
Database & ORM
GORM ORM, migrations, seeders, transactions, soft deletes, read/write splitting, pagination.
GORM Integration
Full ORM with models, relationships, query scopes, and multi-driver support. SQLite, PostgreSQL, and MySQL.
Migrations & Rollback
Version-controlled schema migrations with up/down functions, batch tracking, rollback, and status reporting via CLI.
Seeders
Interface-based seeder registry with idempotent operations. Seed test data, default users, and config via CLI.
Transactions
Auto, manual, and nested transaction patterns with automatic rollback on error and connection resolver.
Soft Deletes
SoftDeleteModel with timestamps, UUID primary keys, and query scopes. Restore or permanently delete records.
Read/Write Splitting
Route reads to replicas and writes to primary. Transparent connection management for horizontal scaling.
Pagination
Pagination helper with page/per-page, total count, and metadata for API responses and template rendering.
Audit Logging
Track model changes with automatic before/after snapshots, user attribution, and queryable audit trail.
Security & Authentication
JWT, sessions, OAuth2, TOTP 2FA, CSRF, CORS, rate limiting, encryption.
JWT Authentication
Stateless JWT token generation and validation with configurable expiry, custom claims, and refresh token support.
Session Authentication
5 session backends: database, Redis, file, memory, cookie. Flash messages, CSRF tokens, configurable lifetime.
OAuth2 Social Login
Google, GitHub, Facebook integration. Authorization code flow with state parameter and token exchange.
TOTP Two-Factor Auth
Time-based one-time passwords with QR code generation, bcrypt-hashed backup codes, and authenticator app support.
CSRF Protection
Double-submit cookie pattern with session-based token generation and validation. Automatic for form submissions.
CORS
Configurable Cross-Origin Resource Sharing with allowed origins, methods, headers, and credentials support.
Rate Limiting
Token bucket algorithm with per-IP and per-route limits. Configurable windows and burst capacity.
Crypto Utilities
AES-256-GCM encryption, HMAC-SHA256 signing, bcrypt password hashing, and secure random token generation.
Infrastructure & Services
Queue workers, scheduler, events, plugins, caching, mail, file storage, i18n.
Queue Workers
Background job processing with 4 drivers: database, Redis, memory, sync. Retry logic, failure handling, configurable concurrency.
Task Scheduler
Cron-based task scheduling via robfig/cron. Human-readable syntax, no external cron daemon, overlap prevention.
Event System
Publish-subscribe event dispatcher with typed listeners. Decouple business logic with domain events.
Plugin System
Extend the framework with a clean, composable plugin architecture. Register hooks, middleware, and routes from plugins.
Caching
3 backends: Redis, in-memory, file-based. Get/set/forget/flush API with TTL support and cache tags.
SMTP email sending via go-mail with HTML templates, attachments, CC/BCC, and queue integration for async delivery.
File Storage
Local filesystem and Amazon S3 drivers with a unified upload, download, and delete API.
i18n Localization
JSON-based translations with locale detection, fallback chains, and translation files for multi-language support.
Advanced & DevOps
GraphQL, API versioning, Prometheus, health checks, Docker, Caddy, CLI scaffolding.
GraphQL Server
Integrated GraphQL endpoint with GraphiQL playground. Define schemas, resolvers, and subscriptions with type-safe Go code.
API Versioning
URL-based and header-based API versioning with route group support for maintaining backward compatibility.
Prometheus Metrics
Built-in /metrics endpoint. Request duration, status codes, and custom counters for Grafana dashboards.
Health Checks
Liveness and readiness endpoints for load balancers, Kubernetes probes, and uptime monitoring.
Code Scaffolding
Generate controllers, models, services, providers, and migrations with make:* CLI commands. Customizable templates.
Admin Panel Scaffolding
Generate admin CRUD interfaces with list, create, edit, delete views and API endpoints.
Docker Deployment
Multi-stage Dockerfile for minimal production images. Docker Compose for local development with all services.
Caddy Integration
Auto-HTTPS, HTTP/2, subdomain routing. Production-ready reverse proxy configuration included.
Graceful Shutdown
Signal handling for clean shutdown. Drain active connections, finish queue jobs, close database connections.
New in v2.8.0
LatestEnhanced pagination and multi-channel notification dispatch.
Pagination (Offset + Cursor)
Enhanced pagination with both offset-based Paginate() and cursor-based CursorPaginate(). Base64 cursors, next/prev direction, HasMore detection for infinite scroll UIs.
Notification System
Multi-channel notification dispatch via Notifiable interface. Database and email channels built in. Send notifications to any entity through a unified Notifier API.
Ready to build?
Get started with RapidGo in seconds. Read the docs, explore the code, or see how it compares.