Short links,
full control. edge-fast. git-tracked. lightning quick. self-hosted. open source.
A fast URL shortener you own. Manage links from your terminal, track them in git, and serve redirects from the edge.
Shorten a URL
Paste any URL below to see how clipr generates short links.
Demo mode — install clipr to create persistent short links.
Everything you need
A complete URL shortening stack — from terminal to edge — with zero vendor lock-in.
Edge-Fast Redirects
Cloudflare Worker serves 302 redirects from 300+ locations. Sub-millisecond KV lookups.
GET /:slug → 302 CLI-First Workflow
Shorten, list, delete, and deploy from your terminal. Pipe-friendly output for scripting.
clipr shorten <url> Git-Tracked Database
URLs live in a JSON file you commit alongside your code. Full history, diffs, and code review.
git commit urls.json UTM Tracking Built-In
Attach utm_source, utm_medium, and utm_campaign to any link. Appended automatically on redirect.
--utm-source twitter Self-Hosted & Open Source
No third-party services. Deploy to your own Cloudflare account. MIT licensed.
wrangler deploy Link Expiration
Set expiry dates on links. The worker returns 410 Gone for expired slugs automatically.
--expires 2026-12-31 Custom Slugs
Use meaningful slugs like /docs or /launch. Random slugs generated if you prefer.
--slug my-link Bulk Import
Import URLs from JSON or CSV. Export your database anytime for backup.
clipr import urls.csv QR Codes
Generate QR codes for any short link. Download as SVG or PNG.
clipr qr my-link JSON Output
Every command supports --json for machine-readable output. Pipe to jq, scripts, or CI.
clipr list --json Deploy to KV
One command pushes your local urls.json to Cloudflare KV for the worker to serve.
clipr deploy Tag System
Organize links with tags. Filter by tag in the CLI or dashboard.
--tags marketing,q1 Search & Filter
Find links by slug, URL, or description. Client-side search in the dashboard.
clipr list --search docs Zero Dependencies
Core package has a single 4KB dependency. No bloat, no supply chain risk.
1 dep (4KB) TypeScript API
Import and use programmatically. Full type safety with exported types.
import { shorten } from 'clipr' Monorepo Ready
Built as a pnpm monorepo. Core, CLI, web, and worker packages work together.
pnpm --filter @clipr/* Before & After
Get started in seconds
See it in action
Real commands, real output.
Use as a library
Import @clipr/core in your own tools.
@clipr/core exports
-
JsonBackendRead/write urls.json storage backend -
generateSlug()Generate a random URL-safe slug -
validateUrl()Validate http/https URLs -
validateSlug()Validate slug format and reserved words -
appendUtm()Append UTM parameters to a URL -
resolveConfig()Merge partial config with defaults
npm install @clipr/core