Hacker News
Show HN: Nub, a purely additive Bun-like toolkit for Node.js
- Category: Pulse
- Status: discussion
- Sources: nubjs/nub, discussion
- Summary: A Show HN for Nub, a Node.js toolkit by Colin McDonnell (author of Zod), reached 222 points. Rather than replacing the runtime like Bun, Nub wraps the standard
nodecommand with a preload hook to add oxc-powered TypeScript transpilation, custom module resolution, and polyfills such asWorkerandTemporal, plus script and package runner helpers, while introducing no Nub-specific APIs, config, or environment variables. The author cites a--requirehook with about 0.5ms overhead against 4.6ms for--import, using Node's synchronousmodule.registerHooks()API. - Comments: Commenters favored the additive approach over a full runtime rewrite as less ecosystem-fragmenting; one reported migrating a monorepo with no issues.
- Why it matters: It is a lighter path to Bun-style ergonomics that stays on the standard Node runtime, reducing migration risk for teams that want TypeScript-first tooling without switching engines.
- Follow-up: None.