📢 Webmentions made easy
New article about my webmentions library.
I love Webmentions, and I see them as an important building block for a truly decentralized peer-to-peer Web.
However, even though the #W3C recommendation has been around for nearly a decade, there aren’t many mainstream implementations out there, besides a few personal blog platforms and a Wordpress plugin.
With this library I have tried to lower the entry barrier to integrating #Webmentions on your website, so you can easily send and receive comments from/to other websites by simply publishing a page with a link to them - in line with the POSSE principle.
If you use FastAPI or Flask on Python, you serve your mentionable pages as static files and you want to store mentions on a SQLAlchemy backend, the integration takes just a couple of lines of code.
More customized integrations can be achieved by simply extending some of the basic API objects.
More bindings (for JavaScript/TypeScript and Go first) are on the backlog. The Go binding in particular would allow me to implement this also in #Writefreely - I’d love to make it compatible both with ActivityPub and Webmention, so that interactions can happen with platforms supporting either of the specification.
And, who knows, one day it’d be nice to have it on Mastodon too. Imagine a future where you write a post about a blog article on your Mastodon profile, and it gets automatically rendered in the comment section of that website…
For now my personal blogging platform madblog (which powers both my personal blog and the Platypush blog) is the reference implementation for this, and you can already see some self-mentions in the wild in some of my old articles.
Links
Self-hosted repo
Github mirror