Nub Wraps Node.js in a Rust Shell to Fix Toolchain Lag Without Replacing the Engine
Teams stuck on large, legacy Node.js projects can now get Bun-like developer speed without the production risk of swapping runtimes. Nub keeps V8 and the existing process model intact, so the only thing that changes is how fast the toolchain starts.
Nub, from Zod creator Colin McDonnell, treats Node.js as a stable core that just needs a faster outer shell. It replaces the chain of tsx, dotenv, nodemon, and corepack with a single Rust binary that handles transpilation via oxc, injects environment variables, and watches files using a real dependency tree. The result is a 2.9× faster TypeScript startup, 24× shorter script dispatch, and 19× quicker npx-style cold starts.
Beyond speed, Nub patches two persistent pain points. A PATH shim intercepts child_process.spawn calls so that worker threads and subprocesses inherit TypeScript and .env support instead of crashing on syntax errors. Its built-in package manager, nub install, blocks all third-party postinstall scripts by default and installs dependencies 2.5× faster than pnpm.
The tool does not accelerate runtime business logic. A slow database query or a heavy loop stays slow. Nub only shrinks the gap between hitting Enter and seeing code execute, making it a drop-in upgrade for teams that want modern ergonomics without migrating off Node.
The tool exploits a structural inefficiency in the Node.js ecosystem: most startup lag comes from JavaScript wrapper processes, not from compiling TypeScript. Replacing those wrappers with a Rust binary yields outsized gains without touching the engine.
Blocking postinstall scripts by default is a security posture that package managers rarely take, and it addresses a real supply-chain risk that most teams ignore until they are compromised.
The PATH shim approach to subprocess interception is a pragmatic fix for a class of bugs that most developers work around with fragile shell scripts or duplicated configs, and baking it into the CLI makes the fix invisible and reliable.
Nub's pitch is essentially 'keep your runtime, upgrade your toolchain,' which reframes the Bun vs. Deno vs. Node debate as a false choice for teams that cannot afford a migration.
The discussion is thin. One commenter notes their customer service system already runs on Node.js, prompting a follow-up about the tech stack. Another remark questions whether the tool's speed claims hold up in practice, while a separate thread dismisses the project as yet another wheel. A final question asks about replacing legacy projects and handling version differences, but no answers emerge.
Very powerful. The customer service system has already started using Node.js. https://kf.shengxunwei.com/
So impressive. Could you share which tech stack you're using?
Whether it's fast or not, you'll only know after using it.
Fast.
Here comes another wheel.
[onlooker eating melon][onlooker eating melon][onlooker eating melon]