I wrote a new blog entry on adding Mastodon comments to my blog. And, if all goes well, you'll be able to comment on it here, and have those comments appear there. šŸ¤ž

https://beej.us/blog/data/mastodon-comments/

#programming #webdev

Mastodon Comments

@beejjorgensen Very cool!
Am I replying mostly so I can see my comment on the blogpost? Maybe!
@beejjorgensen excited to read through this and see my comment!
@beejjorgensen What a great creative use of mastodon!
@beejjorgensen cool idea and also I want to see my comment lol!
@beejjorgensen ah, amazing - i was just thinking of implementing something similar on my site. thanks for the proof of concept!
@beejjorgensen This is an amazing idea, I would love to see more blogs/news sites/anything use mastodon for comments like this
@beejjorgensen Very cool! Some JavaScript calling Mastodon's API is a nice clean way of doing it.
@beejjorgensen This is such a great idea. Love it.

@beejjorgensen

Let's see how it works with markdown style code comments and a little ascii art:

```
()()
(. .)
c(")(")
```

@spartanatreyu that rendered as markdown, but it also rendered as markdown here in Mastodon.
@beejjorgensen This is super cool. Perhaps @write_as would be interested.
@beejjorgensen Very cool! Some years back I set up GitHub-hosted comments using utterances (https://github.com/utterance/utterances) for my blog. It works well enough (free, ad-free), but Fediverse integration is clearly truer to the spirit of Indieweb.
GitHub - utterance/utterances: :crystal_ball: A lightweight comments widget built on GitHub issues

:crystal_ball: A lightweight comments widget built on GitHub issues - utterance/utterances

GitHub
@beejjorgensen Huh, I did the exact same setup and everything, but with lemmy instead of mastodon. Funny how that works out. You can see mine here https://blog.coship.fyi/blog/lemmy-comments/
My blog now has Lemmy comments - Coship

Coship
@beejjorgensen you convinced me on both the static generator and mastodon comments. I'm already doing something with markdown, and the last bit about automating the post creation totally felt like a challenge (and I don't even have any traffic lol). Good post

@beejjorgensen

Nice job! I did something similar very recently:

https://blog.nawaz.org/posts/2025/Jan/adding-fediverse-comments-to-my-static-site/

I suggest one not have to hit "View Comments" to see them. I, and perhaps most people, have been programmed to ignore things like that. In fact, I was about to reply to you saying that it wasn't working because I couldn't see the comments!

Adding Fediverse Comments to My Static Site

@beetle_b @beejjorgensen I also thought there were no comments. I was going to reply and *that's when* I actually read the View Comments button. Amazing what our brains can filter out.

Maybe it could load the comments when the Reply button becomes visible?

@beejjorgensen

Oh, and BTW, for whatever reason mastodon.sdf.org's link to your toot doesn't show up in the search on my instance, although searching for your profile does work.

I don't know if it's a problem with your instance or mine. But it may be a barrier for people to leave comments (having to first find your Mastodon profile, then find the relevant toot, and then reply).

@beejjorgensen

Never mind - the search works now. Probably a temporary glitch.

@beejjorgensen I've done this on my site for a couple of years, but your write-up is a very polished walk-through of how to do it in detail. Kudos!

@beejjorgensen I'm quite fond of mastodon replies - it lets me use my account rather than making one on every site / with some system that's going to spam me next year / etc :)

sorta like Gravatar, but with much better commenter-recognition.

@beejjorgensen

Honestly, had been expecting to see something like this rolled out as a sort of inline fedi client, for blogs and blog-likes, years ago.

Glad to finally start seeing some proof-of-concept implementations showing up in recent days. (There's someone else who for a few weeks now has been posting toots that include a disclaimer "replies to this will appear on my blog".)

@beejjorgensen For science. Edit: It works!

@beejjorgensen Great project. I took the easy way and used
https://github.com/dpecos/mastodon-comments
on
https://kdeexpress.gitlab.io/posts/kdeexpress/41-kde-express/

And I'm waiting to more Podcast Apps to use the Social Interact tag from Podcasting 2.0 to use Mastodon as comment system.

GitHub - dpecos/mastodon-comments: Webcomponent that embeds a Mastodon's toot conversation in a HTML page

Webcomponent that embeds a Mastodon's toot conversation in a HTML page - dpecos/mastodon-comments

GitHub

@beejjorgensen This is very cool.
I've got to do this too.

Hello future beings... šŸ‘‹

@beejjorgensen it would be very cool if the web linked to the Mastodon post, probably with via DateTime of the post or something.
@sixty4bit yeah, I need to add that functionality.
@beejjorgensen Testing to see if this works with the tusky android client as well.
@beejjorgensen Very nice. I guess we could do the exact same thing with matrix as well. By having a unique room per blog post. I wonder which of mastodon or matrix would be easier to moderate against spam.
@beejjorgensen This a comment, specifically left as a comment to comment on commenting on a blog post using Mastodon reply's as comments. How amazingly cool!
@beejjorgensen, thanks, I think I’m going to implements something like this myself.
@beejjorgensen It's really cool to use my own Fediverse account to leave a comment 😮
@beejjorgensen It's cool to be able to comment from my account on https://mathstodon.xyz . I also like the idea that the comments are not loaded by default.
Mathstodon

A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Mastodon hosted on mathstodon.xyz
@beejjorgensen Thanks for sharing. šŸ˜… It just made lobsters front page.
@beejjorgensen Nice! I recently also linked my blog (created via a self-written static site generator) to mastodon (and faced the same Chicken & Egg Problem), but also loading mastodon replies into the blog sounds like an interesting next step.
@beejjorgensen This is unbelievably cool

@beejjorgensen Love the article and I made a Github Action for reading mastodon link

https://fundor333.com/post/2025/github-action-for-syndication-links/

Github Action for Syndication Links | Fundor333

How I have syndications'links fill by the machine

Fundor 333