# ulule/limiter

Dead simple rate limit middleware for Go.

Repository: https://github.com/ulule/limiter
Canonical: https://ross.abutalabs.com/products/limiter
Language: Go
License: MIT
License Family: permissive
Last push: 2024-12-10T12:15:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3988, "days_push": 631, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2343, forks 163 (observed 2026-08-28T04:06:39.192797+00:00)

## What it is
A dead-simple rate limiting middleware library for Go supporting HTTP, FastHTTP, and Gin. It uses a pluggable store approach with built-in Redis and in-memory backends.

## Use cases
- rate limit http requests in go
- add rate limiting middleware to gin
- throttle api requests per ip
- distributed rate limiting with redis
- limit requests per hour or day
- protect api from abuse

## When to choose
- you need simple, well-tested rate limiting in a Go web service
- you want Redis-backed distributed rate limiting
- you use net/http, Gin, or FastHTTP

## When to avoid
- you need advanced algorithms like sliding window or token bucket with complex rules
- you're not using Go
- you need rate limiting at the API gateway or proxy level

## Facets
- artifact type: library
- maturity: stable
- function: rate-limiting, middleware, http-server, caching
- domain: web-development, backend, apis, security
- platform: go, windows, cross-platform
- tags: rate-limiter, redis, gin, fasthttp, http-middleware, linux, macos

## Member repositories
- ulule/limiter (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:39.192797+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:15.891064+00:00, confidence not recorded.
  - readme: https://github.com/ulule/limiter (fetched 2026-08-28T04:06:39.192797+00:00, sha 2a5ebe3e9a73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
