h
httprouter
High performance HTTP router for Go
A lightweight high performance HTTP request router for Go. Zero garbage allocation routing with radix tree structure for maximum performance.
16K
GitHub Stars
none
TypeScript
easy
Learning Curve
4.3
DX Score
Pricing
Model
free
Free Tier
BSD-3-Clause licensed, fully open source
Features
- ✓ Zero allocations
- ✓ Radix tree routing
- ✓ Named parameters
- ✓ Catch-all parameters
- ✓ Trailing slash handling
- ✓ Path auto-correction
- ✓ Panic recovery
- ✓ OPTIONS handling
- ✓ 405 responses
Pros
- + Extremely fast
- + Zero garbage
- + Lightweight
- + Simple API
- + Battle tested
Cons
- - Just a router
- - No middleware built-in
- - Less flexible than mux
- - Minimal features
Best For
startup indie hacker
Alternatives
backend router performance minimal zero-alloc