{"by":"colinmcd","descendants":81,"id":48660267,"kids":[48666226,48662515,48660963,48666801,48683485,48800150,48661865,48662005,48665080,48661550,48671176,48661336,48662075,48662530,48664022,48664482,48661137,48665138,48682943,48666937,48669147,48691090,48676709,48662356,48669472,48668418,48660434,48686149,48674602,48661208],"score":277,"text":"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 &amp; stdlib implementations.<p>[0] <a href=\"https:&#x2F;&#x2F;nodejs.org&#x2F;api&#x2F;cli.html#-require-module\" rel=\"nofollow\">https:&#x2F;&#x2F;nodejs.org&#x2F;api&#x2F;cli.html#-require-module</a><p>[1] <a href=\"https:&#x2F;&#x2F;nodejs.org&#x2F;api&#x2F;module.html#moduleregisterhooksoptions\" rel=\"nofollow\">https:&#x2F;&#x2F;nodejs.org&#x2F;api&#x2F;module.html#moduleregisterhooksoption...</a>","time":1782310458,"title":"Show HN: Nub – A Bun-like all-in-one toolkit for Node.js","type":"story","url":"https://github.com/nubjs/nub"}