Nub – A Bun-like all-in-one toolkit for Node.js

Colin here, creator of Nub. I’ve had the general shape of this in mind for years. Nub runs your code with stock `node`, augmented with a `--require` preload hook[0] that adds a transpiler (oxc-powered, packaged as a Node-API add-on), registers a module resolution hook[1], and injects polyfills as needed for APIs like `Worker`, `Temporal`, etc. All purely additive, your code ultimately runs using Node’s actual engine & stdlib implementations.[0] https://nodejs.org/api/cli.html#-require-module[1] https://nodejs.org/api/module.html#moduleregisterhooksoption...

Hacker NewsToolDevSource
0Sign in to voteCopy link

FL score

75

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

Nub is an all-in-one Node.js toolkit that transparently adds modern features and polyfills via a preload hook without replacing Node’s core engine.

The pain

Node.js developers struggle with inconsistent support for new JavaScript features and APIs, requiring multiple tools and complex setups to stay current.

The gap

Existing solutions either replace Node’s runtime or require heavy configuration; Nub aims to provide a lightweight, additive, and seamless way to use modern JS features on stock Node.

Build angle

Focus on developer experience by ensuring zero config, minimal overhead, and compatibility with existing Node.js workflows, while clearly demonstrating performance and stability benefits.

Strengths

  • Leverages native Node.js hooks for minimal intrusion
  • Adds modern JS features and polyfills transparently
  • Uses a performant transpiler (oxc-powered) as a native add-on
  • Appeals to Node.js developers wanting cutting-edge features without runtime forks

Risks

  • Niche audience limited to advanced Node.js users
  • Potential compatibility issues with future Node.js versions or native modules
  • Performance overhead or bugs introduced by hooks and polyfills
  • Unclear differentiation from existing tools like Bun or swc-based setups

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Nub – A Bun-like all-in-one toolkit for Node.js”.

Open FlyBot