0.0.1 • Published 4 months ago

api-rate-limiter-js v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

API-Rate-Limiter

A reusable API Rate Limiter library for Node.js applications that supports both Express and NestJS frameworks. This library helps secure your backend by limiting the number of requests to your API endpoints.

Overview

my-api-rate-limiter is designed to protect your Node.js applications from excessive requests and potential abuse. It offers easy integration with Express and NestJS, providing both in-memory and Redis-based storage for flexible deployment in distributed environments.

Features

  • Express Integration: Use as middleware in your Express apps.
  • NestJS Integration: Easily integrate into your NestJS project via middleware and modules.
  • Configurable: Customize window duration, maximum request count, and error messages.
  • Redis Support: Use Redis as a backend store for distributed rate limiting.
  • Simple Setup: Minimal configuration required to get started quickly.

Installation

Install the package via npm:

npm install api-rate-limiter-js