Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@hyperttp/ratelimit

English | Русский

Rate limiting plugin for Hyperttp.

Features

  • Limits request throughput in the Core v2 pipeline.
  • Supports protocol-neutral SendRequest, UniversalResponse, and RequestContext values.
  • Helps keep client traffic within downstream service limits.

Installation

npm install @hyperttp/ratelimit
# or
bun add @hyperttp/ratelimit

Usage

import { HyperClient } from "hyperttp";
import { withRateLimit } from "@hyperttp/ratelimit";

const client = new HyperClient({
  plugins: [withRateLimit()],
});

Configure the plugin with the exported RateLimitOptions type.

License

MIT © dirold2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages