Sean Santry

Participating in ActivityPub from a Jekyll Static Site

For a while I’ve wanted to see if I could build a minimal ActivityPub presence for my Jekyll-built static web site. If you’re reading this in a Mastodon timeline, I guess I got it to work. (To see future posts on my site, follow blog@santry.us from your favorite Fediverse location.)

I’ve been publishing this static site to S3 alongside a little Lambda@Edge function to route requests. The ActivityPub integration I’ve done adds static things like the ActivityPub actor and outbox to Jekyll and implements an additional Lambda for the dynamic pieces: accepting follows and pushing new posts out. The follower list is a DynamoDB table with one row in it. Me. Given the audience for this site, I imagine it will remain just me for the foreseeable future.

If you want the details — HTTP signatures, authorized fetch, and what Mastodon actually requires of a static site — ping me on hachyderm and I’ll write it up.