FeaturesStandaloneStarter KitsCLILocal DevProductionBlogLearnDocumentation
v0.96.2pre-1.0

~/acme $ go version › go1.26+

The full‑stack framework for GO

Routing, ORM, auth, cache, queues, mail, storage, and more.

One unified framework API. Learn once, use across every service.

brew install --cask velocitykode/tap/velocity
velocity - intro0:53
$ velocity new acme
  full stack · react · sqlite · memory
 Creating project
  ✓ template · module · git · migrations · .env
 Installing dependencies
  ├─ go modules   ✓ done
  ├─ js packages  ✓ 50 installed
  └─ vel binary   ✓ built
 Running migrations
  ✓ create_users · create_cache · create_jobs
✓ Project ready

$ cd acme && vel serve
 App   http://localhost:4000
 Vite  http://localhost:5173
  GET  /   200   1.2ms
$ 
Watch the intro
Stop Gluing Go Libraries Together. Meet Velocity.
Features

Everything you need, nothing you don't

Velocity is packed with production-ready features designed to accelerate your Go development.

Batteries Included

30+built-in services working together out of the box.
RoutingORMAuthCacheQueueMailWebSocket
StorageSchedulerEventsValidationNotificationsHTTP ClientCryptoLogging
BroadcastinggRPCMiddlewareMigrationsTestingCSRFViewsTracing

Broadcasting

Real-time channels with WebSocket driver and presence tracking.

HTTP & gRPC

Full HTTP server with gRPC support, gateway, interceptors, and health checking.

Authentication

  • Session and JWT schemes
  • Access checks with policy delegation
  • ORM-backed user store
  • Per-route authorization

Queues & Jobs

  • Jobs as simple Go structs
  • Memory, Redis, Database drivers
  • Retries and failed job tracking
  • Delayed and inline dispatch

Events & Scheduler

  • Event dispatching with listeners
  • Queued event handling
  • Cron-like task scheduling
  • Daily, weekly, custom intervals
// every day at 02:00
s.Call(pruneSessions).DailyAt("02:00")
// SendWelcome embeds events.QueuedBaseListener
events.Listen(UserRegistered{}, &SendWelcome{})
Driver swapping

SQLite in dev, Postgres in prod. One env var.

Database, cache, queue, storage, and mail each ship pluggable drivers, configured by environment variables. Swap backends without touching application code.

.env

development

DATABASE_DRIVER=sqlite
CACHE_DRIVER=memory
QUEUE_DRIVER=memory
STORAGE_DRIVER=local
MAIL_DRIVER=local

production

DATABASE_DRIVER=postgres
CACHE_DRIVER=redis
QUEUE_DRIVER=redis
STORAGE_DRIVER=s3
MAIL_DRIVER=postmark
Builtin ORM

Type-safe queries. Same code, three databases.

Generic models with a fluent query builder. Define your schema once and query it with full type safety across PostgreSQL, MySQL, and SQLite.

internal/handlers/posts.go
type Post struct {
    orm.Model[Post]
    Title  string `orm:"column:title"`
    UserID uint   `orm:"column:user_id"`
}

posts, err := Post{}.
    Where("user_id = ?", userID).
    With("User").
    Get(ctx)
// []Post on SQLite, Postgres or MySQL
Secure by default

Default-deny cross-origin. Hardened on day one.

Security headers, HTTPS redirect, CORS, CSRF, and rate limiting - all built in with safe defaults. Cross-origin requests are denied until you explicitly allow them.

curl -I localhost:4000
HTTPS redirectCORSCSRFRate limitSecurity headers
HTTP/1.1 200 OK
strict-transport-security: max-age=63072000; includeSubDomains
content-security-policy: default-src 'self'
x-content-type-options: nosniff
x-frame-options: DENY
referrer-policy: strict-origin-when-cross-origin
permissions-policy: camera=(), microphone=(), geolocation=()
See advanced features docs
Standalone

Full stack. Or just the part you need.

