Developer tools
Url-Shorten-Worker
Self-hosted URL shortener & Pastebin on Cloudflare Workers
- Category
- Developer tools
- Stage
- Growth
- For
- Developers and self-hosters who want to deploy a lightweight URL shortener and Pastebin on Cloudflare Workers.
About
Free, open-source (MIT) URL shortener and Pastebin running on Cloudflare Workers + Workers KV. One file, $0/month, 5-minute deploy.
Features
- Problem
- A self-hosted app can be difficult to deploy and maintain.
- How it works
- Packages the app in one index.js file with no build step; deployment instructions use Workers KV, wrangler.toml, and npx wrangler deploy.
- Result
- A deployable URL shortener and Pastebin with a documented setup path.
- Why
- Keep setup and ongoing ownership lightweight.
- Problem
- Users need to share text, not just URLs.
- How it works
- Pastebin mode supports text up to 10 MiB and provides plain output with ?raw=1.
- Result
- Users can share text snippets through the service.
- Why
- Offer text sharing alongside link shortening.
- Problem
- New links can be abused or lead to unsafe destinations.
- How it works
- Offers optional CAPTCHA on link creation through CAP Worker and an optional Google Safe Browsing check.
- Result
- Link creation and checking can use these optional protections.
- Why
- Provide configurable checks against spam and unsafe links.
- Problem
- Some links should not remain available indefinitely.
- How it works
- Lets users set links to expire automatically.
- Result
- Links can expire on a per-link basis.
- Why
- Give link creators control over link lifetime.
- Problem
- Users may want to avoid vendor lock-in and recurring hosting costs.
- How it works
- The project is MIT-licensed and can run on the Cloudflare Workers free tier.
- Result
- The site describes deployment at $0/month on the free tier.
- Why
- Support self-hosting and ownership of data.
Product questions
What does Url-Shorten-Worker do?
Url-Shorten-Worker is a free, open-source URL shortener and Pastebin that runs on Cloudflare Workers. It is a single-file app with no build step and can be deployed on the Workers free tier.
Who is Url-Shorten-Worker for?
Developers and self-hosters who want to deploy a lightweight URL shortener and Pastebin on Cloudflare Workers.
Screenshots
