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

69stars
7forks
Last commit: 4d ago
Repo age: 5y old
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 Services

Dub

Dub

Open-source link attribution platform for short links and conversions

22.9k
2.8k
Last commit: 17h ago

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

Alternative to:
Bitly
Bitly
+9
YOURLS

YOURLS

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

11.8k
2.1k
Last commit: 5d ago

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

Alternative to:
Bitly
Bitly
+14
Kutt

Kutt

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

10.5k
1.4k
Last commit: 1mo ago

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

Alternative to:
Bitly
Bitly
+11
Sink

Sink

Link shortener with analytics running on Cloudflare

6.1k
4.1k
Last commit: 1mo ago

Sink is a fast, secure link shortener with built-in analytics, custom slugs, link expiration, and serverless deployment on Cloudflare Workers or Pages.

Alternative to:
Bitly
Bitly
+11
Shlink

Shlink

Self-hosted URL shortener with REST API and CLI

4.6k
370
Last commit: 8d ago

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

Alternative to:
Bitly
Bitly
+11
MicroBin

MicroBin

Secure pastebin for text and file sharing with URL shortening

4k
257
Last commit: 4d ago

MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.

Alternative to:
Pastebin
Pastebin
+17