I’ve been working on a Threadiverse frontend for almost a year called Blorp. Originally it was Lemmy only, but now it also includes PieFed. (source code) (try web version)
I just Dockerized the frontend and started publishing the Docker image, and I would love your feedback!
REACT_APP_DEFAULT_INSTANCE
(e.g. lemmy.zip no trailing slash)- Changes the default instance
REACT_APP_LOCK_TO_DEFAULT_INSTANCE
set this to “true” or "false"- When true, this prevents the frontend from logging into other instances. Perfect if you host your own Lemmy instance and want this frontend to exclusively be used with your instance
# pull the latest Blorp image docker pull christianjuth/blorp:latest # run it on port 8080 (host → container), passing any runtime env‑vars you need docker run -d \ --name blorp \ -p 8080:80 \ -e REACT_APP_DEFAULT_INSTANCE="https://lemmy.zip/" \ -e REACT_APP_NAME="Blorp" \ -e REACT_APP_LOCK_TO_DEFAULT_INSTANCE="false" \ christianjuth/blorp:latest
moseschrute@lemmy.world 2 weeks ago
I was today years old when I learned Lemmy doesn’t let you have links without a trailing slash
POST https://lemmy.ml/api/v3/comment
Image Imagemoseschrute@piefed.social 2 weeks ago
It get's even weirder. I'm now writing this from PieFed. If you view this comment from PieFed it won't have the trailing slash, but from Lemmy it will.
https://piefed.social
cecilkorik@lemmy.ca 2 weeks ago
Very interesting I wonder what happens if I post both trailing and non-trailing options, do they both get canonized into the same format?
piefed.ca – has a trailing slash piefed.ca – does not
Thank you for having me along on this journey. I don’t really know where it’s leading, but maybe it’s about the weird software behaviors we discover on the way.
Zwiebel@feddit.org 2 weeks ago
Aren’t trailing slashes completely useless?
shnizmuffin@lemmy.inbutts.lol 2 weeks ago
No, not at all.
They are a shorthand for “give me the index of this directory” rather than “give me the first file you find named this.” In some configurations, the presence of absence of a trailing slash dramatically reduces the amount of computation an HTTP server must execute before responding to the request.
MysteriousSophon21@lemmy.world 2 weeks ago
Trailing slashes actually serve an important purpose in URLs - they indicate you’re requesting a directory rather than a file, which affects how servers route reqeusts and can impact caching, redirects, and SEO.