# nubjs/nub

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/nubjs-nub).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,435 stars · 70 forks · Rust · MIT

## Links

- GitHub: https://github.com/nubjs/nub
- Homepage: https://nubjs.com
- awesome-repositories: https://awesome-repositories.com/repository/nubjs-nub.md

## Topics

`javascript-runtime` `node-version-manager` `nodejs` `package-manager` `script-runner`

## Description

nub is a single native toolkit for Node.js projects that bundles a package manager, a package script runner, a TypeScript executor, a Node.js version manager, and a watch-mode restarter in one binary. It ships as a compiled executable, so installs, script runs, and command lookups avoid the JavaScript startup cost of tools written in Node itself.

As a package manager, it offers a pnpm-compatible command line and reads existing npm, yarn, and pnpm lockfiles and configuration, following whichever tool the project already uses. Packages are stored once in a shared global store and hardlinked into each project, which makes repeat installs a quick relink; projects that depend on frameworks known to break with a shared store fall back to normal per-project installs. Installs can also block postinstall scripts, check for known-malicious versions, refuse provenance downgrades, and enforce a minimum release age. Shims for npm, yarn, pnpm, and Node detect the version a project pins, install it on demand, and run commands with it.

On the execution side, nub runs TypeScript and JSX files directly with in-process transpilation and caching, supporting extensionless imports, path aliases, and common data-format loaders. It can polyfill newer platform APIs and unflag experimental ones on older Node versions, and it restarts a running file when anything in its resolved import graph or related config files changes, so no watch globs are needed. One command resolves a name to a file, a package script, or an installed binary, and package scripts run with lifecycle hooks and workspace filtering.

nub also provides a drop-in replacement for the standard Node setup step in GitHub Actions. It provisions the pinned Node and package manager, caches the package store keyed on the lockfile, installs from the lockfile, and registers problem matchers for TypeScript and ESLint errors. Prebuilt binaries are published per operating system, CPU architecture, and libc variant, covering macOS, Linux (including musl), and Windows on x64 and arm64, with installation on Windows available through winget and Dockerfiles provided for container use.

## Tags

### Programming Languages & Runtimes

- [Native pnpm-Compatible Installs](https://awesome-repositories.com/f/programming-languages-runtimes/node-js-package-compatibility/package-installations/native-pnpm-compatible-installs.md) — Installs a project's packages with a native engine and pnpm-compatible command line, avoiding the Node startup cost of JavaScript package managers. ([source](https://github.com/nubjs/nub#readme))
- [Node.js Version Managers](https://awesome-repositories.com/f/programming-languages-runtimes/node-js-version-managers.md) — Bundles a package manager, script runner, TypeScript executor, Node.js version manager, and watch-mode restarter into one fast native binary.
- [Direct TypeScript Execution](https://awesome-repositories.com/f/programming-languages-runtimes/direct-typescript-execution.md) — Executes TypeScript and JSX files directly with in-process transpilation and caching, extensionless imports, path aliases, and data-format loaders. ([source](https://github.com/nubjs/nub/blob/main/README.md))
- [TypeScript Execution](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/interoperability/typescript-execution.md) — Executes TypeScript directly by transpiling in-process with a cache so repeated runs skip redundant work. ([source](https://github.com/nubjs/nub/blob/main/package.json))
- [Node.js CI Environment Setups](https://awesome-repositories.com/f/programming-languages-runtimes/node-js-ci-environment-setups.md) — Provisions the pinned Node and package manager on a CI runner as a drop-in replacement for the standard setup action with the same inputs and outputs. ([source](https://github.com/nubjs/nub/tree/main/setup-node))
- [TypeScript Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-toolchains/typescript-transpilers.md) — Strips TypeScript types and downlevels syntax in-process with output caching so repeated runs of the same files skip the work.
- [Modern API Backporting](https://awesome-repositories.com/f/programming-languages-runtimes/modern-api-backporting.md) — Unflags experimental features, polyfills newer web and language APIs, and downlevels newer syntax so modern code runs on older Node versions. ([source](https://github.com/nubjs/nub#readme))
- [Node Version Management](https://awesome-repositories.com/f/programming-languages-runtimes/node-version-management.md) — Installs, lists, removes, and pins runtime versions in a local cache and automatically installs the required version when missing. ([source](https://github.com/nubjs/nub/blob/main/README.md))
- [API Polyfills](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/javascript-and-web-standard/api-polyfills.md) — Polyfills newer platform features such as Temporal dates, half-precision floats, and URL pattern matching across supported Node versions. ([source](https://github.com/nubjs/nub/blob/main/package.json))

### Development Tools & Productivity

- [Existing Lockfile Installs](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/installation-resolution-utilities/project-lockfile-management/existing-lockfile-installs.md) — Installs packages from whichever lockfile the project already has, using the cached store, then runs commands on the resolved Node version. ([source](https://github.com/nubjs/nub/tree/main/setup-node))
- [Node.js Dependency Managers](https://awesome-repositories.com/f/development-tools-productivity/node-js-dependency-managers.md) — Installs, locks, and updates project packages quickly from existing npm, yarn, or pnpm lockfiles with reproducible installs and malware protection.
- [pnpm Dependency Managers](https://awesome-repositories.com/f/development-tools-productivity/package-dependency-management/pnpm-dependency-managers.md) — Installs, adds, removes, updates, and dedupes dependencies with a native engine and pnpm-compatible flags, avoiding Node startup cost per command. ([source](https://github.com/nubjs/nub/blob/main/README.md))
- [Package Script Execution](https://awesome-repositories.com/f/development-tools-productivity/package-script-execution.md) — Dispatches package scripts through a native binary with lifecycle hooks and workspace filtering, avoiding the JavaScript startup cost of other runners. ([source](https://github.com/nubjs/nub#readme))
- [Native Package Script Dispatchers](https://awesome-repositories.com/f/development-tools-productivity/package-script-execution/native-package-script-dispatchers.md) — Dispatches package.json scripts and installed binaries from a native binary with lifecycle hooks and workspace filtering, skipping Node.js startup overhead.
- [Prebuilt Binary Distribution](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-orchestration-logic/build-orchestration-configuration/build-automation-systems/build-systems/binary-compilation-toolchains/native-binary-toolchains/prebuilt-binary-distribution.md) — Distributes prebuilt native binaries as separate packages for macOS, Linux including musl, and Windows on x64 and arm64. ([source](https://github.com/nubjs/nub/tree/main/npm))
- [Package Manager Shim Generators](https://awesome-repositories.com/f/development-tools-productivity/command-interception-shims/package-manager-shim-generators.md) — Puts shims for npm, yarn, pnpm, and Node first on the path that detect the pinned version, install it on demand, and run it.
- [Runtime Version Pinnings](https://awesome-repositories.com/f/development-tools-productivity/configuration-parsers/runtime-behavior-configuration/version-pinning/runtime-version-pinnings.md) — Reads the project's Node version pin from several config files, downloads that runtime if needed, and puts it first on the path. ([source](https://github.com/nubjs/nub/tree/main/setup-node))
- [Frozen Lockfile Installs](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/installation-resolution-utilities/dependency-installers/frozen-lockfile-installs.md) — Installs each package at the exact locked version, URL, and integrity hash without registry resolution, failing if lockfile and manifest disagree. ([source](https://github.com/nubjs/nub/tree/main/install))
- [Hardlinked Package Stores](https://awesome-repositories.com/f/development-tools-productivity/hardlinked-package-stores.md) — Hardlinks package contents from a shared global store into each project's dependency folder so repeat installs are a quick relink instead of a copy. ([source](https://github.com/nubjs/nub/tree/main/tests/bench/install))
- [Import Graph File Watchers](https://awesome-repositories.com/f/development-tools-productivity/import-graph-file-watchers.md) — Restarts a running file when anything in its resolved import graph or related config files changes, removing the need for hand-written watch globs.
- [Security-Hardened Installers](https://awesome-repositories.com/f/development-tools-productivity/package-installers/security-hardened-installers.md) — Hardens installs by blocking postinstall scripts, checking for malicious versions, and enforcing release-age and provenance rules by default. ([source](https://github.com/nubjs/nub/blob/main/README.md))
- [Runtime Provisioning](https://awesome-repositories.com/f/development-tools-productivity/package-installers/standalone-installers/runtime-provisioning.md) — Reads the version a project expects from its configuration, installs that runtime automatically when missing, and runs the file with it. ([source](https://github.com/nubjs/nub#readme))
- [Package Manager Detection](https://awesome-repositories.com/f/development-tools-productivity/package-managers/package-manager-detection.md) — Detects the package manager a project already uses and follows its lockfiles, configuration files, and environment variables. ([source](https://github.com/nubjs/nub#readme))
- [Command Name Resolvers](https://awesome-repositories.com/f/development-tools-productivity/shell-script-execution-engines/command-name-resolvers.md) — Resolves one command name to a file, package script, or installed binary, trying the most specific match first before running it. ([source](https://github.com/nubjs/nub#readme))
- [CI CLI Installers](https://awesome-repositories.com/f/development-tools-productivity/versioned-component-installations/semver-cli-installers/ci-cli-installers.md) — Acts as a single-line drop-in replacement for the clean-install step in CI while setup, test, and run steps keep working unchanged. ([source](https://github.com/nubjs/nub/tree/main/npm-ci))
- [Version Pinning](https://awesome-repositories.com/f/development-tools-productivity/versioned-package-managers/version-pinning.md) — Registers shims for npm, yarn, and pnpm that detect the version a project pins, install it on demand, and run commands with it. ([source](https://github.com/nubjs/nub#readme))

### Data & Databases

- [Global Package Stores](https://awesome-repositories.com/f/data-databases/flat-file-storage/global-package-stores.md) — Keeps package contents once in a shared global store and hardlinks them into each project, so repeat installs are a quick relink.

### DevOps & Infrastructure

- [CI Pipeline Integrations](https://awesome-repositories.com/f/devops-infrastructure/ci-cd-pipelines/ci-pipeline-integrations.md) — Speeds up CI runs by caching the package store keyed on the lockfile, replacing slow install steps, and annotating type and lint errors inline.
- [Environment Caching in CI](https://awesome-repositories.com/f/devops-infrastructure/ci-cd-pipelines/ephemeral-ci-environments/environment-caching-in-ci.md) — Saves the package store between CI runs keyed on the lockfile hash with optional prefixes, so repeat installs finish quickly without a separate cache step. ([source](https://github.com/nubjs/nub/tree/main/install))
- [Dependency Store Caching](https://awesome-repositories.com/f/devops-infrastructure/dependency-store-caching.md) — Saves and restores the install store and toolchains between runs, keyed on the lockfile with fallback keys so changed lockfiles start warm. ([source](https://github.com/nubjs/nub/tree/main/setup-node))
- [File-Change-Triggered Restarts](https://awesome-repositories.com/f/devops-infrastructure/restart-automation/file-change-triggered-restarts.md) — Restarts a running file when anything in its resolved import graph or related config files changes, with no watch globs needed. ([source](https://github.com/nubjs/nub/blob/main/README.md))

### Security & Cryptography

- [Supply Chain Install Protections](https://awesome-repositories.com/f/security-cryptography/supply-chain-install-protections.md) — Protect installs by blocking postinstall scripts, checking for known-malicious versions, refusing provenance downgrades, and enforcing a minimum release age by default. ([source](https://github.com/nubjs/nub#readme))
