Borrow

Open-source infrastructure

DX-First
Modern Tools

Serverless tools for developers who ship to the edge. No vendor lock-in, minimal dependencies, maximum flexibility.

01

Limiter

Powerful drop-in rate limiting for any API. One HTTP call to protect your endpoints. Scale to millions of requests on Cloudflare Workers.

View plans
POST /v1/limiter
Authorization: Bearer bw_k3y...
Response · 200
{
  "result": "success",
  "timeLeft": 60
}
02

Ms

Measure API latency from every corner of the globe. One CLI command to get p50, p90, p99 percentiles across all 30+ regions.

Explore measurements
$ borrow ms api.example.com
  Region           p50      p90      p99
  ─────────────────────────────────────────
  US East          12ms     18ms     34ms
  EU West          24ms     31ms     52ms
  Asia Pacific     89ms    112ms    156ms
03

DocVal

Validate documentation codeblocks at build-time. Installs deps, executes the code, and catches broken examples before your users do.

Quick start
docs/getting-started.mdx
```ts docval
import { limiter } from "@borrowdev/limiter";

const { success } = await limiter(
  { key: "demo", userId: "user_1" },
  { limiters: [{ type: "fixed",
    maxRequests: 10, interval: "minute" }] }
);
```
Build output
 14 codeblocks validated
 0 errors found

Fully open source.

Every line of code that powers our own APIs is public with MIT license. Fork it, self-host it, or contribute. Built in the open for developers who value transparency.

View on GitHub