clink
Minimal URL shortener in C using the Mongoose web server

clink is a super-minimal URL shortener written in C, built to be fast and small while staying easy to deploy. It uses the embedded Mongoose web server and is typically run behind a reverse proxy for HTTPS.
Key Features
- Very small binary size and low resource usage
- Embedded HTTP server via Mongoose (no heavy external runtime)
- Supports query-string based creation (useful for integrations that expect it)
- URL decoding support for encoded URLs
- Per-link deletion keys generated from a server-side seed
- Optional provided systemd unit and NGINX reverse-proxy configuration
- Includes a companion CLI utility (clinkctl) for administration
Use Cases
- Self-hosted link shortener for a personal domain or organization
- Short links for tools that require query-string based submission
- Lightweight redirect service for homelabs or internal networks
Limitations and Considerations
- No built-in blacklists/word filters for destinations or short codes
- HTTPS is expected to be handled by a reverse proxy (for example, NGINX)
clink is a good fit when you want a straightforward, no-frills shortener with minimal dependencies. Its tiny footprint and simple operational model make it especially attractive for small servers and homelabs.
Categories:
Tags:
Tech Stack:
Similar Services

Dub
Open-source link attribution platform for short links and conversions
Dub is an open-source link attribution platform for branded short links, real-time analytics, conversion tracking, webhooks, and affiliate/referral programs.

YOURLS
Self-hosted URL shortener with analytics, API, and plugins
YOURLS is a self-hosted PHP URL shortener with custom short links, a developer API, detailed click analytics, and an extensible plugin architecture.

Kutt
Modern URL shortener with custom domains, stats, and an API
Open-source, self-hostable URL shortener with custom domains, link management, private analytics, and a REST API.

Sink
Link shortener with analytics running on Cloudflare
Sink is a fast, secure link shortener with built-in analytics, custom slugs, link expiration, and serverless deployment on Cloudflare Workers or Pages.

Shlink
Self-hosted URL shortener with REST API and CLI
PHP-based self-hosted URL shortener for your own domains, with REST API, CLI management, and visit analytics including anonymized stats and geolocation.
MicroBin
Secure pastebin for text and file sharing with URL shortening
MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.
systemd
C