As a fast-follow to the blog post from earlier today on the benefits of an open network, here's a concrete example. Your blog's comment section can be pulled directly from Bluesky.
Post a reply to this thread and watch it appear in the comments section below.
TL;DR Code snippet here
Here's a GitHub gist.
Update: This is now available as a npm package. (Thanks Cory!)
npm install bluesky-comments
What benefits does this have?
- Streamlines where the chatter is. If someone comes across my blog post later, they can easily find the thread where people discussed it.
- Easily moderate my comments section. Users I block on Bluesky will not show up in my blog comments section.
- Additionally, Bluesky's moderation service provides additional coverage for my blog comments.
What else could I do with this?
There are so many improvements that I just haven't had time to do yet, and plenty more that I haven't even thought of. If you have ideas, drop a reply and let us know!
- Sort replies liked by OP at the top of the comments section, and add a nice UI badge that says "liked by OP."
- Pin posts at the top with a tag "featured by OP."
- Allow people to login to Bluesky directly from your blog and post a comment on the article, which shows up as a reply on Bluesky. (I believe someone has done this already, but I can't remember who! If it was you, let me know so I can add a link to your blog here.)
Bluesky's open network could be the comments section of the entire internet. Imagine news organizations using replies on Bluesky as their comments section on their website!
Thanks to Samuel for providing the initial code snippet for me! Read his blog post here.
Loading comments...