go-chi/chi
View on GitHub ↗ ★ 23,040 Go
lightweight, idiomatic and composable router for building Go HTTP services
29 mentions on Hacker News by 27 people: 3 stories, 26 comments · first 2015-11-16 · latest 2026-01-11
20082026
-
Similar vibe, but battle tested and quite popular: https://github.com/go-chi/chi
comment by shizcakes · 2026-01-11 · in Show HN: Marten – Elegant Go web framework (nothing in the way) -
Radix Trees are (often?) used for this purpose, for example in Chi: https://github.com/go-chi/chi . Coincidentally FSTs and Radix trees share some similarities.
comment by rickette · 2025-08-18 · in Fun with Finite State Transducers -
…pull in tons of 3rd party code as well. These have Zero dependencies. It's not rare in Go land. - https://github.com/go-chi/chi 19k stars - https://github.com/julienschmidt/httprouter 16k stars - https://github.com/gorilla/mux 21k stars -…
comment by hu3 · 2025-05-09 · in Rust’s dependencies are starting to worry me -
…recoverer middleware[1] to catch any unhandled panics and return HTTP 500s in my applications. [1] https://github.com/go-chi/chi/blob/master/middleware/recover...
comment by supriyo-biswas · 2025-03-04 · in The cost of Go's panic and recover -
▲ 1
Chi: Lightweight, idiomatic and composable router for building Go HTTP servicesstory by thunderbong · 2024-02-02 · 0 comments
-
…be some recommendations for component pieces. e.g., I will need most of the essential things in https://github.com/go-chi/chi , so why bother rolling a version myself? The same goes for things like sqlx. I'm averse to leaning on a…
comment by LVB · 2023-05-23 · in How to start a Go project in 2023 -
…good lib aka micro framework that have everything you need to build modern and decent api servers. https://github.com/go-chi/chi https://echo.labstack.com/
comment by Thaxll · 2022-11-29 · in The best Go framework: no framework? -
Yeah, the idiomatic (and fast) chi router does this ( https://github.com/go-chi/chi#url-parameters , https://github.com/go-chi/chi/blob/v1.5.4/context.go#L10 ). Routing information in stored within a chi Context (…
comment by SPBS · 2022-08-15 · in Labstack/echo: High performance, minimalist Go web framework -
…provide helper functions for retrieving those variables from the context. This is what https://pkg.go.dev/github.com/go-chi/chi#URLParam does. Echo and Gin deviate from http.Handler because they want to be frameworks and stamp their…
comment by SPBS · 2022-08-15 · in Labstack/echo: High performance, minimalist Go web framework -
…I would recommend chi for those who want something that plays nicely with the standard library: https://github.com/go-chi/chi
comment by grose · 2022-08-15 · in Labstack/echo: High performance, minimalist Go web framework -
…React) and it’s just updating state via API calls [1] https://github.com/routerify/routerify [2] https://github.com/go-chi/chi
comment by rmdashrfstar · 2020-07-05 · in Choosing a Rust web framework -
…with Gin and when asking about alternatives in a local Go meetup I was given the advice to use https://github.com/go-chi/chi or gorilla/mux.
comment by PhilippGille · 2019-08-15 · in Ask HN: Is there a project based book or course on Go for writing web APIs? -
…https://github.com/go-kit/kit Web glue frequently recommended around here: https://github.com/go-chi/chi Github pages like https://github.com/avelino/awesome-go have become a good starting point for finding interesting projects.
comment by swah · 2018-07-27 · in Russ Cox on Go dependency management -
…conventions, so it's very interoperable and would be easy to migrate away from, if necessary. [0]: https://github.com/go-chi/chi
comment by someone13 · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
▲ 2
Chi: Advanced HTTP Router for Gostory by omeid2 · 2018-06-16 · 0 comments
-
I only looked at it briefly on my phone but I don’t really see a huge difference to something like https://github.com/go-chi/chi/blob/master/README.md here that also comes with a middle ware to do all the error handling is you need that.…
comment by dewey · 2018-02-03 · in Build HTTP APIs Quickly with Go -
* Standard library for a lot of things. * https://github.com/go-chi/chi is pretty good. I have a need for a lot of custom middlewares, so I need something more fleshed out than net/http. * All config files are written in TOML:…
comment by didip · 2017-12-05 · in Ask HN: What is your Golang web-dev tech stack? -
https://github.com/go-chi/chi
comment by atis · 2017-12-05 · in Ask HN: What is your Golang web-dev tech stack? -
…some additional infrastructure for table stakes. Here's my standard Nulladmin.com stack: Routing - https://github.com/go-chi/chi Command flags - https://github.com/spf13/pflag Config - https://github.com/spf13/viper Logging -…
comment by programd · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
Not a full blown framework, but Chi works pretty well - https://github.com/go-chi/chi
comment by ollieco · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
Chi gives us just enough while still adhering to all the Golang standards: https://github.com/go-chi/chi Do augment it a bit here and there with other libraries.
comment by nicpottier · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
https://github.com/go-chi/chi
comment by cristaloleg · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
Another great 3rd party router is Chi. https://github.com/pressly/chi My company uses httprouter, but if Chi had been available when we started, we'd have used that instead. It follows Go's standard library API (httprouter diverges a…
comment by hellcow · 2017-02-16 · in Go 1.8 Release Notes -
If you want HTTP/2 support Chi[0] can probably help. It's plenty snappy too. [0]: https://github.com/pressly/chi
comment by daenney · 2017-02-10 · in Go Web Examples -
…modern expectations, such as httprouter ( https://github.com/julienschmidt/httprouter ) or chi ( https://github.com/pressly/chi ). These libraries also support middleware wrapping [1], a technique that the default mux supports but doesn't…
comment by lobster_johnson · 2016-12-24 · in Writing web applications using only the Go Standard Library -
My favourite current HTTP request router is https://github.com/pressly/chi The list of those using it in production includes: - Pressly - Cloudflare - Heroku - 99designs - Origami - IT Jobs Watch - CrowdRiff At Cloudflare it's our default…
comment by buro9 · 2016-12-05 · in Mux – A lightweight, fast HTTP request router for Go -
…Edit: Adding another one (thanks buro9!) that is used in production by CloudFlare: https://github.com/pressly/chi
comment by SEJeff · 2016-12-05 · in Mux – A lightweight, fast HTTP request router for Go -
▲ 13
Chi: Small, fast and expressive router/mux for Go built with net/contextstory by im_dario · 2015-11-16 · 1 comment