Fast, minimal self-hosted URL shortener with basic click analytics

105 stars 8 forks last commit first released MIT

Actively maintained

Last commit 8 Aug 2026.

bit screenshot

bit is a fast, lightweight self-hosted URL shortener designed for minimal click tracking and low resource usage. It provides an API and CLI for creating and managing short links, supports multiple users via API keys, and ships as a small Docker image for easy deployment.

Key Features

  • Minimal tracking: captures country, browser, OS, and referer without cookies or persistent client-side tracking
  • X-Forwarded-For support for proxied client IPs
  • API key authentication with multi-user support and CLI tooling for key creation and management
  • Uses a simple SQLite database by default for storage and a small runtime footprint
  • Small container image and low memory usage; optimized for high throughput and low latency
  • Automatic updates for user-agent regexes and GeoIP (GeoLite2) database
  • Simple, Rails-inspired project structure that is easy to extend

Use Cases

  • Provide short links for internal tools or projects with lightweight click metrics
  • Offer a programmatic short-link API for applications, webhooks, or marketing campaigns
  • Replace third-party link shorteners to retain control over analytics and data

Limitations and Considerations

  • Default SQLite storage is convenient but may limit horizontal scaling for very high write volumes or multi-node deployments
  • Tracking is intentionally minimal; it does not provide advanced analytics, user-level tracking, or persistent cookies
  • The project is maintained with a focus on stability and minimalism; new feature additions are limited by design

bit is suitable for teams and hobbyists who need a simple, performant URL shortener with basic analytics and easy deployment. It emphasizes low resource usage, straightforward configuration, and minimal operational complexity.

Categories:

Tags:

Tech Stack:

Share:

Similar to bit

Kutt logo

Kutt

Modern URL shortener with custom domains, stats, and an API

11.1k
1.5k
Last commit

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

MITActively maintained
Alternative to:
Bitly logo
Bitly
+11
Shlink logo

Shlink

Self-hosted URL shortener with REST API and CLI

5.2k
410
Last commit

PHP-based self-hosted URL shortener for your own domains, with REST API, CLI management, and visit analytics including anonymized stats and geolocation.

MITActively maintained
Alternative to:
Bitly logo
Bitly
+11
Dub logo

Dub

Open-source link attribution platform for short links and conversions

24.6k
3.3k
Last commit

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

Actively maintained
Alternative to:
Bitly logo
Bitly
+9
YOURLS logo

YOURLS

Self-hosted URL shortener with analytics, API, and plugins

12.2k
2.1k
Last commit

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

MITActively maintained
Alternative to:
Bitly logo
Bitly
+14
Chhoto URL logo

Chhoto URL

Minimal, fast self-hosted URL shortener written in Rust

949
90
Last commit

Chhoto URL is a lightweight, high-performance self-hosted URL shortener in Rust, focused on simplicity, speed, and minimal features.

MITActively maintained
Alternative to:
Bitly logo
Bitly
+12
Apache Superset logo

Apache Superset

Data exploration, visualization, and dashboarding platform

74.5k
18.2k
Last commit

Apache Superset is an open-source BI platform for SQL-based data exploration, interactive dashboards, and rich visualizations with a no-code chart builder and SQL editor.

Apache-2.0Actively maintained
Alternative to:
Apache Superset (Managed Cloud) logo
Apache Superset (Managed Cloud)
+18