All projects / Marketing
Link Shortener
A self-hosted alternative to Bitly. Short links on your own domain with click statistics by day, referrer, browser and device, without storing anyone's IP address.
- Status
- Ready
- Maturity
- MVP
- Latest release
- v0.1.0
- Last commit
- 1 month ago
- Stars
- 0
- License
- MIT
- Default port
- 3200
Why it exists
Link shorteners sit between your audience and your content and keep the click data. Running your own keeps the domain, the links and the statistics under your control.
What it does
- Generated or custom slugs, titles, expiry dates and click limits
- Clicks per day for 30 days, referrers, browsers, operating systems and devices
- Unique visitors counted with a daily-rotating hash; IP addresses are never stored
- QR code for every link, 302 or cached 301 redirects
- API token for creating links from scripts
- Admin sign-in with optional TOTP
Limitations
- No geographic statistics
- Small built-in user-agent heuristic rather than a full parser
- One domain per instance
Run it
git clone https://github.com/TunarJamalov/link-shortener.git
cd link-shortener
npm install
cp .env.example .env
npm run devThen open http://localhost:3200/dashboard. A Dockerfile and a systemd unit are in the repository.