compare
Bun vs npm
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Bun | npm |
|---|---|---|
| Language | Rust | JavaScript |
| Licence | Other | Other |
| Stars | 97k | 10k |
| Latest | bun-v1.4.5 | libnpmpack-v8.0.6 |
| Last push | 2026-11-23 | 2026-11-19 |
| Release cadence | about 20 days between releases | about 1 day between releases |
| Active contributors | 8+ commit authors on the default branch in the last 90 days | 15 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Bun replaces npm. Alternatives to npm →
Full replacementbun install reads package.json and writes its own lockfile.
Published benchmarks, each linked to its source. The numbers depend on the hardware and the workload they were measured on.
Running a package.json script
Average time: bun run 7ms, npm run 176ms (yarn run 131ms, pnpm run 259ms).
Bun
- bun-v1.4.52026-11-19Bun v1.4.5
- bun-v1.4.42026-10-22Bun v1.4.4
- bun-v1.4.32026-10-10Bun v1.4.3
- bun-v1.4.22026-09-05Bun v1.4.2
- bun-v1.4.12026-09-04Bun v1.4.1
npm
- libnpmpack-v9.1.162026-11-19libnpmpack: v9.1.16
- libnpmfund-v7.0.292026-11-19libnpmfund: v7.0.29
- libnpmexec-v10.3.62026-11-19libnpmexec: v10.3.6
- libnpmdiff-v8.1.152026-11-19libnpmdiff: v8.1.15
- config-v10.14.12026-11-19config: v10.14.1
Bun
unsigned The latest release, bun-v1.4.5, carries no signature GitHub could verify.
Loading the security report
npm
unsigned The latest release, libnpmpack-v8.0.6, carries no signature GitHub could verify.
Loading the security report