Mar 17, 2026

Engineering

From 100 npm Packages to One Go Binary

Read time: 3 min read

From 100 npm Packages to One Go Binary

Key Takeaways

notion-cli v5 was TypeScript on Node, and installing it pulled in 100 npm packages. Version 6 is a rewrite in Go with three modules in go.mod, shipped as a single binary of about 8 MB that needs no Node runtime. Every package is someone else's code running in your system, so it's worth knowing how many you have.

open sourceGosupply chaindependenciesnotion-cli

What version 5 was carrying

notion-cli v5 was TypeScript on Node, built with oclif for the commands and Notion's JavaScript SDK for the API. It had six direct runtime dependencies, which sounds modest.

Installing it pulled in 100 npm packages. That's the count of production entries in the v5.9.0 lockfile from February 2026. Building it pulled in 974, once you include the dev tooling.

Six turns into 100 because each dependency brings its own, and those bring theirs. You choose a handful. The rest arrive with them.

Every package is a job

In October 2025, version 5.5.0 replaced a markdown converter dependency to clear 16 vulnerabilities reported in production dependencies.

That was a routine fix, and that's the point. Every package is code from someone you've never met running inside your system, and each one needs updating. The more of them there are, the more of that work there is.

The Go rewrite

Version 6.0.0, released on 1 March 2026, was a full rewrite in Go. It uses Cobra for commands and makes plain HTTP calls to the Notion API instead of going through the SDK.

The go.mod at v6.0.0 lists one direct dependency, spf13/cobra, plus the two indirect ones it needs, spf13/pflag and inconshreveable/mousetrap. Three modules in total.

It ships as a single binary of about 8 MB (7.9 MB stripped on Apple silicon), and it needs no Node runtime to run. There are still three ways to install it:

  • Through npm, where a small wrapper fetches the right binary for your platform
  • With go install
  • By downloading the binary from GitHub Releases

What I left out on purpose

A rewrite is a chance to leave things behind. v6.0.0 had 183 tests across 8 suites, in 33 Go files and about 8,900 lines. For comparison, v5.8.0 had 471 tests.

Some v5 features were left out of 6.0 on purpose and listed as later work: the disk cache, request deduplication, the circuit breaker and the update notifier. OAuth sign-in arrived the next day, in 6.1.0 on 2 March 2026.

I'd rather add a feature back when it's needed than carry it forward because it was already there.

Why this matters if you don't write code

You don't need to know Go or npm to care about this. Every system your business runs on has its own count of packages, and each one is someone else's code that needs updating. Fewer moving parts means fewer surprises.

Three questions worth asking your developer:

  • How many packages does our system install?
  • Who checks them for security updates, and how often?
  • What happens if one is abandoned?

If the answers are vague, that's worth knowing too.

notion-cli is free and open source, and if you'd like to work through those questions for your own system, book a call.

Next step

Tell me what your business runs on today

A 30 minute call. You describe the spreadsheets, the apps and the paperwork; I tell you what I would build and roughly what it would cost.