Skip to content

goxWrite Go like you know Node

A premium toolkit for JavaScript developers — Express-style HTTP, lodash collections, Zod validation, Knex queries, and 38 independent packages. Idiomatic Go underneath.

gox — Node-friendly Go toolkit
38
Packages
267+
Documented APIs
10
Migration guides
Go 1.25
Generics & context-first

Explore packages

Side-by-side: the gox difference

Every API reference includes a three-way comparison. Here is a taste:

js
const adults = users
  .filter(u => u.age >= 18)
  .map(u => ({ ...u, label: u.age >= 21 ? 'legal' : 'minor' }));
go
var adults []User
for _, u := range users {
    if u.Age < 18 {
        continue
    }
    label := "minor"
    if u.Age >= 21 {
        label = "legal"
    }
    adults = append(adults, User{ /* copy fields */, Label: label })
}
go
import (
    "github.com/sahilkhaire/gox/cond"
    "github.com/sahilkhaire/gox/slice"
)

adults := slice.Map(
    slice.Filter(users, func(u User) bool { return u.Age >= 18 }),
    func(u User) User {
        u.Label = cond.If(u.Age >= 21, "legal", "minor")
        return u
    },
)

Install in seconds

bash
go get github.com/sahilkhaire/gox

New from Node.js?

Start with the Getting Started guide, then jump to the package you used most in npm — http, client, or slice.

MIT Licensed · Built for Node.js developers moving to Go