Set and enforce API response time budgets
Monitor every endpoint. Define performance budgets. Get instant alerts and automatic throttling when your APIs slow down — before your users notice.
// Install the SDK
npm install @rtbudget/sdk
// Wrap your handler
import { withBudget } from '@rtbudget/sdk';
export default withBudget(handler, { budget: 200 });
Simple pricing
Pro
$12
per month
- ✓Unlimited endpoints monitored
- ✓JavaScript SDK included
- ✓Real-time Slack & webhook alerts
- ✓Automatic throttling rules
- ✓30-day response time history
- ✓Priority email support
FAQ
How does the SDK work?
Wrap your API handlers with withBudget(). The SDK measures response time on every request and reports to our dashboard. If a request exceeds your configured budget, it triggers an alert and optionally returns a 503 to protect downstream services.
What happens when a budget is exceeded?
You receive an instant alert via webhook or Slack. You can also configure automatic throttling — the SDK will start rejecting requests to the slow endpoint until response times recover, preventing cascading failures.
Which frameworks are supported?
The SDK works with any Node.js framework — Express, Fastify, Next.js API routes, Hono, and more. It's a thin wrapper with zero dependencies and under 2 KB gzipped.