Back to packages list

Vals using lemmy-js-client

Description from the NPM package:
A javascript / typescript client for Lemmy
canpolat avatar
getLemmyJwt
@canpolat
script
An interactive, runnable TypeScript val by canpolat
canpolat avatar
createQuotePost
@canpolat
script
An interactive, runnable TypeScript val by canpolat
pdebie avatar
syncCommentToLemmy
@pdebie
script
This allows copying specific comments from Reddit to a Lemmy thread. Might be super specific to my use case, but we use this for example to copy over some content from the r/SpaceX Starship thread to the one on the Lemmy community (with their blessing).
pdebie avatar
publishYoutubeToLemmy
@pdebie
script
Publish a Youtube feed to Lemmy This allows you to automatically publish a Youtube channel to to a Lemmy community. Example usage: async function publishMyFeed() { try { return @pdebie.publishYoutubeToLemmy({ instance: "lemm.ee", auth: @me.secrets.lemmee, communityId: 23316, youtubeChannelId: "UChZgikssAJkmiQOv_sO-ngQ", lastSyncTime: @pdebie.spacexLemmyDb.lastSync, }); } finally { @pdebie.spacexLemmyDb.lastSync = new Date().toISOString(); } } Get a Youtube channel ID here . Make sure to set your lastSync properly, since otherwise you'll keep publishing new posts!
pdebie avatar
getLemmyPosts
@pdebie
script
Fetches the 20 active posts in a community from a specific Lemmy instance.
1
Next