Back to Projects
RateFence
CompletedTypeScriptNode.jsExpress.js+2 more

RateFence

A reusable, zero-infrastructure API protection engine for Node.js with rate limiting and threat detection.

Timeline

Role

Full Stack

Team

Solo

Status
Completed

Technology Stack

TypeScript
Node.js
Express.js
npm
pnpm

Overview

RateFence is a reusable, zero-infrastructure API protection engine for Node.js, distributed through npm with a framework-neutral core and a dedicated Express middleware adapter.

What I built

  • Implemented Fixed Window, Sliding Window, and Token Bucket rate-limiting algorithms with configurable route-level policies and custom client identification.
  • Engineered request protection features including CIDR-based IP access controls, concurrency limits, request size validation, and trusted proxy handling.
  • Implemented opt-in threat detection, temporary client blocking, and event-driven observability using authentication and request signals.

Design & Developed by Ali Sher Khan
© 2026. All rights reserved.