Is anyone working on a Lemmy client for Emacs?

https://lemmy.sdf.org/post/44360

Is anyone working on a Lemmy client for Emacs? - SDF Chatter

The lack of keyboard interface on Lemmy is killing me, but really what I want is a good client in Emacs. However, it’s beyond my Elisp to design and start such a project, but I could probably help. Anyone on it?

Help the world and start learning Elisp while writing a Lemmy client.

The point is there are people out there who are very familiar with the options for making this, who could easily kick-start a solution that would be more rational and better designed and based on a well conceived base. If I were to do it I would re-invent the wheel and flail around with awkward solutions.

I do know Elisp and have written packages so am at a basic-intermediate level. I just recognize that experience has benefits and I could contribute best by enhancing and fixing someone else's base design.

I'm not forcing you, but "re-invent the wheel" is a bit misconception when Lemmy itself is in the very early development stage.
You misunderstand me. I mean reinventing the wheel of the various functions the solution requires. The actual communication with Lemmy will be a tiny fraction of the work.
It's always a learning opportunity regardless! Could be a great portfolio project as well. If you're worried about reinventing the wheel: Google every step of the way to find if a well supported package already exists for what you're trying to do. Read code of other popular packages that implement that feature you need and "steal" it from them. Maybe your lisp won't be very idiomatic but that can always be fixed and you have to learn that through experience anyways.
Oh, thanks for the correction!
Any emacs interface would be great. Perhaps someone who is familiar with elfeed could hook into that?
FWIW I'm reading lemmy RSS feed with elfeed (hope this gets through - popping my lemmy cherry here)
can you see comments that way?
I'd love a variant of thanhvg/emacs-hnreader or thanhvg/emacs-reddigg!
IMO, the easiest would be to adapt nnreddit to Lemmy. AFAICT, this uses rtv to query Reddit, but it could switch to lemmy-terminal-viewer instead
GitHub - dickmao/nnreddit: A Gnus backend for Reddit

A Gnus backend for Reddit. Contribute to dickmao/nnreddit development by creating an account on GitHub.

GitHub

i'm the mastodon.el maintainer. i wonder if a decent idea for this would be to have an API library that could be used with gnus, elfeed, md4rd, or anything else? it seems like everyone will want to browse it in their preferred environment.

some lemmy things are visible in mastodon.el, but it's currently not great. not only because of how masto rendering is based on a microblog style view, but also because a lot of content doesn't federate that well yet.

i took a look at the lemmy API docs, but they don't seem to provide an overview of the endpoints?

I think this would be the best way to go.

Myself, I'd love to be able to interact with Lemmy through Gnus, but it would be great to have a general emacs API for flexibility so you can choose the front-end.

It looks as though the api for a client is defined in api_common.

lemmy/crates/api_common at main · LemmyNet/lemmy

🐀 A link aggregator and forum for the fediverse. Contribute to LemmyNet/lemmy development by creating an account on GitHub.

GitHub
thanks for the link. so https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs shows the paths and params, i tried them in a rest client and it's no too hard to follow.
Thanks, yes that's a more useful source than my one.

https://codeberg.org/martianh/lem has some basics, functions returning plain JSON. i didn't do any auth, but if its oauth and so similar to mastodon.el, we cd also just move its auth code into the fedi.el library. and fedi-http.el is already set up to handle auth tokens.

discovering lemmy's query parameters is quite a pain for me, as i don't know rust.

That looks a promising start. I'll have a look into it when I have some time. I hope some others do too!

I don't know Rust either, but it does appear to be relatively easy to understand; could be worse anyhow.

It would be nice to have a fully documented API to work from: probably not a priority for the lemmy devs right now, I'd imagine.

I have quite a few endpoints working now, each mostly just with the basic options implemented, and its easy to add endpoints with a handy macro i wrote. There are still quite a few quirks with lemmy itself that i'm struggling to work out, like how to search for my second account on another instance and actually have it appear in results. I might ask in a support room. The type-heavy rust and ts code is super foreign to me, it's also very large. Maybe having the basics down I cd start on some necrco diy interface. [posted via lem.el]

Lol oops, i edited using the wrong id! baby steps. For reference, the API 'docs' can be found in the following: https://join-lemmy.org/api/classes/LemmyHttp.html https://github.com/LemmyNet/lemmyBB/tree/main/src/api https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs.

The first seems most complete.

That's a brilliant idea! I hope that someone will pick it up and develop it. I've been super excited with Lemmy and the fediverse and if this happens it will take the whole experience to another level!

made some progress. mainly spent time working on getting the sorting types and listing types going, so you can cycle between them on the go. v basic display of post details in byline, etc., but that can easily be spruced up by pulling code from mastodon.el. + markdown rendered posts/comments, uwu!

codeberg.org/martianh/lem. the readme has a rough todo list.

logging in and loading lem as package is still pretty rough, or kinda broken. but i’ll get it sorted soon.

still gotta build a comments tree also, that’s a biggie.

lem

emacs client library for lemmy instances. WIP.

Codeberg.org
I had also been thinking about this and figured it would make sense as a backend for gnus.el. I thught of starting a thread here but found this one first, so am posting to say I’m also interested in using such a thing. Idk if I’m organized enough to code it myself, due to RL distractions.