Integrating Bluesky Into My Website
PermalinkA few months ago, I added the possibility to POSSE posts to Mastodon. Now, I just added Bluesky. At the time, I mentioned the API not being as simple, and that’s why I put it off for so long. Looking in retrospect, it wasn’t that bad, I think I was a bit intimidated.
Bluesky and Mastodon have a lot of differences, and the fundamental way Bluesky works (the ATProtocol) makes it such that the essence of creating a post is very different. On Mastodon - or almost any other social media - you just call the API with the text and the server automatically detects links, mentions, etc. If needed, the server embeds a preview of the links in the post.
However, on Bluesky, you need to manually configure all this things. The text is just plain text. You need to indicate where the URL is in the text, where it points to, which mentions exist, whether to embed a website, and if so, the thumbnail, the title, the description, etc.
While all of this is automatically done by Mastodon, it all must be manually done with Bluesky. I think it’s an interesting philosophy, where your “profile” is essentially just a repository of data, and you’re just creating this whole data, and the server is not going to be modifying it. You even get a CID for all the operations you do, giving me a throwback to my previous work at Protocol Labs!