• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
pdebie

pdebie

publishYoutubeToLemmy

Public
Like
3
publishYoutubeToLemmy
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
7/2/2023
Viewing readonly version of main branch: v3
View latest version
README.md

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!

Migrated from folder: Youtube/publishYoutubeToLemmy

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.