changkun/redir — explained in plain English
Analysis updated 2026-08-03 · repo last pushed 2023-12-31
Create custom short links for marketing campaigns with built-in click analytics.
Host Go package documentation links using the Go Vanity Import feature.
Manage private and scheduled short links through a self-hosted admin dashboard.
| changkun/redir | bjarneo/kli | mitchellh/go-fs | |
|---|---|---|---|
| Stars | 93 | 92 | 92 |
| Language | Go | Go | Go |
| Last pushed | 2023-12-31 | — | 2018-05-08 |
| Maintenance | Dormant | — | Dormant |
| Setup difficulty | moderate | moderate | easy |
| Complexity | 3/5 | 3/5 | 2/5 |
| Audience | developer | ops devops | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a running MongoDB database instance to store links and analytics data.
Redir is a self-hosted URL shortener, think Bitly, but running on your own server and your own domain. You give it a long web address, it gives you a short one, and anyone who clicks the short link gets redirected to the original destination. Because you host it yourself, you keep full control over your data and your branding. Beyond basic shortening, it offers a few things you'd expect from a commercial product. You can create semantic short links like yourdomain.com/s/promo-deal instead of random gibberish. There's an admin dashboard for managing links, a public index page that lists all your non-private shortcuts, and built-in visitor analytics showing page views, unique visitors, referrers, devices, and locations. You can also set links to go live only after a certain time, keep some links private so they don't appear in the public list, and show visitors a warning before redirecting them to external sites. This would suit a small company, a developer with a personal brand, or anyone running a project that needs short links without relying on a third-party service. For example, a startup could use it to share clean links in marketing emails while keeping click analytics in-house. A developer could also use the Go Vanity Import feature, which lets you host short links that point to Go package documentation, a niche but handy capability if you publish open-source Go libraries. The project is written in Go and compiles into a single binary, which makes deployment straightforward. It requires a MongoDB database to store links and analytics. You can run it directly or deploy with Docker, and configuration is handled through a YAML file. It also ships with GDPR-friendly pages like imprint, privacy, and contact templates, which is a thoughtful touch for anyone operating a public-facing service in Europe. The front-end dashboard is built separately and embedded into the final binary, so the whole thing ships as one self-contained executable.
Redir is a self-hosted URL shortener that lets you create short, custom links on your own domain with built-in analytics, privacy controls, and an admin dashboard.
Mainly Go. The stack also includes Go, MongoDB, Docker.
Dormant — no commits in 2+ years (last push 2023-12-31).
No license information is provided in the repository, meaning default copyright restrictions apply and you should ask the author for permission before using it.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.