IronOxidizer / lemmy-lite

A static, JSless, touch-friendly Lemmy frontend built for legacy web clients and maximum performance
https://lemmylite.crabdance.com
GNU Affero General Public License v3.0
79 stars 5 forks source link

Any interest in reviving this? #7

Open canted opened 1 year ago

canted commented 1 year ago

@IronOxidizer With renewed interest in Lemmy and other Reddit alternatives, and seeing the complexity and lack of performance of the standard Lemmy UI, I think your approach here is worthwhile and possibly even the better approach.
If you could update to make this compatible with Lemmy's current docker setup, I could contribute on the front end

IronOxidizer commented 1 year ago

As much as I would like to pick this project back up, I'm currently too busy with work and I have other FOSS projects prioritized over this one. I'm open to reviewing PRs, but other than that, I'm not able to commit any other time. Feel free to fork it though, I'd love to see how other people iterate upon what I have!

Nutomic commented 1 year ago

The code is three years out of date. Instead of updating its easier if you delete the api file and copy the api code from lemmybb instead.

hbina commented 1 year ago

I would love to have a lemmy frontend that have very, very minimal UI like the old Reddit!

ghost commented 1 year ago

Hi, I would like to contribute to this project! I wonder why the setup is quite complicated (requires nginx and friends)? I assume this is just a web server middle man that calls into Lemmy's API and spits out HTML for the user? I am thinking of ripping it off to make setup much simpler if you don't mind (and if it's feasible, hence the question).

Sorry if this is a dumb question.

IronOxidizer commented 1 year ago

nginx is only required to serve the static assets (SVGs and CSS). It's possible to replace this by compiling the assets into the binary and serving it with actix-web via something like actix-web-static-files. You could also do it manually via include_bytes

ghost commented 1 year ago

I have rewritten the whole thing in nodejs (sorry :sob:). I am very new to lemmy API but what I need help most is with the HTML stuff. I just need someone to create the equivalent handlebars template.

link: https://github.com/yuyuriyuri/lemmy-lite

ghost commented 1 year ago

Hello everyone :heart:,

So I looked into it again and the changes required doesn't seem to be so bad. There's a lot of things that need to be reworked (Now need to solve the comment tree on our own, recover query parameters and recover search functionality) but its looking good so far!

I have also removed the need to setup NGINX so deployment is much easier now. Ideally, all one need is to run cargo run -- --port <>.

This is the branch https://github.com/yuyuriyuri/lemmy-lite/tree/yuyuri-refactor

IronOxidizer commented 1 year ago

One thing to note, I was also using NGINX to serve gzipped assets to make it even lighter with regards to bandwidth. If you're compiling the assets into the binary with one of the methods I mentioned above, you'll need to also create a gzip copy and include that in the binary aswell. Don't forget to also set the encode type to gzipped in the http header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding