Skip to content
Tech News
← Back to articles

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

read original more articles
Why This Matters

Nub introduces an all-in-one toolkit that enhances Node.js with features inspired by Bun and Deno, offering faster performance and a seamless development experience without replacing the existing runtime. Its comprehensive capabilities, including TypeScript support, modern syntax, and dependency management, aim to streamline JavaScript and TypeScript development workflows. This development is significant for the tech industry as it provides developers with a more efficient, versatile, and integrated toolset for Node.js projects, potentially reducing setup complexity and improving productivity for consumers and enterprises alike.

Key Takeaways

Nub

A fast all-in-one toolkit that augments Node.js instead of replacing it

A Bun-like DX on top of stock node , written in Rust.

nub index.ts # TypeScript-first Node.js runtime nub run dev # 24× faster pnpm run nubx prisma generate # 19× faster npx nub install # 2.5× faster pnpm install nub watch src/server.ts # native watch mode nub pm shim # built-in Corepack-style shims nub node install 26 # Node version manager nub upgrade # self update

One tool to run your files and scripts, install dependencies, and manage Node itself. No new runtime, no vendor-specific API surface, no lock-in.

Nub Instead of nub <file> node , tsx , ts-node , dotenv-cli nub run <script> npm run , pnpm run nubx npx , pnpm dlx / exec nub install npm , pnpm nub watch nodemon , node --watch , tsx watch nub node nvm , fnm , n , volta nub pm corepack

Install

# macOS / Linux curl -fsSL https://nubjs.com/install.sh | bash # Windows (PowerShell) irm https://nubjs.com/install.ps1 | iex # Or via npm (pnpm / yarn global add work too) npm install -g --ignore-scripts=false @nubjs/nub

For GitHub Actions, use nubjs/setup-nub in place of actions/setup-node . It's one-to-one compatible.

- - uses: actions/setup-node@v4 + - uses: nubjs/setup-nub@v0

... continue reading