Back to APIs list

Bluesky API examples & templates

Use these vals as a playground to view and fork Bluesky API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
vladimyr avatar
bookmarkletPostEval
@vladimyr
script
Evaluate tweet or Bluesky post #bookmarklet
vladimyr avatar
fetchBlueskyPost
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
postEval
@vladimyr
http
// import { fetchTweet } from "https://esm.town/v/dpetrouk/fetchTweet?v=35";
vladimyr avatar
libbluesky
@vladimyr
script
// @see: https://docs.bsky.app/docs/api/com-atproto-identity-resolve-handle
buttondown avatar
runner
@buttondown
interval
An interactive, runnable TypeScript val by buttondown
stevekrouse avatar
blueskyAlert
@stevekrouse
script
Bluesky keyword alerts Custom notifications for when you, your company, or anything you care about is mentioned on Bluesky. 1. Query Specify your queries in the queries variable. Bluesky doesn't support boolean OR yet so we do a separate search for each keyword. 2. Notification Below I'm sending these mentions to a private channel in our company Discord, but you can customize that to whatever you want, @std/email, Slack, Telegram, whatever.
stevekrouse avatar
searchBlueskyPosts
@stevekrouse
script
An interactive, runnable TypeScript val by stevekrouse
rcurtiss avatar
annoy
@rcurtiss
script
An interactive, runnable TypeScript val by rcurtiss
rcurtiss avatar
bsky_rss_poll
@rcurtiss
script
Bluesky RSS bot This is a bot that polls an RSS feed for a new item every hour and posts it to Bluesky. It's split into three parts: bsky_rss_poll This function runs every hour and polls the provided RSS feed, turns it into XML and runs the check. If there is a new post, it tell rss_to_bsky to post a link (and the title) to Bluesky latest_rss This is a stored object that keeps the latest object for the poll to test against rss_to_bsky This function turns the text post into a rich text post and posts it to Bluesky
stevekrouse avatar
bskySocialEx
@stevekrouse
script
// Forked from @lukas.bskySocial
jordan avatar
bsky_rss_poll
@jordan
script
Bluesky RSS bot This is a bot that polls an RSS feed for a new item every hour and posts it to Bluesky. It's split into three parts: bsky_rss_poll This function runs every hour and polls the provided RSS feed, turns it into XML and runs the check. If there is a new post, it tell rss_to_bsky to post a link (and the title) to Bluesky latest_rss This is a stored object that keeps the latest object for the poll to test against rss_to_bsky This function turns the text post into a rich text post and posts it to Bluesky
ajax avatar
annoy
@ajax
script
An interactive, runnable TypeScript val by ajax
nuklearfiziks avatar
bigLeagueMe
@nuklearfiziks
script
Big League yourself! WARNING, this will unfollow every user you follow!
francoischalifour avatar
getInvitesFromReddit
@francoischalifour
script
An interactive, runnable TypeScript val by francoischalifour
jordan avatar
rss_to_bsky
@jordan
script
An interactive, runnable TypeScript val by jordan