Skip to content

shrtnrSelf-hosted URL shortener

Free and open-source, running on Cloudflare Workers + D1. Zero servers, zero monthly cost, and your data stays yours.

shrtnrshrtnr

What is shrtnr

shrtnr is a free, open-source, self-hosted URL shortener built on Cloudflare Workers + D1. It ships with a full admin UI, click analytics, SDKs in three languages, and an MCP server for AI assistants, all from a single Cloudflare Worker.

NOTE

This repository is an independently maintained fork (wyf9/shrtnr) that adds custom features and enhancements on top of the upstream oddbit/shrtnr. This documentation is written for this fork.

Why shrtnr

Most URL shorteners either lock you into a SaaS with per-click pricing or require you to run a VPS. shrtnr runs on the Cloudflare Workers + D1 free tier. You own your data, your domain, and your short links.

It takes one click to deploy. You then get a full admin UI, click analytics, SDKs for TypeScript, Python, and Dart, and an MCP server for AI assistants, all from a single Worker.

Next steps

Released under the Apache License 2.0. Upstream built by Oddbit.