Throttler

screenshot of Throttler
express
nestjs

A rate limiting module for NestJS to work with Fastify, Express, GQL, Websockets, and RPC

Overview:

The Rate-Limiter for NestJS is a useful package that allows users to control the rate of requests being made to a NestJS application, without regard to the context. It provides features like ThrottlerModule which can be used to manage the rate limitation for different parts of the application. The package offers compatibility with different versions of NestJS, making it flexible for various project requirements.

Features:

  • ThrottlerModule: Allows users to set global options for time to live and the maximum number of requests for application routes.
  • Multiple Throttler Definitions: Set up multiple throttling definitions with named options for different rate limits.
  • Customization: Allows users to disable rate limiting for specific endpoints using the @SkipThrottle() decorator. The @Throttle() decorator can override global settings for tighter or looser security options.

Summary:

The Rate-Limiter for NestJS is a valuable package for managing and restricting the rate of requests to a NestJS application. With features like ThrottlerModule, customization options using decorators, and compatibility with different NestJS versions, this package provides flexibility and control over the rate limiting process within the application.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.