Into the Fediverse

Since Space Karen1 bought Twitter, Iā€™ve been looking at how I can make my presence on the World Wide Web more decentralised.

Social media icons: hearts and reposts

Iā€™ve dipped my toe in the waters, creating social media accounts on services like Mastodon2 and PixelFed3. But why stop there?

The distinctive thing about lots of federated social services is that theyā€™re built on top of open web standards like ActivityPub and Webmention. These are standards that any website can adopt to plug themselves into the Fediverse.

So thatā€™s what Iā€™ve done!

Iā€™ve added Fediverse features to this humble blog

Now, if you ā€˜likeā€™ or ā€˜boostā€™ a post on a service like Mastodon, and that post contains a link to a blogpost on this website, then your avatar will now appear in at the bottom of the blogpost itself. Cool, right?

My site will also send out ā€˜web mentionsā€™ to any webpage that is linked to from the blog post that I publish here. That doesnā€™t guarantee that the recipient will know about ā€“ muchless do anything with ā€“ it of course; but they can, if they do and they want to.

Made possible by generous people and free stuff

Iā€™ve got to admit, I donā€™t entirely understand how this all works. It does appear to work, though.

Making it work was complicated by the fact that this site is built on Jekyll and hosted on GitHub Pages. Jekyll is a ā€˜static site generatorā€™; thereā€™s no database or other fancy stuff actively running in the background. So adding these federated features has been a case of hacking together bits and pieces.

Iā€™ve used Aaron Gustafsonā€™s Jekyll Webmention Jekyll plugin to handle the sending and receiving of these federated signals every time my site is built. That plugin, itself, relies on two free web services ā€“ Webmention.io and Bridgy. It took a few hours to wrap my head around the basics and to set it all up. I also added some custom styles to display the outputs on my webpages (scroll down to see them!).

Give it a try

You can test this out right now.

If youā€™re on Mastodon, you can ā€˜likeā€™ or ā€˜boostā€™ this Mastodon post and your avatar should show up in the new likes and reposts sections at bottom of this page up to 24 hours later.

This should also work on other Fediverse platforms that use ActivityPub and Webmention too; just try to ā€˜favouriteā€™ or ā€˜likeā€™, ā€˜boostā€™ or ā€˜repostā€™ anything containing a link to a blog post on this site.

Iā€™ll be experimenting some more with this over the next few months, seeing what else the plugin lets me achieve. In the mean time; give this a like or boost and help me test it out!

  1. A.K.A. Elon MuskĀ ↩︎

  2. Like Twitter, but without Space Karen. You can find me at @johnpeart@mastodon.socialĀ ↩︎

  3. Like Instagram, but without the Zuck. You can find me at @johnpeart@pixelfed.socialĀ ↩︎