Hacker GitHub

← All repos

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

Mentions per year 29 mentions · busiest year 2017 (8)
20082026
  1. Similar vibe, but battle tested and quite popular: https://github.com/go-chi/chi
  2. 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
  3. …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 -…
  4. …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
  5. ▲ 1
    Chi: Lightweight, idiomatic and composable router for building Go HTTP services
    story by thunderbong · 2024-02-02 · 0 comments
  6. …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
  7. …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?
  8. …handler middleware, which is perfectly valid and what most people are doing anyway. Something like: https://github.com/go-chi/chi/blob/master/middleware/recover...
    comment by Thaxll · 2022-11-18 · in Go Style
  9. 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 (…
  10. …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…
  11. …I would recommend chi for those who want something that plays nicely with the standard library: https://github.com/go-chi/chi
  12. …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
  13. …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.
  14. …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
  15. …conventions, so it's very interoperable and would be easy to migrate away from, if necessary. [0]: https://github.com/go-chi/chi
  16. ▲ 2
    Chi: Advanced HTTP Router for Go
    story by omeid2 · 2018-06-16 · 0 comments
  17. 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
  18. * 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:…
  19. https://github.com/go-chi/chi
  20. …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 -…
  21. Not a full blown framework, but Chi works pretty well - https://github.com/go-chi/chi
  22. 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.
  23. https://github.com/go-chi/chi
  24. 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
  25. 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
  26. …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…
  27. 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…
  28. …Edit: Adding another one (thanks buro9!) that is used in production by CloudFlare: https://github.com/pressly/chi
  29. ▲ 13
    Chi: Small, fast and expressive router/mux for Go built with net/context
    story by im_dario · 2015-11-16 · 1 comment