Skip to content
@coregx

coregx

High-Performance Go Libraries — Regex, SQL, HTTP, Messaging. Zero CGO.

coregx

High-Performance Go Libraries
Production-grade. Zero CGO. Minimal dependencies.

Go Version License Zero CGO


Ecosystem

Text Processing

Library Description Version Stars Issues PRs
coregex Regex engine, 3-3000x faster, SIMD
ahocorasick Aho-Corasick multi-pattern matching

Web & HTTP

Library Description Version Stars Issues PRs
fursy HTTP router, type-safe, OpenAPI gen
stream SSE & WebSocket, RFC-compliant

Data & Messaging

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

Reactive

Library Description Version Stars Issues PRs
signals Reactive state, Angular-inspired

Documents

Library Description Version Stars Issues PRs
gxpdf Pure Go PDF generation & manipulation

Highlights

coregex — 3-3000x Faster Regex

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.

relica — Type-Safe SQL

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.

fursy — Modern HTTP Router

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.


Philosophy

  • 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

Powered by coregx

Project Description Using
uawk Ultra AWK interpreter, faster than GoAWK on all 16 benchmarks, parallel file processing coregex

Contributing

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

License

All projects are licensed under the MIT License.


Production-grade Go libraries for demanding applications
github.com/coregx

Pinned Loading

  1. coregex coregex Public

    Pure Go production-grade regex engine with SIMD optimizations. Up to 3-3000x+ faster than stdlib.

    Go 300 9

Repositories

Showing 10 of 10 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…