Try BentoPDF if you haven't / are unhappy with StirlingPDF
from smiletolerantly@awful.systems to selfhosted@lemmy.world on 21 Oct 14:27
https://awful.systems/post/6024275

Not an ad, I’m not involved with Bento (or Stirling, for that matter). I’ve been unhappy with Stirling for a while (why do documents need to be uploaded to the server? That makes it really hard to safely host publicly. Why is it so slow? Plus, too many things are put behind a fucking paywall).

Learned about Bento this morning, tried it out, really liked it, spent an hour today packaging it for nixpkgs. It doesn’t quite have feature parity with Stirling yet, but at least for me, everything I need is there, it’s fast, and it keeps processing in the browser. Like, not even joking: the output of the build process/nixpkg are just a couple of static HTML files and some WASM. No server-side components at all. Really refreshing to see.

#selfhosted

threaded - newest

darcmage@lemmy.dbzer0.com on 21 Oct 15:07 next collapse

I saw this in the selfhosted newsletter and decided to give it a shot. I liked stirling but also found it slow. My first reaction after trying Bento was “this is magic, how does this work?”

I have it running on a pi4 now.

ryper@lemmy.ca on 21 Oct 15:40 next collapse

Their web page doesn’t really mention self-hosting, but there’s github link way down at the bottom and that has self-hosting instructions.

smiletolerantly@awful.systems on 21 Oct 15:54 collapse

Ah, thanks for mentioning. Yep, they have a docker image; as mentioned, a nixpkg will be available soonTM; and frankly, you can just build / download the release artifacts and put them on any static host.

seang96@spgrn.com on 21 Oct 20:48 collapse

I want to swap to this but also want to do a few PRs but haven’t had the time.

  • Dockerfile exposes port 80 and runs as root
  • Less concerning, but dislike it, the scripts and CSS use remote cdns rather than being bundled locally

Otherwise I am excited for this. Stirling doesn’t really support replicating even with license and its fat image takes up a bit of my disk space for images.

smiletolerantly@awful.systems on 22 Oct 06:21 collapse

Yeah those are good points. Also noticed the CDN thing, it’s a bit annoying for a privacy-first project… But should be an easy fix 😄

Stirling’s backend is Java. So, yeah, heavy and slow sounds about right.

seang96@spgrn.com on 22 Oct 11:03 collapse

Yeah very exciting project and to be honest a lot of popular services run as root by default. That said this ones harder to change from port 80 without changing the image. Could mount a nginx.conf to override probably though.

smiletolerantly@awful.systems on 22 Oct 11:26 collapse

Why not open a PR to make it configurable? The maintainer is super active and friendly.

seang96@spgrn.com on 22 Oct 11:56 next collapse

Plan to if no one beats me to it… Just gotta find time when I am free and have the energy to program more.

seang96@spgrn.com on 22 Oct 13:20 collapse

More worryingly now looking at loaded JS again it loads an analytics JavaScript file too.

github.com/alam00000/bentopdf/blob/…/index.html#L…

smiletolerantly@awful.systems on 22 Oct 13:45 collapse

While I don’t like it, it’s not hidden either:

bentopdf.com/privacy.html

There should definitely be an option to disable this for self-hosting, but if it’s just a counter for how often each tool is used by all users combined… Eh…

(Stirling also has something similar)

seang96@spgrn.com on 22 Oct 14:37 collapse

Yeah stirling has options to remove though, at least I remember seeing the option since the beginning and disabled it haha. Option to disable that should probably be a 3rd PR then got some work to do lol

smiletolerantly@awful.systems on 22 Oct 14:46 collapse

Thank you for your sacrifice :D

seang96@spgrn.com on 22 Oct 23:34 collapse

Guess I don’t have to, the dev released a new update without analytics, scripts and fonts are internal and created an issue for running as root which someone’s assigned to. This project got some crazy momentum!

smiletolerantly@awful.systems on 23 Oct 04:22 collapse

Oh wow, awesome!