# Flink

> Self-hosted, open-source URL shortener built as an ASP.NET Core web API with QR codes, link passwords, expiry, Prometheus metrics and webhook notifications.

- **Category:** [Link Management](https://selfhost.directory/link-management)
- **Licence:** mit
- **Source model:** Open source
- **Latest version:** 2.6.0-rc03
- **Author:** rtraceio/web
- **Platforms:** Docker, Docker Compose, Kubernetes, Podman
- **Ports:** 8080 (Flink web UI and REST API)
- **Requires:** PostgreSQL (optional), MariaDB/MySQL (optional)
- **Tags:** PostgreSQL, SQLite, Webhooks, REST API, MariaDB, URL Shortener, Kubernetes, ASP.NET Core, Prometheus, Qr codes, Redirects

## Docker images

- [`quay.io/rtraceio/flink`](https://quay.io/rtraceio/flink)

## What is Flink?

Flink is a free, Libre, Open Source URL shortener written as an ASP.NET Core 8 web API, aimed at people who want their own redirect service without any configuration work. It turns long URLs into short links that can carry a QR code, an embeddable preview, an access window or a password, and it exposes a swagger (OpenAPI) plus Scalar interface so scripts and other tools can build on top of it; links can also be created in batches straight from the terminal with curl or wget. Visit counts are available through built-in Prometheus support, and optionally via Open Telemetry metrics. The service checks shortened targets against ABP, AdGuard and phishing blocklists to curb spam, and it can fire webhooks when links are created or removed. Storage starts on SQLite with no setup, with PostgreSQL and MariaDB/MySQL as alternatives. Self-hosting is a single container from Quay.io published as rtraceio/flink, listening on port 8080, and the docs also cover a compose stack with PostgreSQL plus a Kubernetes deployment. Authentication for link creation, ActivityPub federation and full website snapshots are still open roadmap items.

## Should you self-host Flink?

Flink scores **55/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#3 of 7** in [Link Management](https://selfhost.directory/link-management).

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is mit-licensed.

Its closest alternative on selfhost.directory is [LittleLink](https://selfhost.directory/project/littlelink) (65/100, 3 135 stars). It scores higher overall, so compare the two before you pick. [See Flink vs LittleLink side by side.](https://selfhost.directory/compare/flink-vs-littlelink)

## Features

- Built-in web UI
- Container and Kubernetes deployment
- Cross-platform
- Custom themes
- Link previews embeddable as iframe
- Metrics / visit tracking — Optional Open Telemetry metrics support.
- Multiple Database Backends
- Password-protected links
- QR Code Generation
- REST API
- Scheduled activation and expiration
- Spam Protection
- Webhook Notifications

## How to install Flink

### Install Flink with Docker

```bash
# alternatively if you use docker
docker run -p 8080:8080 quay.io/rtraceio/flink
```

### Install Flink with Podman

```bash
# if you are using podman
podman run -p 8080:8080 quay.io/rtraceio/flink
```

## Flink alternatives

- [SwiftLink](https://selfhost.directory/project/swiftlink): SwiftLink is an open-source, self-hosted URL shortener on ASP.NET Core 8 with custom short links, tags, passwords, expiration reminders, and visit analytics. (compare: https://selfhost.directory/compare/flink-vs-swiftlink)
- [fli.so](https://selfhost.directory/project/fliso): A self-hosted link shortener using SvelteKit and PocketBase that offers branded URLs, QR codes, click tracking, and tag-based organization with password protection. (compare: https://selfhost.directory/compare/flink-vs-fliso)
- [Shlink](https://selfhost.directory/project/shlink): Self-hosted, open-source URL shortener for your own domains, offering visit stats, custom slugs, tags, dynamic redirects, a REST API, a CLI and a Docker image. (compare: https://selfhost.directory/compare/flink-vs-shlink)
- [AI Shortlink](https://selfhost.directory/project/shortlink): AI Shortlink is a self-hosted, open-source URL shortener and live QR platform with custom codes, branded QR styles, admin review, Magic Link/OAuth login, and analytics. (compare: https://selfhost.directory/compare/flink-vs-shortlink)
- [sink](https://selfhost.directory/project/sink): Open-source, self-hosted URL shortener with visit analytics, custom slugs, QR codes and Cloudflare Access support, deployed serverlessly on Cloudflare Workers. (compare: https://selfhost.directory/compare/flink-vs-sink)
- [OpenShort.link](https://selfhost.directory/project/openshortlink): Self-hosted, open-source URL shortener running on Cloudflare Workers with analytics, geo/device routing, multi-domain support, and team collaboration. (compare: https://selfhost.directory/compare/flink-vs-openshortlink)
- [Chhoto URL](https://selfhost.directory/project/chhoto-url): Chhoto URL is a self-hosted, open-source URL shortener in Rust using SQLite, with a tiny 6 MB container, OIDC auth, custom slugs, link expiry, hit counting, and QR codes. (compare: https://selfhost.directory/compare/chhoto-url-vs-flink)
- [shrtlin](https://selfhost.directory/project/shrtlin): Self-hosted URL shortener with Kotlin Multiplatform clients for Android, iOS, Web, desktop. JWT + Proof-of-Work auth, no email. Ktor backend, PostgreSQL, Redis. (compare: https://selfhost.directory/compare/flink-vs-shrtlin)

## More in Link Management

- [fli.so](https://selfhost.directory/project/fliso): A self-hosted link shortener using SvelteKit and PocketBase that offers branded URLs, QR codes, click tracking, and tag-based organization with password protection.
- [go-urlsh](https://selfhost.directory/project/go-urlsh): urlsh is a self-hosted, open-source URL shortener in Go with web UI, REST API, hit counters, and optional Redis caching using PostgreSQL.
- [Kutt](https://selfhost.directory/project/kutt): Self-hosted, open-source URL shortener with custom domains, link passwords, expiry, private stats, an admin panel, OIDC login and a REST API.
- [link-checker-service](https://selfhost.directory/project/link-checker-service): A self-hosted web service that checks batches of URLs for broken links with caching, rate limiting, and JWT authentication.
- [LinkStack](https://selfhost.directory/project/linkstack): Open-source, self-hosted link-in-bio page: multiple user accounts, uploadable themes, link analytics, and a drag-and-drop install on a PHP web host or Docker.
- [LinkStack Docker](https://selfhost.directory/project/linkstack-docker): LinkStack Docker is the official container image for LinkStack, a self-hosted link sharing platform for creating customizable profile pages with multiple links.
- [linky](https://selfhost.directory/project/linky): Linky is a self-hosted, open-source link-in-bio builder with live blocks that auto-update from Spotify, Instagram, TikTok, GitHub, and more.
- [LittleLink](https://selfhost.directory/project/littlelink): Open source tool for creating personal link pages with over 100 branded button styles. No JavaScript or frameworks required.
- [lua.sh](https://selfhost.directory/project/lua): lua.sh is a self-hosted, open-source URL shortener that puts links on your own domain with detailed click analytics on every plan. Includes REST API and MCP server.
- [Pinkary](https://selfhost.directory/project/pinkary): Pinkary is an open-source, self-hosted link landing page and social network for profiles, links, posts, and follows — built with Laravel.
- [rushomon](https://selfhost.directory/project/rushomon): Rushomon is a self-hosted, open-source URL shortener on Cloudflare Workers with fast edge redirects, per-link analytics, OAuth auth, and multi-organization support.
- [skarf](https://selfhost.directory/project/skarf): Skarf is a self-hosted, open-source Linktree alternative built with Flask for customizable profile pages with links, Ko-Fi, and static site generation.

## Links

- [Homepage](https://gitlab.com/rtraceio/web/flink)
- [Matrix chatroom](https://matrix.to/#/#flinkify:matrix.org)
- [Install Guide](https://gitlab.com/rtraceio/web/flink/-/blob/main/docs/install/install.md)
- [Configuration](https://gitlab.com/rtraceio/web/flink/-/blob/main/docs/config/config.md)

---
Source: https://selfhost.directory/project/flink