Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nub

Skill by nubjs

nub is a single Rust CLI that runs on the project's installed Node and replaces the everyday Node toolchain. It is for developers who want one tool for running files, scripts, CLIs, installs and Node versions.

  • Score 87
  • 4.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nub

Built from the published package, never by AI.

git clone --depth 1 https://github.com/nubjs/nub /tmp/nub && mkdir -p ~/.claude/skills && cp -r /tmp/nub/site/public ~/.claude/skills/nub

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nub in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

nub is a single Rust CLI that runs on the project's installed Node and replaces the everyday Node toolchain. It covers running JS and TypeScript files, running package.json scripts, running local CLIs, watch mode, installing dependencies, and provisioning Node versions. Under the hood it uses Node's own extension points, so project code stays plain Node code.

It is aimed at projects that want nub as their default for node, npm, npx and similar commands. It works with the incumbent package manager's lockfile, reading and writing pnpm, npm and Bun lockfiles and treating Yarn as read-only. Nothing in the project has to be authored for nub, and a --node flag runs plain Node for comparison.

Written from the project's SKILL.md and checked against it.

What it can do

  • nub <file>Runs JS and TS files directly, with TypeScript, JSX, tsconfig paths and .env loading built in.
  • nub run <script>Runs package.json scripts as a drop-in for npm run or pnpm run, with workspace support.
  • nubx <tool>Runs already-installed local CLIs, as a lighter alternative to npx.
  • nub watch <file>Restarts a file on change, based on the resolved dependency graph and config files.
  • nub install / nub addInstalls and manages dependencies using the project's existing lockfile format.
  • Build-script trustSkips dependency install scripts unless explicitly allowed or vouched for by the default-trust floor.
  • Node version provisioningFetches the Node version pinned in .node-version, .nvmrc or engines.node and runs code on it.
  • Data-format importsImports JSON, JSONC, JSON5, TOML, YAML and TXT files as modules.
  • --node escape hatchRuns strict, unaugmented Node for a single run or a whole process tree.

What you need

  • Node.js 18.19 or later for augmented modes
  • Network access to nodejs.org for automatic Node version provisioning

Try asking

  • Run src/server.ts with nub and show me the output
  • Use nub run to start the dev script in this project
  • Install the dependencies with nub install using the existing lockfile

Good to know

  • nub does not type-check code, so keep tsc --noEmit in CI.
  • Yarn projects are read-only; nub refuses commands that would rewrite yarn.lock.
  • Dependency build scripts are skipped unless explicitly approved.
  • Stage 3 decorators are rejected and Solid JSX needs its bundler.

Security check

C
  • Downloads a script from the internet and runs itIn site/public/install.ps1: irm https://raw.githubusercontent.com/nubjs/nub/main/install.ps1 | iex

Checked automatically: site/public/skill.md, site/public/install.ps1, site/public/install.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • ansi/compile-cli.json10 KB
  • ansi/first-run-install-message.json64 KB
  • apple-touch-icon.png4 KB
  • blog/sea-status-comment.png307 KB
  • blog/threadpool-16vcpu-dark.svg3 KB
Show all 37 files
  • blog/threadpool-16vcpu-light.svg3 KB
  • blog/threadpool-8vcpu-dark.svg3 KB
  • blog/threadpool-8vcpu-light.svg3 KB
  • blog/threadpool-busy-host-dark.svg2 KB
  • blog/threadpool-busy-host-light.svg2 KB
  • blog/uv-threadpool-pr-61533-closed.png58 KB
  • blog/uv-threadpool-pr-61533.png262 KB
  • encode-sans-medium.ttf121 KB
  • encode-sans-regular.ttf121 KB
  • encode-sans-semibold.ttf121 KB
  • favicon-border.png24 KB
  • favicon.ico15 KB
  • favicon.png12 KB
  • icon-192.png4 KB
  • icon-512.png12 KB
  • icon-border.svg2 KB
  • icon-maskable-512.png7 KB
  • icon.png12 KB
  • icon.svg2 KB
  • install.ps111 KB
  • install.sh16 KB
  • schema/latest.json10 KB
  • schema/v0.10.json10 KB
  • schema/v0.11.json10 KB
  • schema/v0.6.json8 KB

And 7 more files on GitHub.

Alternatives to nub

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

nub: common questions

Does nub type-check my TypeScript?

No. The source says nub does not type-check, so it recommends keeping tsc --noEmit in CI.

Do I still need tsx or dotenv with nub?

The source says a project under nub typically does not need tsx, ts-node, dotenv, cross-env, tsconfig-paths or nodemon.

What happens to my code if I stop using nub?

The source says the code runs on plain Node unchanged, since nub uses no custom runtime, globals or import namespace.

How do I install nub?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nub free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nub safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to nub?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

Add to stack

Loading.