Protect your APIs
at the edge.
ShieldLimit intercepts malicious traffic bursts, enforces per-key or per-user rate limits, and gives you real-time analytics without degrading response time.
import { ShieldLimit } from "@shieldlimit/sdk";
const shield = new ShieldLimit({ apiKey: process.env.SHIELD_LIMIT_KEY });
export async function middleware(req) {
const { success, remaining, limit } = await shield.verify({
identifier: req.headers.get("x-user-id") || req.ip,
});
if (!success) {
return new Response("Too Many Requests", {
status: 429,
headers: { "X-RateLimit-Remaining": remaining.toString() }
});
}
}Five algorithms to shape your traffic.
Switch algorithms on the fly without changing code—tune precision versus performance as traffic scales.
Token Bucket
Sliding Window Log
Sliding Window Counter
Fixed Window
Leaky Bucket
Limit traffic by any identifier.
IP & Origin Whitelist
Limit public API routes by request origin IP and enforce domain whitelists directly at the edge.
User Identity
Attach rate limiters to authenticated user IDs so policies persist across devices and IP changes.
API Key Scope
Issue hashed API keys with auto-rotation rules and granular quota limits per client.
Real-time traffic visibility.
Every verification attempt is evaluated and aggregated instantly. Monitor ingress volume, allowed vs. blocked requests, and key consumption across projects.
- Per-project and per-key request breakdown
- Automated email & push alerts on threshold breach
- Domain origin CORS whitelisting controls
Engineered for security and developer speed
SHA-256 Hashing
API keys are salted and hashed. Never stored in raw text.
Domain Whitelisting
Enforce allowed origins at edge before evaluating limits.
Auto Key Rotation
Schedule automated key turnover without downtime.
Push Notifications
Get real-time alerts when rate limits or payment quotas fail.
Flexible plans for every developer
Free
For side projects and evaluation.
- Up to 2 active projects
- Standard rate limiting algorithms
- IP-based origin checks
- Basic traffic analytics
- Community support
Pro
For growing production applications.
- Unlimited projects
- All 5 rate limiting algorithms
- Automated key rotation
- Domain origin whitelisting
- Push & email alert triggers
- Priority analytics dashboard
Enterprise
For heavy production workloads.
- Everything in Pro
- High-volume limit quotas
- Dedicated Redis edge throughput
- Custom CORS & security rules
- 24/7 Priority support
Protect your application in under 5 minutes.
Start for free with zero credit card required.
Start Free