explaingit

nubjs/nub

Analysis updated 2026-07-03 · repo last pushed 2026-07-03

⭐ Rising2,583RustAudience · developerComplexity · 2/5ActiveSetup · easy

TLDR

Nub is a fast Rust-based command-line tool that replaces several Node.js utilities. It runs TypeScript directly, installs packages, manages Node versions, and adds security checks to your workflow.

Mindmap

mindmap
  root((repo))
    What it does
      Runs TS and JS files
      Installs packages
      Manages Node versions
      Shims package managers
    Tech stack
      Rust
      Node.js
      TypeScript
    Use cases
      Run TS without compiling
      Faster script execution
      Monorepo workspace filtering
    Security
      Blocks postinstall scripts
      Checks for malicious packages
      Rejects packages under 24h old
    Audience
      Node.js developers
      Monorepo teams
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a TypeScript file directly without configuring a separate compiler step.

USE CASE 2

Speed up everyday script execution by eliminating JavaScript tool startup delays.

USE CASE 3

Automatically use the correct Node version for each project without manual switching.

USE CASE 4

Filter and run scripts across workspace packages in a monorepo setup.

What is it built with?

RustNode.jsTypeScriptnpmpnpmYarnBun

How does it compare?

nubjs/nubsozu-proxy/sozugosub-io/gosub-engine
Stars2,5833,6623,663
LanguageRustRustRust
Last pushed2026-07-03
MaintenanceActive
Setup difficultyeasyhardhard
Complexity2/54/55/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

In plain English

Nub is a single command-line tool that replaces a handful of utilities JavaScript developers normally juggle separately. It runs your TypeScript and JavaScript files, executes project scripts, installs packages, manages which version of Node you are using, and handles package manager shims. The pitch is that you get the fast, streamlined experience of newer runtimes like Bun without actually abandoning the standard Node.js ecosystem. At its core, the tool works by augmenting the regular Node.js process rather than replacing it. When you run a file, it automatically figures out which version of Node your project expects, installs it if necessary, and runs your code with it. Because the tool itself is written in Rust, it avoids the startup delay that JavaScript-based tools suffer from. This makes everyday operations like running a script or launching a local package feel nearly instantaneous compared to the noticeable lag of standard tools like npm or npx. This project is for developers and teams already working in the Node.js ecosystem who want a faster, more consolidated workflow. For example, if you are tired of waiting hundreds of milliseconds just for a script runner to start, or if you want to run a TypeScript file directly without setting up a separate compiler step, this handles it. It is also useful for teams with monorepo setups, as it supports advanced workspace filtering features that power users expect from tools like pnpm. What stands out is the project's focus on compatibility and security. When you use it to install packages, it automatically detects which package manager your project already uses, whether that is npm, pnpm, Yarn, or Bun, and respects that tool's configuration files and lockfiles. It also blocks postinstall scripts by default, checks for known malicious packages, and refuses to install packages that are less than 24 hours old, adding a strong layer of protection against supply chain attacks.

Copy-paste prompts

Prompt 1
Help me set up Nub to run my TypeScript project files directly without a separate compile step, and explain how it automatically picks the right Node version.
Prompt 2
I have a monorepo using pnpm workspaces. Show me how to use Nub to filter packages and run scripts across specific workspaces.
Prompt 3
Walk me through the package installation security features in Nub, including how it blocks postinstall scripts and rejects new packages.
Prompt 4
Compare Nub against my current workflow of using nvm, npm, and npx separately, and help me migrate my project scripts to use Nub instead.

Frequently asked questions

What is nub?

Nub is a fast Rust-based command-line tool that replaces several Node.js utilities. It runs TypeScript directly, installs packages, manages Node versions, and adds security checks to your workflow.

What language is nub written in?

Mainly Rust. The stack also includes Rust, Node.js, TypeScript.

Is nub actively maintained?

Active — commit in last 30 days (last push 2026-07-03).

How hard is nub to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is nub for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub nubjs on gitmyhub

Verify against the repo before relying on details.