Every subsystem is its own Go package. Take the whole framework with velocity.New(), or import one package into any Go program and use it on its own.

your programeverything wired
velocity.New()everything wired
router
orm
auth
queue
mail
storage
events
scheduler

Built from .env and config/, handed to you as one app. Pick a package to take it alone.

importgithub.com/velocitykode/velocity+router
v, err := velocity.New() // reads .env and config/

v.Router.Get("/", func(c *router.Context) error {
  return c.String(200, "hello")
})
v.Serve()

One module, one go get. Heavy drivers stay in leaf packages.

fits inlibrariesCLIsscriptstestsMCP servers
See standalone packages docs
Starter Kits

One command. Full stack. Hot reload, both sides.

The stack and the DX that engineers actually want - auth and dashboard pre-wired.

frontend
  • React 19.tsxJSX + hooks
    Vue 3.vueSFC + composition
  • Inertia 3SSR optional, same Go controller either way
  • Vite + TypeScriptHMR out of the box
backend
  • Go binaryrebuilt on every save
    vel servewatches your Go code
  • SQLite, Postgres, or MySQLpicked at scaffold time
  • Memory or Redis cachepicked at scaffold time
api

Just the API. No frontend.

For services that only serve JSON. No Vite, no package.json - the binary is the whole deployable.

$ velocity new myapi --api
  • JWT auth stateless, CSRF off
  • JSON on every response
  • /health and /api/health
  • same layout minus the frontend
See starter kits docs
vel · code gen

One CLI. Local dev, at its happiest.

vel generates handlers, models, migrations, and jobs the way Velocity expects - then runs your dev server, queues, and migrations from the same place.

15 commands · 5 categories

generators4
vel gen handler post
internal/handlers/post.go
vel gen model user
internal/models/user.go
vel gen migration posts
database/migrations/<ts>_posts.go
vel gen job send_email
internal/jobs/send_email.go
database4
vel migrate
run pending migrations
vel migrate rollback
revert the last batch
vel migrate fresh
drop all tables, re-run
vel migrate status
show migration state
background2
vel queue work
process queued jobs
vel schedule work
run scheduler ticks
server2
vel serve
dev server with hot reload
vel build
compile production binary
inspect3
vel routes
print registered routes
vel cache clear
flush cache stores
vel key generate
write APP_KEY to .env
See vel command docs
Local Development

Save the file. Watch it land.

One vel serve runs Go and Vite and watches your source. Pick a change and watch what reacts - and what doesn't.

nvim
1func Home(ctx *router.Context) error {
2  view.Render(ctx, "Home", view.Props{
3    "message": "Welcome to Velocity",
4  })
5  return nil
6}
NORMALhome.gointernal/handlers/home.gogo
↻localhost:4000⌘R
velocity_Welcome to Velocity
server restarted - page is stale
vel serve
Starting Vite (bun run dev)...
Starting on port 4000 with hot reload...
zsh
$
go:4000pid 48213vite:5173up[acme] 0:nvim* 1:dev
See local development docs
Production

Production-ready features, right out of the box

Everything you need to build, test, and deploy - no third-party packages required.

01

Testing

Built-in test helpers with in-memory services, type-safe model factories, fake dispatchers, and database helpers for setup and teardown.

02

Migrations

Fluent migration system with a table builder API, batch tracking, and rollback support. Driver-aware for PostgreSQL, MySQL, and SQLite.

03

Validation

Struct-based form requests and inline rules with database-aware checks. Validate once, trust everywhere.

04

Notifications

Multi-channel delivery to mail, database, broadcast, and Slack with one unified API. Send the same message everywhere your users are.

05

Encryption

AES-256-GCM with key rotation and HMAC signing helpers. Wrap secrets without rolling your own crypto.

06

Inertia Views

Server-driven frontends with the Inertia.js adapter and optional SSR. Build SPAs without splitting your stack into two.

See all docs
Get Started

Ready to build something great?

Get started with Velocity in minutes.

brew install --cask velocitykode/tap/velocity