Connecting My Socials

New posts to Bluesky, Mastodon, and X, and pulling the reactions back in.

Connecting My Socials
Published on in Blogvent, 11ty & Netlify.

Day 2 of Blogvent, where I publish one post per day until Dec. 25th.

One of the many features I've wanted to add to my website was not having to crosspost a blog permalink to my socials manually.[1] It feels archaic and cumbersome. I also wanted the reactions (replies, likes, reposts) to those posts aggregated and shown inline with the blog post. Those of us who have been building websites for a while will remember the early days of trying to achieve this dream with WordPress comments, a Facebook Wall, Disqus, and Webmentions. Heck, I even contributed to a WordPress/Xanga crossposting plugin called Croissanga many years ago.[2]

Nothing ever stuck until I saw a modern approach that inspired me to try again. It comes from Adam Argyle, who has one of the greatest personal sites I have ever seen. The color, design, and interactivity are well balanced and complement each other. The best part, in my eyes, is how he aggregates 3 different networks with totally different APIs and groups them seamlessly into replies, likes, and reposts. That's just at the page level. There's a whole other level of complexity at the post type level (notes, articles, shows), which lets his site handle many kinds of content.

Taking inspiration from Adam, here's my poor man's version: automatic crossposting, plus a comments section built from the reactions.

Publish on Deploy

My website is still using trusty Eleventy on Netlify. The first step was adding published: false to the front matter, so a draft never makes it into a production build. Now writing a post looks like this:

  1. Write the post with published: false.
  2. Flip it to published: true and push.

On the backend, Netlify runs a function called deploy-succeeded after every successful deploy. On production deploys, it reads a small syndication.json file from the fresh deploy, finds any published post from the last 7 days that hasn't been shared yet, and posts it. The post IDs it gets back are saved in Netlify Blobs, so nothing is ever posted twice. If a network fails, the next deploy tries again.

The 7-day limit matters. Without it, the first deploy would have shared my whole archive. Nobody needs that.

Define Your Post Text

Next, each post gets one extra field for customizing social text. Each network shows that text with a link card underneath:

socialText: 📝 Day 2 of Blogvent. My blog now shares itself to Bluesky, Mastodon, and X.

Aggregating the Reactions

Scroll to the bottom of this post. Once it's shared, you'll see the likes, reposts, and replies from all three networks in one place.

A second function at /api/social looks up the saved post IDs and asks each network for its reactions. Bluesky and Mastodon have free, public APIs, so you get avatars for every like and repost, plus full reply threads.

X charges for every read, so it gets less. Likes and reposts from X only add to the counts, with no avatars. Replies do show up, with names and threads, but finding them takes X's search, and search only goes back 7 days. So every reply the blog finds gets saved, and it stays listed after it drops out of search.

That cost is also why caching matters. Netlify's CDN keeps each response for 15 minutes, so Bluesky and Mastodon get asked at most every 15 minutes per post. X is saved in Blobs and only asked again every 6 hours.

I'd recommend skipping X at first, since it adds a lot more complexity with OAuth 2.0, and it's behind a paywall.

Join the Conversation

If everything works, this is the first post to go out to all three networks on its own. Reply, like, or repost on any of the three, and it'll show up at the bottom of this page.

  1. "POSSE". Retrieved December 2, 2026. ↩︎

  2. "Croissanga, a WordPress / Xanga Plugin". Posted December 12, 2004. ↩︎