Shlink
URL shortener with REST API and command line interface. Includes official progressive web application and docker images.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: The official website content could not be retrieved while writing this entry. The information below is compiled from what is known about the project. Please refer to the official documentation at shlink.io for specific details.
Introduction
Shlink is an open-source URL shortener built with PHP and released under the MIT license. It lets individuals or teams run their own short link platform on their own servers and domains. It is similar to commercial services such as Bitly, but all of your data stays under your control.
Key Features
- Short link generation: Turn long URLs into short links, with support for custom short codes (slugs).
- Visit statistics: Record the time, source, browser and other details of each visit. Once a GeoLite2 database is configured, you can also run geolocation analysis.
- Multi-domain support: A single instance can serve multiple short link domains at the same time.
- Tag management: Add tags to short links to make them easier to organize and search.
- Access restrictions: Set an expiration date and a maximum number of visits for a link.
- QR codes: Generate QR codes for short links.
- Multiple ways to manage: Provides a REST API (authenticated with API keys) and a command-line tool. With the official Shlink Web Client, you can manage one or more instances through a graphical interface in your browser.
Target Users and Use Cases
- Businesses or individuals who want to publish short links on their own branded domain
- Privacy-conscious users who don't want to hand their visit data over to third-party platforms
- Developers who need to integrate short link functionality into their own systems through an API
- Marketing teams that track click performance of campaign links
Core Strengths
- Free and open source, self-hostable, with full control over your data
- API-first, well suited to integration and automation
- The management interface is separate from the server, so a single web client can manage multiple instances
- Official Docker images make deployment simple
Installation and Deployment
Deploying with the official Docker image is recommended, for example:
docker run --name shlink -p 8080:8080 \
-e DEFAULT_DOMAIN=s.example.com \
-e IS_HTTPS_ENABLED=true \
shlinkio/shlink:stable
After the container starts, you can use the command-line tool inside the container to generate an API key, then enter it in Shlink Web Client to connect and manage the instance. You can also download a release package and deploy it on a server with PHP installed.
Technical Requirements
- A PHP runtime is required for direct deployment. Check the official documentation for the specific version requirements.
- Supported databases include MySQL, MariaDB, PostgreSQL, Microsoft SQL Server and SQLite
- Optional: enable visit geolocation with a GeoLite2 license key
Worth Noting
The Shlink server does not include a graphical interface itself. For day-to-day management, you need to use the separate Shlink Web Client (a hosted version is available, or you can deploy it yourself) or call the API directly.
Discover more
Chhoto URL
Simple, lightning-fast URL shortener with no bloat (fork of simply-shorten).
Flink
Create QR Codes, embeddable link previews for your website and crawls/scrapes metadata.
Just Short It!
A KISS, single-user URL shortener that runs in just one container.
Kutt
Modern URL shortener with support for custom domains and custom URLs.
Simple-URL-Shortener
KISS URL shortener, public or private (with account). Minimalist and lightweight. No dependencies.
bit
Fast, lightweight, resource-efficient, compiled URL shortener.