qmetrics.net

Shlink

Self-hosted PHP URL shortener with CLI and REST API

Shlink screenshot

Shlink is a self-hosted URL shortener that serves short links under your own domains. It offers a command line, a REST API and a web client, and collects anonymized visit statistics with geolocation.

Overview

Shlink is a PHP-based URL shortener that you run yourself, so short links are served under your own domains. You can let it generate a unique short code or provide a custom, human-friendly slug for each long URL.

It can be used through a command line tool or a REST API. Both cover mostly the same operations, except that API key management is available only from the command line. A progressive web client is also provided, which can be used directly or hosted yourself, and it can manage several Shlink instances.

Each click on a short URL is recorded as anonymized visit statistics, and the visitor is geolocated. Short URLs can be shared on social networks, by email or in marketing campaigns, and the visit data can then be reviewed.

For deployment, you can download a pre-bundled dist file and run it on a PHP host, or use the official Docker image configured through environment variables. It supports MySQL, MariaDB, PostgreSQL, Microsoft SQL Server and SQLite as databases. It can also integrate with RabbitMQ.

Key features

  • Custom domains for short URLs
  • Generated short codes or custom slugs
  • REST API with API keys
  • Command line interface
  • Progressive web client for multiple instances
  • Anonymized visit tracking with geolocation
  • Official Docker image
  • Multiple database backends

Use cases

  • Serving branded short links under your own domain
  • Tracking clicks on marketing campaign links
  • Sharing short URLs on social networks or email
  • Integrating link shortening into other apps via API

Does the same job as

Shlink doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare Shlink

Similar software

Postiz

Agent-friendly social media scheduling platform with analytics and team features

Social media management platform for scheduling, automating and analyzing posts across 30+ channels. Available as a hosted cloud service or a self-hosted open-source edition, with a public API, CLI and MCP support for AI agents.

  • Schedule posts to 30+ channels from one calendar
  • Visual calendar preview
  • AI copilot, image and video generation
TypeScriptDocker, CLIDetails →
★ 43k⟳ todayAGPL-3.0
Open Source Alternative to:AgorapulseBuffer+23

OpenSEO

Usage-based SEO platform with AI agent MCP integration

OpenSEO covers keyword research, rank tracking, backlinks, site audits, competitor views, and AI visibility using DataForSEO data. It offers a hosted tier or self-hosted Docker and Cloudflare deployments with your own API key.

  • Keyword research and saved lists
  • Rank and AI visibility tracking
  • Backlink and domain overview
TypeScriptDockerDetails →
★ 29.6k⟳ 2 days agoMIT
Open Source Alternative to:AhrefsSemrush

AiToEarn

AI agent platform for cross-platform content publishing and monetization

AiToEarn helps solo creators and brands create, publish, engage, and monetize content across domestic and global social platforms using AI agents and optional MCP integration.

  • Multi-platform scheduled publishing
  • CPS, CPE, and CPM monetization flows
  • Browser extension engagement automation
TypeScriptDockerDetails →
★ 29k⟳ todayMIT

Dub Links

Open-source link attribution and short-link platform

Dub Links is an open-source platform for short links and conversion tracking, built for teams that need link attribution analytics.

  • Short link creation and management
  • Click and conversion attribution
  • Self-hosting option
TypeScriptDetails →
★ 25.3k⟳ todayAGPL-3.0
Open Source Alternative to:BitlyDub

listmonk

Self-hosted newsletter and mailing list manager in a single binary

Standalone, self-hosted newsletter and mailing list manager for e-mail campaigns and transactional messages. It ships as one binary, stores data in PostgreSQL, and includes a web dashboard.

  • Single and double opt-in mailing lists
  • SQL-based subscriber segmentation
  • Go-template e-mail templating
GoWeb, Linux, Windows, DockerDetails →
★ 24.6k⟳ todayAGPL-3.0
Open Source Alternative to:beehiivBrevo+8

Social-Auto-Upload

Multi-platform social video and post upload CLI

Publishes videos, articles, and image posts to many social platforms from one CLI, with optional Agent Skills for automation tools.

  • Unified sau CLI
  • Per-platform Agent Skills
  • Video upload to many networks
PythonCLIDetails →
★ 17.2k⟳ 7 days agoMIT