← Back to all products

⚡ WebSocket Rate Limiter

Production-ready rate limiting for Node.js WebSocket servers. Stop abuse, protect your infrastructure.

$19

One-time purchase • Full source code • MIT license

Why You Need This

❌ Building It Yourself

  • 4-8 hours of development
  • Edge cases you'll discover in production
  • No tests until something breaks
  • Memory leaks from improper cleanup
  • Scaling issues with naive approaches

✅ This Package

  • Copy, paste, done in 5 minutes
  • 45+ tests covering edge cases
  • Memory-efficient token bucket
  • Redis adapter for horizontal scaling
  • Production-hardened code

Features

🪣 Token Bucket

Smooth rate limiting with burst allowance. Perfect for APIs and real-time apps.

📊 Sliding Window

Precise request counting over time windows. No boundary spikes.

🔗 Per-Connection Limits

Rate limit individual connections independently. Fair usage for all.

🌐 Global Limits

Protect your server from coordinated attacks with global rate limits.

📦 Redis Support

Scale horizontally with the included Redis adapter. Cluster-ready.

📝 Full TypeScript

Complete type definitions. IntelliSense support out of the box.

Quick Start

import { RateLimiter } from './rate-limiter';

// Create limiter: 100 requests per minute
const limiter = new RateLimiter({
  maxRequests: 100,
  windowMs: 60000,
  strategy: 'sliding-window'
});

// In your WebSocket handler
ws.on('message', (msg) => {
  if (!limiter.check(connectionId)) {
    ws.send('Rate limited. Try again later.');
    return;
  }
  // Process message...
});

What's Included

💯 30-Day Money-Back Guarantee
If this doesn't save you hours of development time, get a full refund. No questions asked.

Get Instant Access

Download the complete package immediately after payment

Buy Now - $19 with PayPal

Or send $19 via PayPal to: vandan@getfoolish.com
Include your email in the note for instant delivery

🔒 Secure Payment
Instant Delivery
💯 30-Day Guarantee