Post

Fun fact about the NPM replication feed. If you just follow the feed to get updates for ever package, you will miss packages because they retroactively insert changes in the *past* of the feed.

I suspect that this happened when NPM transitioned from CouchDB to Postgres. They kept the CouchDB replication feed protocol but it was no longer consistent.

So to accurately replicate NPM, it's not enough to follow the 'sequential' feed, you also have to go back later to see if you missed anything. 🫠