A Clean, Private URL Shortener You Can Self-Host
Let's be honest, public URL shorteners can be a bit of a black box. You hand over your link, and you often have no idea what's being tracked, where the data goes, or if the service will even exist next year. For developers who value control and privacy, that's not a great trade-off.
Enter Nahpet. It's a self-hosted URL shortener that strips away the complexity and the creepiness, giving you a simple, private tool that you own completely. It's the kind of project that solves a specific problem elegantly, without any fuss.
What It Does
Nahpet is a lightweight, self-contained web application for shortening URLs. You run it on your own server, you create short links that point to your long URLs, and you manage them through a clean, minimal web interface. All the data—the mappings, the click counts—stays with you.
Why It's Cool
The appeal here is in the philosophy. Nahpet is built with a clear focus on being private, clean, and simple.
- Privacy First: Since you self-host it, there are no third-party analytics, no ad networks, and no data sharing. The click tracking it does is for your eyes only.
- Clean Code & UI: The project is intentionally minimal. The codebase is straightforward, making it easy to understand, modify, or audit. The interface isn't cluttered with features you'll never use.
- Developer-Friendly: It's the perfect tool for developers who need short links for internal tools, documentation, custom dashboards, or even sharing links within a team without using a corporate platform. It's a utility that gets out of your way.
- Own Your Stack: You're not dependent on another service's uptime, pricing changes, or feature removals. You deploy it, and it runs until you decide otherwise.
How to Try It
Getting Nahpet up and running is a standard self-hosted workflow. You'll need a server with Docker and Docker Compose.
- Clone the repository:
git clone https://github.com/jxroot/nahpet.git cd nahpet - The project uses Docker Compose for easy setup. Check the
docker-compose.ymlfile to configure any environment variables (like a secret key). - Launch it:
docker-compose up -d
That's it. Your instance should be running. You can then access the web interface, start creating short links, and even customize it if you want. For all the details and configuration options, the Nahpet GitHub repository is the place to go.
Final Thoughts
Nahpet isn't trying to be the most feature-rich URL shortener on the planet. It's a focused tool that does one job well and respects your privacy. For developers, it's a great addition to your self-hosted toolkit—a small piece of infrastructure you control. It's the kind of project that reminds you that sometimes, the best solutions are the simple, transparent ones you build yourself.
Follow us for more cool projects: @githubprojects
