A premium, single-file URL shortener built exclusively for Cloudflare Workers. Zero databases to manage, zero monthly fees, and absolutely zero bloat.
Built to operate strictly within the free tier of Cloudflare Workers without sacrificing functionality.
Say goodbye to N+1 database queries. Tynim consolidates your links into a single master index, meaning loading your entire directory costs exactly 1 read operation.
Create ephemeral links that self-destruct after 1, 24, or 168 hours. It utilizes native Cloudflare KV TTL parameters, requiring zero cron jobs to manage.
No massive Node.js frameworks, no package managers, no build steps. It is a single JavaScript file that cannot be broken by upstream repository updates.
Deploy securely to your Cloudflare account in under 3 minutes.
tynim_db
tynim), and click Deploy.Click on your newly created worker and navigate to the Settings tab.
Under Bindings, click + Add Binding > KV Namespace.
LINKS
* Select your tynim_db from the dropdown, then save/deploy.
Under Variables and Secrets, click Add.
PASSWORD
* Enter your desired master password in the Value field and deploy.
You can inject the Tynim routing matrix using one of two methods:
While your worker defaults to a *.workers.dev address, connecting a custom domain (e.g., link.yourdomain.com) makes it truly yours.
Tynim is designed to be fully customized without touching the complex routing logic. Simply edit the `CONFIG` object at the very top of your worker file.
const CONFIG = {
// --- SYSTEM SETTINGS ---
cors: "on", // "on" or "off"
unique_link: false, // If true, identical target URLs return same alias
custom_link: true, // Allow users to input custom aliases
// --- BRANDING ---
app_title: "Tynim",
app_subtitle: "URL Shortener",
author_name: "NiMD",
repo_url: "https://gitlab.com/nimd/tynim",
// --- THEME COLORS ---
theme_bg: "#09090b",
theme_surface: "#18181b",
theme_border: "#27272a",
theme_text: "#f4f4f5",
theme_muted: "#a1a1aa",
theme_brand: "#ffffff",
// ...
};