2024-11-15 18:13:00
bsky.bad-example.com
2024-11-13 by phil (they/them)
work in progress
It’s fun to play with data[citation needed]. All data on Bluesky is extremely public, and with 15 million users (as of today and with mind-boggling growth), there’s a lot of public data to play with.
You can get the firehose as a websocket JSON feed with Jetstream. This connects you to everything happening on the network in real time. It’s extremely easy to get started and very fun.
Here’s a random word from every post being posted right now:
There you go, you just consumed it for free from your browser.
little app
After noodling around a bit, i sketched out this questionable little app which listens for all delete
events from the firehose, and then shows the just-deleted text one last time in an anonymized disappearing feed. Kind of fascinating to see what people choose to delete. (also please note that I made this millions of users ago when the network was a fraction of the current chaotic speed). Maybe I’ll write more about it later.
Anyway it runs on fly:
- Fly machine, shared-cpu-1x with 256MB RAM: $1.94/mo
- 2GB Persistent volume: $0.30/mo
Granted it’s not doing much, but it’s doing it happily on the smallest instance fly offers.
What is it doing?
- Receive every new create-post event from the
app.bsky.feed.post
collection - Filter out empty posts, apply redactions to mentions and links
- Cache the clean text content on the volume in pebbledb, keyed by
did+rkey
- Every few seconds, do a range-delete on saved texts older than 48hr
- For every delete-post event, try to fetch the text from the cache, and if found, broadcast it to all current observers
More interesting apps might not scale down this far, but some will.
Support Techcratic
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.