Ditching Disqus: Building Blog Comments with Mastodon

2025-02-23

Tired of Disqus ads and tracking, the author sought an alternative and chose to build a Mastodon-based comment system using the Mastodon API. The article details the process: obtaining the Mastodon post ID, fetching comment data via the API using JavaScript, generating and embedding HTML into a static site, handling media attachments, and implementing a blacklist. The author also explains their static site generator and how they embed the Mastodon post ID into the HTML. This is a practical guide on building a personalized blog commenting system using open-source technology.

Development