That might not sound particularly impressive, since I think most people would consider "comments on blogs" to be a Solved Problem. But I dec

Adding comments to this blog - Graysky

submited by
Style Pass
2024-11-18 15:30:03

That might not sound particularly impressive, since I think most people would consider "comments on blogs" to be a Solved Problem. But I decided to go about it in a bit of a different way - all the comments are fetched directly from Bluesky. And I think the ease with which I did that goes a long way to demonstrating the power of Bluesky's Open Network, and is possibly worth talking about a little bit.

When I say "Bluesky is completely open", I really mean it. You don't even need an API key to query the AppView. Combined with the excellent tooling that Bluesky provides meant that implementating this feature took about hour, from scratch. Granted, I've been working with the API for a while now, but I think that's still pretty impressive.

In the actual implementation, I don't use BskyAgent in favour of using fetch directly, due to Next.js overriding the fetch function, but this version is a bit more readable and typesafe. And it's basically the same under the hood.

Leave a Comment