Public
Blog starter with Standard.site integration
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.

An atmospheric blog

This is a starter blog that integrates with the AT Protocol using Standard.site. You can read more about that in the example blog post: Hello, atmosphere. This template val assumes you're using Bluesky as your PDS.

Instructions

To create an atmospheric blog of your own:

  1. Remix this val
  2. Fill out constants.ts (except DID and RKEY)
  3. Fill out the BSKY_APP_PASSWORD environment variable
  4. Run init.ts
  5. Copy-paste logged DID and RKEY into constants.ts

Whenever you write a new markdown file in /posts, a record of that document will be published to the AT Protocol when the publish.ts cron runs daily. Or, you can manually run publish.ts to publish right away.

Tips

  • To add post thumbnails and images, drag 'n' drop a photo into any markdown file
  • To add a custom subdomain, open main.tsx and click the triple dots menu next to ► Run
  • To understand how this blog works, ask Townie