K KestrelKV

QUICKSTART DOCUMENTATION

Provision a global namespace in 60 seconds.

Install the CLI, create a replicated namespace, and query from any edge worker or Node service using standard fetch or RESP3.

01. CLI Provisioning

Authenticate and allocate a multi-region namespace with automatic edge warming enabled.

npm install -g @kestrelkv/cli
kestrel login
kestrel namespace create sessions --regions global --eviction strict-ttl

02. TypeScript Edge SDK

Zero-dependency HTTP/3 client built for V8 isolates, Bun, Deno, and Node 22+.

import { Kestrel } from "@kestrelkv/sdk";

const kv = new Kestrel({
  endpoint: "https://edge.kestrelkv.io/v1/sessions",
  token: process.env.KESTREL_TOKEN!,
});

await kv.put("user:4812", { tier: "pro", locale: "en-US" }, {
  ttlSeconds: 3600,
  consistency: "session",
});

const profile = await kv.get("user:4812");

03. Atomic Counters & TTL

Use CRDT positive-negative counters for distributed rate limiting without cross-continent write locks.

const hits = await kv.incr("ratelimit:ip:203.0.113.19", {
  by: 1,
  ttlSeconds: 60,
});

if (hits > 120) {
  return new Response("Too Many Requests", { status: 429 });
}