Show HN: Marten – Elegant Go web framework (nothing in the way)

14 pointsposted 19 hours ago
by jackprescott

5 Comments

shizcakes

12 hours ago

Similar vibe, but battle tested and quite popular: https://github.com/go-chi/chi

jackprescott

10 hours ago

Marten is built around one simple idea: "the framework you reach for when you want nothing in the way." It keeps full stdlib purity (untouched context.Context, zero external deps) but refuses to force you into boilerplate: clean Gin-like helpers (c.JSON, c.Bind, c.Param) + production middleware included by default (gzip, CORS, secure headers, rate limiting, timeout, etc.). So you get Chi-level cleanliness with meaningful productivity gains right from the first handler—no extra packages, no compromises.

jackprescott

19 hours ago

Hey HN!

I have built this cool Go web framework Marten which is a lightweight, zero-external-dependency Go web framework built around the philosophy: "The framework you reach for when you want nothing in the way."

Key points: - Stdlib context remains untouched (no custom wrapping) - Thin *Ctx helper for ergonomics: c.JSON(), c.Bind(), c.Param(), c.Status(), etc. - Built-in production middleware: gzip, CORS, secure headers, rate limiting, timeout, recover, etc. - Radix router, route groups, graceful shutdown, context pooling

Repo: https://github.com/gomarten/marten

It's very early (v0.1.x). Feedback, questions, or thoughts on what might be missing are very welcome!

bketelsen

14 hours ago

That's clean. Nice.

jackprescott

10 hours ago

Thanks! Means a lot coming from you—glad the clean design shines through.