Get the latest tech news

My failed attempt to shrink all NPM packages by 5%


It seemed like a great idea at first.

I doubt many individual installs were perceptibly faster after this change…but it’s nice to do a tiny amount of work for a 5% improvement! Therefore, the npm registry and developers could save bandwidth if they compressed new (or re-compressed existing) packages with Zopfli. But I think I did an okay job making my point: npm packages could become ~5% smaller if we could figure out how to run Zopfli at publish time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of failed attempt

failed attempt

Photo of npm

npm

Photo of npm packages

npm packages

Related news:

News photo

Snyk security researcher deploys malicious NPM packages targeting cursor.com

News photo

My failed attempt at AGI on the Tokio Runtime

News photo

The Untold Story of Trump's Failed Attempt to Overthrow Venezuela's President