TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made an open-source Bitly alternative

255 pointsby steventeyover 2 years ago

44 comments

slang800over 2 years ago
You should add a way to export all the URLs on the platform in a format that matches the URLTeam (<a href="https:&#x2F;&#x2F;wiki.archiveteam.org&#x2F;index.php&#x2F;URLTeam" rel="nofollow">https:&#x2F;&#x2F;wiki.archiveteam.org&#x2F;index.php&#x2F;URLTeam</a>) releases.<p>That way, when you shut down your service, we can figure out what some of these short links went to.
评论 #32941505 未加载
评论 #32942354 未加载
bluetideproover 2 years ago
FYI you have some rogue script or something on the page that brings my pretty hefty windows 10 pc to a halt. It spikes my CPU to 100% and the page is in like 1FPS. I think it&#x27;s your countdown thing for pricing. Something is def up with it, you may want to disable that temp.
评论 #32944256 未加载
评论 #32941981 未加载
评论 #32940610 未加载
评论 #32941482 未加载
评论 #32943342 未加载
评论 #32940288 未加载
评论 #32948101 未加载
评论 #32940315 未加载
评论 #32943568 未加载
评论 #32941361 未加载
评论 #32940777 未加载
评论 #32942064 未加载
评论 #32942684 未加载
robin_realaover 2 years ago
I really hate link shorteners, because they inevitably die and leave a spray of broken links over the web. What’s wrong with normal URLs?
评论 #32940850 未加载
评论 #32940249 未加载
评论 #32940190 未加载
评论 #32941272 未加载
评论 #32940374 未加载
评论 #32941299 未加载
评论 #32944617 未加载
评论 #32941770 未加载
评论 #32944652 未加载
评论 #32941196 未加载
评论 #32940471 未加载
评论 #32943758 未加载
评论 #32948306 未加载
评论 #32941122 未加载
TimLelandover 2 years ago
I&#x27;m the creator of <a href="https:&#x2F;&#x2F;T.LY" rel="nofollow">https:&#x2F;&#x2F;T.LY</a> URL Shortener and am always interested when I see new short link services. My biggest piece of advice is to figure out a way to detect malicious URLs before your service is completely shut down. A month after starting T.LY, my servers were disabled by my hosting company without warning. Since then, I&#x27;ve worked on systems and tools to prevent malicious short links and make the service more reliable.<p>Most comments I see here are questioning why we still need URL shorteners. Print, media, SMS, and analytics are just a few reasons. I wrote some additional info on my blog: <a href="https:&#x2F;&#x2F;timleland.com&#x2F;are-url-shorteners-useful-today&#x2F;" rel="nofollow">https:&#x2F;&#x2F;timleland.com&#x2F;are-url-shorteners-useful-today&#x2F;</a><p>Another interesting thought is when you create a TinyURL, it&#x27;s 20 characters long, and Bitly links are 14 characters long. These services cannot create short links anymore. As a URL shortener grows, the number of actual short links diminishes. Currently, T.LY has over 10 million short links, which means plenty of four and five-character short URLs are available.<p>Two character URLs 3,844 (62^2) unique combinations<p>Three character URLs 238,328 (62^3) unique combinations<p>Four character URLs 14,776,336 (62^4) unique combinations<p>Five character URLs 916,132,832 (62^5) unique combinations<p>Six character URLs 56,800,235,584 (62^6) unique combinations<p>Seven character URLs 3,521,614,606,208 (62^7) unique combinations<p>Eight character URLs 218,340,105,584,896 (62^8) unique combinations
评论 #32942270 未加载
评论 #32942049 未加载
orangepurpleover 2 years ago
Reminder that there are also great tools designed to do the opposite.<p><a href="https:&#x2F;&#x2F;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...</a><p>google.com becomes <a href="https:&#x2F;&#x2F;aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com&#x2F;aàÃaAæâÄæäÁÃÅæâÀÁÁÆÂÁAâÂÂàÄàâáÄÃáÆÁàaÆÃàåáâÄÄÃâãåâæáÀÂÅAÂãaåäãääÅÅAäÆÄa忯ãaÂæÅÀàãÅÆÂÅÁæÅAàÄÁÃÄäÂÃáàÃÀaAÃAåæÅãâÂÅÃÅÄÂæÆÅÃÀäáâÃÁäÆÃÂÅÃâÄÁÀåæäãÆääâAàaåAÃæâÅäÁÄÆÃAÆáÃÂ?åAæãæãæaæââÁáÆáÆåæåÆåÆåæåÃåäáÅåâåÆåÄ" rel="nofollow">https:&#x2F;&#x2F;aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...</a><p>shadyurl.com was fun while it lasted. Tagline: Don’t just shorten your Shady URL, make it suspicious and frightening.
评论 #32944054 未加载
评论 #32942506 未加载
overshardover 2 years ago
Good luck on your link shortener project! I made an open source link shortener many years ago and eventually threw in the towel and quit. The problem domain for link shorteners is one of anti-spam and abuse. Charging for it makes complete sense to try and weed this out but having any amount of &quot;free&quot; I found to be a hotbed of reports thrown against my hosting provider and registrar for supporting spam. I found myself getting quickly blacklisted everywhere since spammers love to use new shorteners for bypassing their own blacklists.<p>I&#x27;ve not looked into the problem again in 10+ years since. If I did I would 100% skip the free plan.
KronisLVover 2 years ago
Looks like a visually pleasant site to browse, however it appears that there is some lag on Firefox (on the desktop), at least for me.<p>As far as link shorteners go, I actually host my own containerized instance of YOURLS: <a href="https:&#x2F;&#x2F;yourls.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yourls.org&#x2F;</a><p>It&#x27;s fairly boring and not really pretty, but it seems to work okay for me.<p>Actually, as far as self-hosting goes, there&#x27;s quite a few options out there: <a href="https:&#x2F;&#x2F;github.com&#x2F;awesome-selfhosted&#x2F;awesome-selfhosted#url-shorteners" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;awesome-selfhosted&#x2F;awesome-selfhosted#url...</a><p>Of course, one can also find some free services hosted by others.
评论 #32942162 未加载
评论 #32941787 未加载
trevcanhumanover 2 years ago
Nice project, although I&#x27;d definitely not use it. The website seems too bloated and as others have said uses too much ram.<p>For personal use I just curl one of these URLs from my linux machine: <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;List_of_applications#Pastebin_services" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;List_of_applications#Pasteb...</a>
评论 #32944350 未加载
jonas-wover 2 years ago
Genuine question. Why would people pay for the pro version if they could just host it for themselves? Does the pro version have some proprietary stuff which would have advantages to the selfhosted version?
评论 #32941025 未加载
评论 #32941468 未加载
评论 #32941024 未加载
jackson1442over 2 years ago
Do you have any mechanisms to handle abuse? That&#x27;s a common problem in the URL shortener space, and usually leads to them getting blocked from most platforms.
评论 #32940302 未加载
medvover 2 years ago
Here’s mine: <a href="https:&#x2F;&#x2F;ï.at" rel="nofollow">https:&#x2F;&#x2F;xn--gda.at</a>
评论 #32940131 未加载
评论 #32940094 未加载
dijitover 2 years ago
Heh, I did the opposite recently after reading &quot;Software Engineering at Google&quot; and I discovered that even though it would be very easy to make: there is no equivalent to the `go&#x2F;` permanent &quot;friendly&quot; URL shortener.<p>It can be backed by a TOML file for hardcoding URLS or a database for making it easy to add new ones (which I think is the Google way).<p>If I did a stupid; or a better version already exists: let me know.<p><a href="https:&#x2F;&#x2F;git.drk.sc&#x2F;dijit&#x2F;redirector-rs" rel="nofollow">https:&#x2F;&#x2F;git.drk.sc&#x2F;dijit&#x2F;redirector-rs</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;dijit&#x2F;redirector-rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dijit&#x2F;redirector-rs</a>
评论 #32945314 未加载
kls0eover 2 years ago
How does this compare to YOURLS [0]? btw, I like link shorteners for their millenial quirkiness. kickme.to&#x2F;the2000s<p>[0] <a href="https:&#x2F;&#x2F;yourls.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yourls.org&#x2F;</a>
gnicholasover 2 years ago
I tried using a bitly alternative but found that when I sent them to users via email the links were flagged by gmail as being dangerous. There were no problems when I sent bitly links, or the plain links.<p>I&#x27;m hesitant to try another alternative because I wouldn&#x27;t want to get set up in a new system, only to have these problems crop up again.
评论 #32940795 未加载
评论 #32942131 未加载
memorableover 2 years ago
The site looks quite laggy on my phone, and moving around feels janky. Could it be the Javascript that caused this?
评论 #32940354 未加载
memorableover 2 years ago
Some necessary questions:<p>- Does this use any blacklist to prevent URL shortener looping (i.e. using multiple URL shorteners on top of each other to bypass the checking), or preventing any potentially malicious sites? - Does this have rate limits? URL shorteners get abused quite regularly, so this should be necessary.
评论 #32940578 未加载
agucovaover 2 years ago
I literally spent all day Tuesday trying to find a decent alternative to bit.ly. I&#x27;m so glad this exists.
评论 #32940851 未加载
评论 #32940185 未加载
评论 #32940093 未加载
评论 #32940174 未加载
staticoover 2 years ago
I did something similar with <a href="https:&#x2F;&#x2F;statico.link" rel="nofollow">https:&#x2F;&#x2F;statico.link</a> when I couldn&#x27;t find a cheap, free and easy service to do this.<p>It started as a simple nginx URL map since I was already running nginx (<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;statico&#x2F;14fa84d7e79722031d5e49694191ba1d" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;statico&#x2F;14fa84d7e79722031d5e49694191...</a>) but is now a tiny containerized app because friends requested an index page. The requirement is that all links need to be named (i.e. no random hashes).
plucover 2 years ago
I remember the short url craze - bitly alternatives were everywhere (even @ the G[1]!) and creating one was basically the Hello World of programming for a time.<p>Real shame how it went from convenience tool (and largely coupled with microblogging character limit) to aggressive corporate tracking (though bitly was always a champion of the latter)<p><a href="https:&#x2F;&#x2F;developers.googleblog.com&#x2F;2018&#x2F;03&#x2F;transitioning-google-url-shortener.html" rel="nofollow">https:&#x2F;&#x2F;developers.googleblog.com&#x2F;2018&#x2F;03&#x2F;transitioning-goog...</a>
aliljetover 2 years ago
I ran a variation of something like this myself for years. Eventually, the site was routinely being used for spam-style (e.g., a link to some illegal data, or some advertisement to embed somewhere, etc.) links. And when I took the site down, my users asked me for help to transition away from this service that they were uniquely relying on. It was a mess. See goo.gl. I wonder how you prevent your service from being used inappropriately and how you handle the eventual costs
评论 #32944393 未加载
anderspitmanover 2 years ago
Note that for many use cases, you can host your own URL shortener for free on GitHub pages (or Netlify, etc) by creating static index.html pages containing HTML redirects[0]. If you buy your own short domain, you can even port it between different providers if necessary.<p>[0]: <a href="https:&#x2F;&#x2F;apitman.com&#x2F;18&#x2F;#html-redirects" rel="nofollow">https:&#x2F;&#x2F;apitman.com&#x2F;18&#x2F;#html-redirects</a>
somishereover 2 years ago
I built a very, very basic one of these a month ago to shorten a couple of unruly domains I had. Supports static and dynamic endpoints that you define.<p><a href="https:&#x2F;&#x2F;thesom.au&#x2F;gh&#x2F;shorturl" rel="nofollow">https:&#x2F;&#x2F;thesom.au&#x2F;gh&#x2F;shorturl</a><p>Intended to self host for free&#x2F;minimal cost on CloudFlare, thus comes with built in analytics, BYO domain, etc.
评论 #32945436 未加载
memorableover 2 years ago
A bit of a shameless plug, but I also created an open-source link shortener, using Python and Flask. Although not as polished and full-fledged as this one, it done its job pretty well, with basic click statistics and custom key URLs.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;HoangTuan110&#x2F;flyurl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;HoangTuan110&#x2F;flyurl</a>
jiffygistover 2 years ago
Application error: a client-side exception has occurred (see the browser console for more information).<p>I&#x27;m using Bromite on Android
HeckFeckover 2 years ago
The grandfather of all link shorteners: <a href="https:&#x2F;&#x2F;shorturl.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shorturl.com&#x2F;</a><p>I had a .vze.com subdomain registered there in approx. 2006 and it still is live. Unfortunately, the target domain and website is long gone.
jeffreygoestoover 2 years ago
I read &quot;Billy alternative&quot; and waited for some cool Ikea hack. Bummer.
评论 #32942065 未加载
FlashBlazeover 2 years ago
Still need to fix some bugs, but I made an URL expander using Preact and Cloudflare Workers: <a href="https:&#x2F;&#x2F;expand.flashblaze.xyz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;expand.flashblaze.xyz&#x2F;</a>
foxbeeover 2 years ago
Great website. I really like the globe and overall theme - reminds me of Vercel. One small note - the github stars image made me think you had 0 stars. Not a big deal, but you might want to update it.<p>Great work
评论 #32940820 未加载
评论 #32940668 未加载
iamthejuanover 2 years ago
I had an account before in Bitly, the username is &quot;username&quot;, one day, they just deleted my account for no reason. I never used their service again.
midspectrumover 2 years ago
earlier there was an option to add &quot;+&quot; at the end of any bit.ly link and you can see the stats of any shortened URL. Is that something you&#x27;ve given a thought?
评论 #32943554 未加载
Rafsarkover 2 years ago
Is there a special thing to prevent being blocked from most platforms? For instance, if I post your shortlink on HackerNews, can I be marked as &quot;dupe&quot;
miked85over 2 years ago
The last thing the Internet needs is more link shorteners.
xmonkeeover 2 years ago
Can I ask what you used to make that landing page? I&#x27;ve seen a lot of pages use that template lately and it&#x27;s killing me not knowing
评论 #32943565 未加载
mnemncover 2 years ago
This looks nice!<p>I recently deployed my own Rallly instance (Doodle alternative) via docker-compose and would love to give dub.sh a try.<p>Any plans for releasing a docker version?
评论 #32942071 未加载
zicxorover 2 years ago
Very laggy - i am getting 10 FPS in your website. You should consider optimizing. Good project, congrats!
bawolffover 2 years ago
Not to be negative, but aren&#x27;t there like a billion open source url shorteners at this point?
shawnrmcleanover 2 years ago
What happens on the free plan and the 1001&#x27;th person clicks the link?
评论 #32943538 未加载
nipperkinfeetover 2 years ago
Is your website cryptojacking? It blew up my GPU.
评论 #32945288 未加载
jensenboxover 2 years ago
Redis as a primary database gives me chills.
jedbergover 2 years ago
I&#x27;m not sure how being open source helps here. How do we know the code that is running on the service is the same as the open source code?
评论 #32941424 未加载
vixalienover 2 years ago
the globe on the homepage needs some lube. scrolling it on mobile takes some while
workingpatrickover 2 years ago
nice try nsa
waynesonfireover 2 years ago
in rust?
Komodaiover 2 years ago
Your site is completely killing my browser.