There's a NEW Package Manager!? (Bun Alternative)
Nub is a new all-in-one JavaScript toolkit built on top of Node.js (not replacing it) that consolidates a package manager, TypeScript file runner, script runner, package runner, and Node version manager into a single Rust binary. Created by Colin (the creator of Zod), it claims to be 5x faster than pnpm for installs, 19x faster than npx for package running, and 24x faster than pnpm run for scripts. It supports full TypeScript (including enums, namespaces, decorators), automatic .env loading, JSON/YAML/TOML imports, and is flag-for-flag compatible with pnpm. Benchmarks on the author's machine confirm the speed claims, with Nub installing 212 packages in 136ms vs Bun's 239ms. It also adopts existing lock files from Bun or pnpm, making migration easy. The author sees it as most useful for quick throwaway environments or as a tsx replacement.