justinas/alice
Painless middleware chaining for Go observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4483
- days_rel: n/a
- days_push: 818
- n_releases_24m: 0
Adoption not part of the score
3364 stars · 152 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Alice is a tiny Go library for chaining HTTP middleware functions and an application handler into a single http.Handler. It transforms nested middleware wrapping into a readable, declarative chain with alice.New(...).Then(handler).
Use cases
- chain http middleware in go
- compose middleware functions for net/http handlers
- build a middleware pipeline for a go web server
- replace nested middleware wrapping with readable code
- apply logging, csrf, and throttling middleware to a handler
- wrap http handlers with reusable middleware
When to choose
- you use net/http and want minimal, dependency-free middleware chaining
- your middleware follows the func(http.Handler) http.Handler signature
- you want a stable, widely-adopted library with almost no code
When to avoid
- you use a full web framework that already includes middleware chaining
- you need middleware with per-route configuration or context injection beyond plain wrapping
- you need guarantees about middleware execution order or behavior
Facets
library · maturity stable
middleware http-server web-framework web-development backend developer-tools go cross-platform http-middleware handler-chaining minimal-library net-http web-server
5 sources
- readme: https://github.com/justinas/alice · fetched 2026-08-28 · fb42dbe175b6
- homepage: https://godoc.org/github.com/justinas/alice · fetched 2026-08-29 · 9922cf07a781
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://pkg.go.dev/github.com/justinas/alice · fetched 2026-08-29 · 81759091ab3d
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| justinas/alice | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem