Get the latest tech news

Spatio-temporal indexing the Bluesky firehose


Joel Gustafson

To compute the clustering and layout for the map, I index the follow graph in a SQLite database that only lives on my home server, do all the data processing locally, and just push static assets to a Cloudflare R2 bucket at the end that the web client fetches directly. Just for fun, I decided to write the quadtree-of-ring-buffers as an in-memory data structure in Zig, and expose it to NodeJS as a native NAPI module. I won't go over compiling the quadtree to a native NodeJS module, but you can look at the Zig build configuration in the source repo if you're interested.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Bluesky

Bluesky

Photo of spatio

spatio

Photo of temporal indexing

temporal indexing

Related news:

News photo

Aaron Rupar on Bluesky: Tim Cook pathetically kisses Trump's ass by presenting him with a "24 karat gold" gift

News photo

Germ brings end-to-end encrypted messages to Bluesky

News photo

Selling your digital soul to use Bluesky's DMs isn't just a bad idea, it's the law