<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Edge Notes]]></title><description><![CDATA[Edge Notes]]></description><link>https://wrkrlnks.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 00:03:23 GMT</lastBuildDate><atom:link href="https://wrkrlnks.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Host your own URL shortener + pastebin for $0 in 5 minutes with Cloudflare Workers]]></title><description><![CDATA[Self-hosted URL shortener and pastebin on Cloudflare Workers - one file, MIT licensed, runs on the free plan.]]></description><link>https://wrkrlnks.hashnode.dev/host-your-own-url-shortener-pastebin-for-0-in-5-minutes-with-cloudflare-workers</link><guid isPermaLink="true">https://wrkrlnks.hashnode.dev/host-your-own-url-shortener-pastebin-for-0-in-5-minutes-with-cloudflare-workers</guid><category><![CDATA[cloudflare]]></category><category><![CDATA[#selfhosted]]></category><category><![CDATA[Url Shortener]]></category><category><![CDATA[serverless]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[uswgrowth]]></dc:creator><pubDate>Mon, 23 Nov 2026 09:04:44 GMT</pubDate><content:encoded><![CDATA[<p>I've been running a personal link shortener + text pastebin on Cloudflare's free tier for a while now. Total cost: $0/month. Total code: one file.</p>
<p>It's called <strong>Url-Shorten-Worker</strong> (MIT, ~1.8k GitHub stars) and it runs entirely on Cloudflare Workers with Workers KV for storage. No server, no database, no VPS bill.</p>
<p>Repo: <a href="https://github.com/xyTom/Url-Shorten-Worker">https://github.com/xyTom/Url-Shorten-Worker</a></p>
<h2>What you get</h2>
<ul>
<li><strong>Short links</strong> on your own domain — custom paths, per-link expiry</li>
<li><strong>Pastebin mode</strong> — paste text up to 10 MiB, share a link; <code>?raw=1</code> serves the raw text, which makes it handy for piping into curl scripts</li>
<li><strong>Optional CAPTCHA</strong> on the submit form via CAP Worker</li>
<li><strong>Optional Safe Browsing</strong> checks on submitted URLs via a Google API key</li>
<li>Docs in <strong>English and Chinese</strong></li>
</ul>
<h2>Why not bit.ly / a SaaS?</h2>
<p>Mostly control: your links live in your own KV namespace on your own domain, so they don't die when a free SaaS shuts down or starts rate-limiting. And if you're already in the Cloudflare ecosystem it's a natural fit — same dashboard, same free plan.</p>
<h2>Deploy in ~5 minutes</h2>
<ol>
<li>Create a Workers KV namespace in the Cloudflare dashboard</li>
<li>Create a Worker, paste in the single <code>index.js</code> from the repo</li>
<li>Set the <code>LINKS</code> KV binding and a few environment variables (<code>ADMIN</code> secret, <code>DEFAULT_LENGTH</code>)</li>
<li>(Optional) attach your own domain</li>
</ol>
<p>That's it — the README walks through every step with screenshots.</p>
<h2>Demo</h2>
<p>The upstream demo lives at <a href="https://lnks.eu.org">https://lnks.eu.org</a> — note that demo links expire in 24h; deploy your own for permanent links.</p>
<hr />
<p>I'm one of the maintainers of the project. Feedback, issues and stars are all welcome — and if you run something similar on Workers I'd love to hear about it in the comments.</p>
]]></content:encoded></item></channel></rss>