FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
jonasmerlin
jonasmerlinbluesky_bot_template
Public
Like
2
bluesky_bot_template
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
2
History
Environment variables
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

This is a very simple template for the kind of Bluesky bot I build.

It's very much all over the place. e.g. it sets up the "Agent" to post (because that part is documented well), but doesn't use it to search for posts. You can do that if you want (if you do, look here), but I like to simply rawdogg the API, so that is what I'm doing here. The custom Post type is incomplete and only contains the stuff I found relevant. Error handling is payed only lip service to (at best) as well.

...But it works for me!

How to use

If you want to use this, you will have to set 2 environment variables for your val:


BLUESKY_USERNAME
BLUESKY_PASSWORD

From what I can tell from my testing:

  • BLUESKY_USERNAME can be both the bot account's handle as well as the email you use to log into it with.
  • BLUESKY_PASSWORD can be both the account's main password as well as an app password.

The rest is commented in the code. If you have any questions, feel free to message me on Bluesky:

Jonas-Merlin Schumacher (@jonasmerlin.bsky.social) — Bluesky

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.