High-Performance Go Libraries
Production-grade. Zero CGO. Minimal dependencies.
| Library | Description | Version | Stars | Issues | PRs |
|---|---|---|---|---|---|
| coregex | Regex engine, 3-3000x faster, SIMD | ||||
| ahocorasick | Aho-Corasick multi-pattern matching |
| Library | Description | Version | Stars | Issues | PRs |
|---|---|---|---|---|---|
| fursy | HTTP router, type-safe, OpenAPI gen | ||||
| stream | SSE & WebSocket, RFC-compliant |
| Library | Description | Version | Stars | Issues | PRs |
|---|---|---|---|---|---|
| opt | Optional types for Go — SQL+JSON nullable, PATCH API | ||||
| relica | Type-safe SQL query builder | ||||
| pubsub | Pub/Sub with DLQ, backoff |
| Library | Description | Version | Stars | Issues | PRs |
|---|---|---|---|---|---|
| signals | Reactive state, Angular-inspired |
| Library | Description | Version | Stars | Issues | PRs |
|---|---|---|---|---|---|
| gxpdf | Pure Go PDF generation & manipulation |
Cross-language benchmarks on 6MB input, AMD EPYC (source, full table in the coregex README):
| Pattern | Go stdlib | coregex | Rust regex | vs stdlib |
|---|---|---|---|---|
Inner .*keyword.* |
232 ms | 0.26 ms | 13.6 ms | 893x |
| IP address | 489 ms | 0.77 ms | 13.5 ms | 635x |
| Email validation | 257 ms | 0.55 ms | 0.26 ms | 467x |
Suffix .*\.txt |
236 ms | 1.79 ms | 13.7 ms | 132x |
Faster than Rust regex on 6 of 12 patterns, e.g. inner literals (52x), IP addresses (17.6x), suffixes (7.7x). 16 search strategies, SIMD prefilters, O(n) guaranteed — no backtracking, no ReDoS.
var users []User
err := db.Select("id", "name").
From("users").
Where(relica.And(
relica.Eq("status", "active"),
relica.GreaterThan("age", 18),
)).
OrderBy("created_at DESC").
Limit(10).
WithContext(ctx).
All(&users)Advanced features: JOINs, subqueries, CTEs, window functions. Batch INSERT 3.3x faster than individual inserts.
router := fursy.New()
// Plain handler, path parameter
router.Handle("GET", "/users/:id", func(c *fursy.Context) error {
return c.OK(map[string]string{"id": c.Param("id")})
})
// Type-safe handler: request body bound (and validated), response typed
router.POST("/users", func(c *fursy.Box[CreateUserRequest, UserResponse]) error {
user := createUser(c.ReqBody)
return c.Created("/users/"+user.ID, user)
})Built-in OpenAPI 3.1 generation, RFC 9457 errors, pluggable validation, minimal dependencies.
- Zero CGO — Simple
go build, no C compiler needed - Minimal Dependencies — Only what's absolutely necessary
- Production-Grade — Battle-tested, well-documented, maintained
- Modern Go — Generics where useful; each library states its minimum Go version in its
go.mod
| Project | Description | Using |
|---|---|---|
| uawk | Ultra AWK interpreter, faster than GoAWK on all 16 benchmarks, parallel file processing | coregex |
We welcome contributions! See individual repository CONTRIBUTING.md files.
Areas where we need help:
- Real-world testing and bug reports
- Documentation and examples
- Performance optimization ideas
All projects are licensed under the MIT License.
Production-grade Go libraries for demanding applications
github.com/coregx