Skip to content

[ADVANCED] Integrate Existing Rate Limiter Middleware Across Backend APIs #123

@ash1shkumar

Description

@ash1shkumar

🚀 Description

A rate limiter utility already exists in the project but is currently unused in backend routes and APIs.

Without rate limiting, APIs remain vulnerable to spam requests and abuse.


📍Affected Files

  • frontend/lib/rateLimiter.ts
  • Backend API routes and controllers

❌ Current Problem

A rate limiter is defined but never connected to APIs.

This allows unlimited repeated requests to:

  • chat APIs
  • task creation APIs
  • realtime features

✅ Expected Solution

  • Integrate rate limiter middleware into backend routes
  • Apply limits to sensitive APIs
  • Handle rate-limit exceeded responses properly

Example:

await rateLimiter.consume(ip);

🎯 Expected Outcome

  • Reduced spam and abuse
  • Improved backend stability
  • Better API protection

🏷️ Expected Labels

level3 NSoC'26

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions