Back to packages list

Vals using lemmy-js-client

Description from the NPM package:
A javascript / typescript client for Lemmy
singpolyma avatar
singpolyma
jmpblog2lemmy
Cron
An interactive, runnable TypeScript val by singpolyma
0
canpolat avatar
canpolat
getLemmyJwt
Script
An interactive, runnable TypeScript val by canpolat
0
canpolat avatar
canpolat
createQuotePost
Script
An interactive, runnable TypeScript val by canpolat
0
pdebie avatar
pdebie
syncCommentToLemmy
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).
1
pdebie avatar
pdebie
publishYoutubeToLemmy
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!
3
pdebie avatar
pdebie
getLemmyPosts
Script
Fetches the 20 active posts in a community from a specific Lemmy instance.
0
1
Next