nx-run
v1.1.0
Published
Fuzzy-search Nx task runner
Readme
nxr
Fast, fuzzy target runner for Nx workspaces.
Type a few characters, pick one or many targets, and run them.
No more memorizing long nx run @my/components:build:package commands.
Install
npm i -g nx-run
# or
pnpm add -g nx-run
# or
bun add -g nx-run
# or
yarn global add nx-runUsage
Run nxr anywhere inside an Nx workspace:
$ nxr app build█
──────────────────────────────────────
> @my/app build
@my/dashboard build
@my/app lint
@my/app test
@my/app format
@my/app serve
[tab] select · [enter] run · [/] commands · [esc] clearQueue multiple targets with Tab, then run them all with Enter:
format█
──────────────────────────────────────
> @my/app format ✓
@my/dashboard format ✓
@my/ui-button format
@my/logger format
@my/icons format
╭──────────────────────────────────╮
│ Queue [2] │
│ 1. @my/app:format │
│ 2. @my/dashboard:format │
╰──────────────────────────────────╯
[tab] select · [enter] run · [/] commands · [esc] clearHow it works
- Scans all Nx projects and their targets on first run (cached after that)
- Fuzzy search powered by Fuse.js with segment-aware ranking
- History tracks your recent selections so they show up first next time
- Background resync keeps the cache fresh without blocking the UI
Development
bun test # run tests
bun tsc --noEmit # type check