juju/ratelimit
Efficient token-bucket-based rate limiter package. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
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: 4563
- days_rel: n/a
- days_push: 1063
- n_releases_24m: 0
Adoption not part of the score
2884 stars · 315 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library implementing an efficient, concurrency-safe token-bucket rate limiter. It supports blocking and non-blocking token consumption plus rate-limited io.Reader and io.Writer wrappers.
Use cases
- rate limit API requests in Go
- throttle bandwidth of a reader or writer
- implement token bucket pacing
- limit how fast a program consumes resources
- cap request rates per client
- smooth out bursty traffic
When to choose
- you need a small, dependency-free token bucket in Go
- you want to rate-limit byte streams via io.Reader/io.Writer
- you need both blocking and non-blocking take semantics
When to avoid
- you need distributed rate limiting across multiple instances
- you need per-key or sliding-window policies rather than a single bucket
- you are not using Go
Facets
library · maturity stable
rate-limiting developer-tools backend performance go cross-platform token-bucket throttling io-rate-limiting concurrency-safe
1 source
- readme: https://github.com/juju/ratelimit · fetched 2026-08-28 · 0276b9f03adc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| juju/ratelimit | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem