Nub
nubjs.com
- Free plan
- Windows
- macOS
- Linux
What Nub is
Nub is a free, open-source Rust toolkit for running TypeScript, JSX, and JavaScript on the stock Node binary. It handles modern syntax, `tsconfig.json`, environment files, and data-file imports without a separate build step. Nub loads `.env` files with variable expansion, watches entrypoints and imported files, and restarts applications when they change. It can read Node version pins from project files or engine settings and download the requested version when needed. The script runner supports lifecycle hooks, `npm_*` variables, forwarded arguments, and pnpm-style workspace filters. Its installer reads and writes npm, pnpm, and Bun lockfiles; Yarn lockfiles are read-only. Dependency build scripts are denied by default, OSV advisories are checked, and releases younger than 24 hours are held back. Nub also offers `nubx`, workspace support, offline caching, publishing, a GitHub Action, a container image, and deployment guides.
Who it suits
Nub suits JavaScript and TypeScript developers who want Node-compatible execution, project-pinned Node versions, package management, and watch workflows. It supports Linux, macOS, and Windows development environments.
Good to know, and what to watch
- Runs TypeScript without a build step
- Manages project-pinned Node versions
- Loads `.env` files automatically
- Supports npm, pnpm, and Bun lockfiles
- Dependency scripts denied by default
- Yarn lockfiles are read-only
- Augmented modes require Node 18.19 or newer
- Windows, macOS, and Linux only
The verdict
Nub combines a TypeScript runtime, Node version manager, script runner, package installer, and supply-chain safeguards. Its lockfile behavior and Node version requirement are important when fitting it into an existing workflow.
What the maker publishes
- CI integration
- Nub provides a GitHub Action that installs Nub, warms the project's Node version, and caches Nub's store in CI. source
- CLI runner
- nubx runs local command-line tools or fetches tools that are not installed, following a local-first model like npx. source
- Container integration
- The documentation provides an official container image at ghcr.io/nubjs/nub. source
- Environment files
- It loads .env files automatically and supports variable expansion. source
- Environment support
- When Nub detects a Varlock .env.schema file, it disables its own environment loading and uses Varlock to load and validate the environment. source
- Install approval
- Users can review and enable skipped install scripts with the nub approve-builds command. source
- Integrations
- The documentation lists a GitHub Action and deployment guides for Docker, Vercel, Cloudflare, Railway, Render, AWS Lambda, and Google Cloud Run. source
- License
- The site links the project license as MIT. source
- Node compatibility
- Nub runs code on the stock Node binary and describes its file command as flag-for-flag compatible with node. source
- Node management
- Nub can read version pins from .node-version, .nvmrc, or engines/devEngines and download the requested Node version on demand. source
- Node version management
- Nub can provision the Node version pinned by a project, downloading it from nodejs.org when it is not already installed. source
- Package ecosystem support
- Nub documents compatibility with npm, pnpm, Yarn, and Bun package-manager workflows, while its installer writes existing npm, pnpm, or bun lockfiles and treats yarn.lock as read-only. source
- Package manager
- Nub install is a pnpm-compatible package manager that can round-trip npm, pnpm, and bun lockfiles; Yarn lockfiles are read-only. source
- Package manager compatibility
- The installer reads and writes npm, pnpm, or Bun lockfiles; Yarn lockfiles are read-only. source
- Product
- Nub is a Rust toolkit that runs TypeScript files and scripts, installs dependencies, and manages Node.js on stock Node. source
- Requirements
- Augmented modes require Node 18.19 or newer and support macOS, Linux, and Windows on the listed x64 and arm64 architectures. source
- Runtime
- It runs TypeScript, JSX, and JavaScript files on the stock Node binary without requiring a separate build step. source
- Script runner
- The script runner supports package lifecycle hooks, npm_* environment variables, argument forwarding, and pnpm-style workspace filters. source
- Supply-chain protections
- The installer denies dependency build scripts by default, checks OSV advisories, and holds back releases younger than 24 hours. source
- TypeScript runtime
- Nub runs TypeScript, JSX, and modern syntax directly with support for tsconfig.json, environment files, and data-file imports. source
- Watch mode
- Its watch command restarts an application when its entrypoint or transitively imported files change. source
Checked against the maker's pages on 4 Oct 2026.