this post was submitted on 11 Jun 2023
76 points (96.3% liked)

General Programming Discussion

7785 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

Hi folks!

I am a new convert coming over from Reddit. I want to build out a Lemmy React Native client. Woo!

I'm very familiar with frontend dev and react (been doing so for a solid chunk of my career), however I am quite new to the Fediverse and not entirely sure how to build federated applications.

I see the lemmy-js-client which will likely help me tremendously, but it's not terribly documented.

Anyone else out there hacking on a TypeScript/React based Lemmy client and willing to share notes? :)

top 19 comments
sorted by: hot top controversial new old
[–] [email protected] 13 points 1 year ago (1 children)

Just started work on an iOS client today using React Native. Honestly, the lemmy-js-client is pretty straight forward even if you're just using typehints from Typescript. Interesting issue is dealing with comments and getting those properly sorted and creating the comment chains. If you want to chat and have Discord, add me: gk#5175

[–] vodnik 4 points 1 year ago (1 children)

Have you created a GitHub repo where I can follow the progress?

[–] [email protected] 2 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Can this be used as a browser client, without iOS/Android.... on Chrome/Firefox?

[–] [email protected] 1 points 1 year ago

Yes, it is a native app, not a web client.

[–] [email protected] 8 points 1 year ago (2 children)

I'm seeing a bunch of "me too!" comments, which is cool. Some of you should group up and really wow us plebs :)

[–] [email protected] 4 points 1 year ago

Agree. Also, PLEASE make the UI like the infinity reddit client. That thing is amazing.

[–] [email protected] 1 points 1 year ago

Just circling back on this: I've started work on a Lemmy iOS app! It's far from wow'ing right now, but maybe some day! :) https://lemm.ee/post/116554

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

Awesome! I'm doing the same thing. Yesterday I got login, loading the first page of posts, markdown rendering, and counts for comments and upvotes working.

It's not even to alpha level yet, but once I get something I feel is up to snuff for a first push, the repo is at https://github.com/1hitsong/AOS/

[–] [email protected] 0 points 1 year ago (1 children)

Are you using the Javascript library or going directly to the /api/v3 calls?

I'm playing around with SvelteKit client and I almost prefer going with the raw api calls like the smartphone clients are doing.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

I'm using the JS client - LemmyHttp Class.

Here's what it currently looks like, for those interested.

[–] [email protected] 4 points 1 year ago

I really hope your project or some of the other alternative frontend projects take off for Lemmy's sake. I really feel like lemmy is being held back by its UX right now.

[–] coaleh 3 points 1 year ago

Haha! I too have wanted to do the same thing! Well.. not in React - I actually wanted to use leptos because it seems neat. So ideally I'd want an API client that'd work in rust in wasm. Or maybe it's simple enough to migrate an existing one over.

As this is very likely just a side project for me, I may as well share my desires for any new client. One thing I'd really like to see in a Lemmy UX is a swipe based navigation like in Sync for reddit. Such a lovely way to navigate.

Oh oh! and some decent customisation on different views (depending on communities and whims). Like big cards with previews and smaller ones with title emphasis.

Tbh all of this is basically what Sync had. Sync was great..

Not sure if making mobile apps these days is required as web apps can get you pretty much there with service workers etc. I guess hosting is still the main issue even though offline first apps can mitigate that a lot!

Thank you for reading my rambles. It's pretty much a mind dump rather than being directed at anyone etc :)

[–] [email protected] 3 points 1 year ago (1 children)

I've also started working on my own Lemmy app (in NativeScript). Maybe we should all create a community to share insights.

[–] [email protected] 1 points 1 year ago

Let us know if you create a community for clients&apps

[–] [email protected] 2 points 1 year ago (1 children)

I’ve been wondering the same!

Does anyone know of any Lemmy dev communities (preferably a Lemmy community but I’d settle for a Discord) dedicated to resource for software devs to learn the protocol? I’m interested in creating bots to help Reddit users and subreddits migrate here.

[–] vodnik 2 points 1 year ago (1 children)

Check out Lemmy Project Chat. They link to it in the dev documentation for lemmy.

[–] [email protected] 2 points 1 year ago

thanks for this! Was looking for something similar :)

[–] cornflour 2 points 1 year ago

I just started on a lemmy web client (with typescript/next.js) as well! My goal is to make the federation experience (browsing other instances, switching between accounts across instances, etc.) better, as i think it's a bit rough at the moment.

lemmy-js-client is very nice in that it has input and return types for everything, but I agree that the docs could be better (it can be unclear on what each prop does).

load more comments
view more: next ›