Open Source

Free, Self-Hosted URL Shortener
on Cloudflare Workers.

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.
What You Get

Built for Developers

shrtnr analytics dashboard

Zero Infrastructure

Runs entirely on Cloudflare's free tier. Workers handle compute, D1 handles storage. No servers to maintain.

3-Character Slugs

175,616 unique combinations out of the box. Short enough to fit anywhere.

Vanity Slugs

Human-readable aliases like /my-blog-post alongside random slugs. One link, multiple entry points.

Click Analytics

Per-click tracking with referrer, country, device, and browser. Know exactly how your links perform.

Admin Dashboard

Link management, analytics charts, QR code generation. Everything from the browser.

TypeScript SDK

The @oddbit/shrtnr npm package for programmatic link management from any TypeScript project.

MCP Server

AI assistant access through the Model Context Protocol. Let your LLM manage links directly.

Cloudflare Access Auth

SSO via Google, GitHub, OTP, SAML, or any identity provider. Zero auth code in the worker.

One-Click Deploy

Click the button, get a running instance. Fork, D1 database, and Worker created automatically.

SDK and MCP Server.

Manage links from code or from your AI assistant. The TypeScript SDK and the MCP server expose the same API through two interfaces.

  • MCP Server for AI Assistants
  • Full REST API
  • TypeScript SDK on npm
shrtnr link management dashboard

The Edge Advantage

Global Redirect Latency
<10ms

Cloudflare's edge network resolves links at the nearest point of presence. 250+ locations worldwide, no cold starts.

Data Sovereignty

Your links, your data, your database. Host on your own Cloudflare account. No third-party touches your PII.

Infrastructure as Code

Version control your redirects. Sync via CI/CD. Treat shortlinks like you treat your microservices.

wrangler.tomlshrtnr.yaml

Long-Term Reliability

You own the domain and the logic. No platform risk, no link rot. Your assets stay under your control.

API Key Management Included
shrtnr API key management

Get Started
in Minutes.

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

CloudflareWorkersD1
google-cloud-partner

Tell Us About Your Project