Releases: rokasta12/ratelimit
Releases · rokasta12/ratelimit
v0.0.2
Full Changelog: v0.0.1...v0.0.2
v0.0.1 - Initial Release
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
```