How to 'Like' a Post in Bluesky using Javascript
The Problem If you look at the API reference for Bluesky to 'like' a post, you'll find it isn't there. If you use the NPM repository for the AT protocol you can 'like' a post with this simple command: await agent . like ( uri , cid ) This works - but you have to have installed and loaded the entire module to make it work, and then you're in module hell with versions and upgrades and the rest. If you're ChatGPT you expect there's a simple API function, like this: await fetch ( 'https://bsky.social/xrpc/app.bsky.feed.favoritePost',{...}) but there isn't one. What's key about Bluesky is that it separates the application layer and the data layer. This matters a lot because it changes how we need to think about doing things like giving a post a 'like'. It's not simply a matter of performing a function. It's a matter of creating a record in a repository. Which repository? My repository. My repository is c...