openflarestack Star this repo
  1. Catalog
  2. Link shorteners
  3. shrtnr
Ranked 108 of 234

shrtnr

oddbit/shrtnr

Link shortener with per-user ownership, campaign bundles, a REST API and a built-in MCP server.

A self-hosted alternative to Bitly.

What it sets up in your account

  • D1
    D1 database
    A SQL database for the app’s records.
  • KV
    KV namespace
    A key value store for settings and fast lookups.
  • DO
    Durable Objects
    Keeps live sessions and realtime state.
Category
Link shorteners
Licence
Apache-2.0
Stars
31
Last commit
4 days ago
Latest release
app-v0.42.1

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/shrtnr.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/shrtnr.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

The Deploy button copies the repo into your GitHub. Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/oddbit/shrtnr.git
git pull upstream main
npx wrangler deploy

shrtnr questions

What is shrtnr?

Link shortener with per-user ownership, campaign bundles, a REST API and a built-in MCP server. It’s an open-source, self-hosted alternative to Bitly. It runs on Cloudflare Workers in your own account.

What does shrtnr set up in my Cloudflare account?

D1 database, KV namespace and Durable Objects. They are created in your account, so the data stays yours.

How do I deploy shrtnr?

Press Deploy to Cloudflare. Cloudflare copies the repository into your GitHub account, creates what it needs and deploys it with Workers Builds.

Is shrtnr free and open source?

Yes. It’s published under the Apache-2.0 licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update shrtnr?

Pull from the original repository and redeploy: add https://github.com/oddbit/shrtnr.git as an upstream remote, run git pull upstream main, then npx wrangler deploy.