Skip to content

Releases: rokasta12/ratelimit

v0.0.2

26 Jan 19:08

Choose a tag to compare

v0.0.1 - Initial Release

26 Jan 18:35

Choose a tag to compare

Initial Release

First public release of the @jfungus/ratelimit monorepo - a multi-framework rate limiting library for JavaScript/TypeScript.

Packages

Package Description
@jfungus/ratelimit Core library with algorithms and MemoryStore
@jfungus/ratelimit-hono Hono middleware
@jfungus/ratelimit-express Express middleware
@jfungus/ratelimit-h3 H3/Nitro middleware
@jfungus/ratelimit-nuxt Nuxt module
@jfungus/ratelimit-unstorage unstorage adapter for distributed storage

Features

  • Two algorithms: Fixed window and sliding window (Cloudflare-style)
  • Multi-framework: Works with Hono, Express, H3/Nitro, and Nuxt
  • Flexible storage: In-memory store included, with unstorage adapter for Redis, Cloudflare KV, Vercel KV, and more
  • TypeScript first: Full type support with comprehensive type definitions
  • Zero dependencies: Core package has no external dependencies

Documentation

Full documentation available at: https://rokasta12.github.io/ratelimit/

Installation

```bash

For Hono

npm install @jfungus/ratelimit-hono

For Express

npm install @jfungus/ratelimit-express

For H3/Nitro

npm install @jfungus/ratelimit-h3

For Nuxt

npm install @jfungus/ratelimit-nuxt
```