Building a Bluesky Sentiment Dashboard with Alpine and Chrome AI
Briefly

Building a Bluesky Sentiment Dashboard with Alpine and Chrome AI
"Good morning, programs! Today I'm sharing yet another example of Chrome's on-device AI features, this time to demonstrate a "Bluesky Sentiment Dashboard". In other words, a tool that lets you enter terms and then get a report on the average sentiment for posts using that word. I actually did this before (and yes, I forgot until about a minute ago) last year using Transformers.js: Building a Bluesky AI Sentiment Analysis Dashboard."
"So one big change from the previous post is that the public, unauthenticated search endpoint at https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts now returns a 403. You can't use it. I believe this was done to stop scrapers which is a bummer, but oddly, the authenticated endpoint at https://api.bsky.app/xrpc/app.bsky.feed.searchPosts works just fine, even without authentication. So for example, this will search for me: https://api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=Raymond+Camden My trust in this is absolutely not 100%, but that's enough to build a demo, right?"
A Bluesky Sentiment Dashboard demonstrates on-device Chrome AI that accepts search terms and returns average sentiment for posts containing those terms. A prior implementation used Transformers.js for Bluesky and a similar dashboard existed for Twitter before API access was restricted. The public unauthenticated Bluesky search endpoint now returns a 403 to limit scraping, while the authenticated endpoint responds even without authentication and accepts query parameters. The demo stacks include Alpine.js for lightweight interactivity and Shoelace for UI components. Endpoint reliability is not completely trusted but is considered sufficient to build and showcase a demo.
Read at Raymondcamden
Unable to calculate read time
[
|
]