github.com/sethvargo/go-limiter

go-limiter

Package limiter defines rate limiting systems.

84

Decision Signals

Health score 84/100, confidence 95/100.

Strong
Maintenance 68
Adoption 93
Security 92
Maturity 94
Developer DX 83
Confidence 95

Install

go get github.com/sethvargo/go-limiter

Package Data

updated May 29, 2026
Latest versionv1.1.0
Imported by66 packages
Stars716
Forks51
Last activity6 months ago
Latest releasev1.1.0 (6 months ago)
LicenseApache-2.0
Known vuln records0

API Surface

7 symbols
SymbolKindSynopsis
Store Type type Store interface{ ... }
Store.Burst Method Burst func(ctx context.Context, key string, tokens uint64) error
Store.Close Method Close func(ctx context.Context) error
Store.Get Method Get func(ctx context.Context, key string) (tokens, remaining uint64, err error)
Store.Set Method Set func(ctx context.Context, key string, tokens uint64, interval time.Duration) error
Store.Take Method Take func(ctx context.Context, key string) (tokens, remaining, reset uint64, ok bool, err error)
ErrStopped Variable var ErrStopped = fmt.Errorf("store is stopped")

Similar Packages

Go Rate Limiting Libraries

#1 httprate

net/http rate limiter middleware

Go Rate Limiting Libraries 458 stars 256 imported-by 95% confidence
81

#2 httprl

Package httprl provides a rate limiter for http servers.

Go Rate Limiting Libraries 5 stars 56 imported-by 95% confidence
78

#3 v3

Dead simple rate limit middleware for Go.

Go Rate Limiting Libraries 2.3K stars 341 imported-by 95% confidence
77

#4 caddy-waf

Package caddywaf implements a Web Application Firewall (WAF) middleware for Caddy.

Go Rate Limiting Libraries 774 stars 0 imported-by 75% confidence
77

#5 ratelimit

A Go blocking leaky-bucket rate limit implementation

Go Rate Limiting Libraries 4.7K stars 984 imported-by 75% confidence
71