A free, self-hosted URL shortener on Cloudflare Workers + D1. Sub-10ms redirects worldwide, full data ownership, and self-hosted on your Cloudflare account.
shrtnr deploy --edge-only
# Detecting configuration...
{✓} Workers: shrtnr-main
{✓} KV Store: SHRTNR_DB
{✓} Region: Global (250+ PoPs)
Infrastructure synced.
Your domain is now active.
Runs entirely on Cloudflare's free tier. Workers handle compute, D1 handles storage. No servers to maintain.
175,616 unique combinations out of the box. Short enough to fit anywhere.
Human-readable aliases like /my-blog-post alongside random slugs. One link, multiple entry points.
Per-click tracking with referrer, country, device, and browser. Know exactly how your links perform.
Link management, analytics charts, QR code generation. Everything from the browser.
The @oddbit/shrtnr npm package for programmatic link management from any TypeScript project.
AI assistant access through the Model Context Protocol. Let your LLM manage links directly.
SSO via Google, GitHub, OTP, SAML, or any identity provider. Zero auth code in the worker.
Click the button, get a running instance. Fork, D1 database, and Worker created automatically.
Manage links from code or from your AI assistant. The TypeScript SDK and the MCP server expose the same API through two interfaces.

Cloudflare's edge network resolves links at the nearest point of presence. 250+ locations worldwide, no cold starts.
Your links, your data, your database. Host on your own Cloudflare account. No third-party touches your PII.
Version control your redirects. Sync via CI/CD. Treat shortlinks like you treat your microservices.
You own the domain and the logic. No platform risk, no link rot. Your assets stay under your control.

Ready to own your link infrastructure? Deploy to Cloudflare and go live.

Tell Us About Your Project