Back to services

clink

A super-minimal link shortening service written in pure C, focusing on small executable size, portability, and ease of configuration.

View alternatives to clink
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: When this entry was written, the official website (git.swurl.xyz) could not be fetched. The content below is compiled from existing knowledge of the project and includes only information that is reasonably certain. For specific features, the license, and deployment steps, please refer to the README in the official repository.

Overview

clink is a URL shortener published by the developer swirl on their personal Git service (git.swurl.xyz). It is written in C and focuses on being minimal and lightweight. Users can deploy it on their own server to turn long URLs into short links.

Key Features

  • Short link generation: Converts long URLs into short links that are easy to share.
  • Redirection: Automatically redirects to the original URL when a short link is visited.
  • Self-hosting: The service runs on your own server, so you control your link data and don't depend on a third-party URL shortening platform.

Target Users and Use Cases

  • Individual site owners and developers who want to control their own URL shortening service
  • Users who want to run a lightweight service on a low-spec VPS or a small device
  • People who want to learn from or build on a simple C project

Core Strengths

  • Lightweight: Implemented in C, it typically has low resource usage and few dependencies, making it suitable for resource-constrained environments.
  • Simple: Its functionality is focused on URL shortening itself, with no complicated extras, so the burden of deployment and maintenance is small.
  • Data ownership: Self-hosted, so you are not subject to a third-party service's restrictions or tracked by it.

Installation and Deployment

The project is hosted as source code at https://git.swurl.xyz/swirl/clink.git. The general process is: clone the repository, build it with a C toolchain (such as make and a C compiler) following the README, then run it on your server and, as needed, configure a reverse proxy (such as Nginx) and a domain name. For specific dependencies, configuration options, and runtime parameters, please check the repository documentation.

Worth Noting

  • This is a small, personally maintained project. Its features are simpler than those of mature URL shortening platforms such as Shlink and YOURLS, and it may lack advanced features such as analytics and multi-user management.
  • If you need features such as visit statistics, an API, or a graphical management interface, check the repository documentation first to confirm whether they are supported, or consider other alternatives.