this post was submitted on 13 May 2026
42 points (100.0% liked)

Selfhosted

56958 readers
721 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

This release brings three main changes.

  1. The ability to filter links.
  2. Support for an optional notes field.
  3. Ability to edit expiry time and notes.

I try not to too many new features to avoid bloat, but it seemed like these were pretty useful for a link shortener, especially when managing thousands of short links. (To my surprise, some people even use it to manage millions of links.)

Please take a look at the release notes for a complete list of changes.

P.S. The next thing I'll be focusing on is improving throughput under sustained load. If anyone has experience with SQLite, feel free to drop any tips. All the db related code is here. I'm mostly interested in improving insert speeds when 1000s of inserts are done per second.

Edit: There's a Codeberg mirror as well.

top 18 comments
sorted by: hot top controversial new old
[–] Alfredolin@sopuli.xyz 2 points 2 days ago (1 children)

This is very cool. I like your github write up a lot. Hosted.

[–] SinTan1729@programming.dev 1 points 2 days ago

Thanks. Hope you like it.

[–] OpenAltFinder@lemmy.world 3 points 3 days ago (1 children)
[–] SinTan1729@programming.dev 3 points 2 days ago

Thanks. Just a small correction. The API isn't really REST, it's REST-ish but probably closer to JSON-RPC.

[–] happy_wheels@lemmy.blahaj.zone 5 points 3 days ago (1 children)

This looks pretty interesting. I have been passively looking for such a service. I will give this a whirl and try it out.

[–] SinTan1729@programming.dev 3 points 3 days ago

Hope you like it.

[–] adarza@lemmy.ca 1 points 3 days ago (1 children)

Opening the shortened URL in your browser will instantly redirect you to the correct long URL. (So no stupid redirection pages.)

an interstitial or redirect page would be a security feature, especially for a shortener open to the public.

[–] Neptr@lemmy.blahaj.zone 3 points 3 days ago (1 children)

Can you elaborate? Seems interesting.

[–] adarza@lemmy.ca 0 points 3 days ago (2 children)

bad actors use shorteners to mask the actual url of their pages so their potential victims don't know where they're going until it is, perhaps, 'too late'

[–] SinTan1729@programming.dev 5 points 3 days ago* (last edited 3 days ago)

That could be, but I don't think that it should be relied upon. The shortener itself can execute malicious code, so that kind of security is, in my opinion, essentially theatre. I'd just say that don't click on links that you don't trust.

This project is for own use/use with friends/family/internally in an org etc., where trust isn't an issue. Of course, I cannot stop anyone from using it in any other way that they see fit. It can help shorten annoying long links, but that's it.

[–] irmadlad@lemmy.world 1 points 3 days ago (2 children)

Didn't down vote you, but if someone clicks a link without, at the very least, mousing over it to view the url, then you get what you get. One of the most effective anti-virus programs you can ever deploy on any system is your own prudence and discretion. It's not the fault of the url shortner, it's the moron clicking indiscriminately.

[–] surewhynotlem@lemmy.world 3 points 3 days ago* (last edited 3 days ago) (1 children)

But it's a shortened url. You can't simply mouse over it?

Edit: oh, I think you're taking about an interstitial?

[–] irmadlad@lemmy.world 1 points 3 days ago

Url un-shortners exist.

[–] adarza@lemmy.ca 3 points 3 days ago (1 children)

those "morons" represent the vast majority of internet users.

[–] irmadlad@lemmy.world 3 points 3 days ago

Dude...one of the most cornball things I've ever heard in my life but has some truth to it is 'You can't fix stupid.' It's 2026! Spool up. I would guess that the biggest portion of those morons are boomers, yet still, it's 2026. I'm sorry to sound so harsh but I really tire of the older set especially, but pretty much anyone in a technologically developed country claiming not to be technologically inclined. They had no flipping problem learning FaceBook. 'How to Use A Computer Tutorial' search turns up thousands of tutorials on that very topic. Unless you live in a remote area or a technologically underdeveloped country where technology is not readily accessible to the common man, then yeah. I'm a septuagenarian and I learned. I have no certs, or diplomas, or any thing, which should be obvious, but I get by pretty decent I'd say. It's pretty much attainable by the vast majority of people if they'd only put a little effort into it.

/rant

[–] clifmo@programming.dev -3 points 3 days ago (1 children)

Optimizing a dead internet engine

[–] Lemmchen@feddit.org 3 points 3 days ago (1 children)
[–] clifmo@programming.dev 1 points 3 days ago

OP says he wants to optimize thousands of shortened URLs as fast as possible. As soon as that sqlite db goes, any references to the shortened links go with it. Part of the Internet dies.