GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LittleSound/nai: An interactive CLI that makes installing dependencies easy — with first-class catalog support.

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 

Repository files navigation

@rizumu/nai

npm add, interactive ✨

Interactive CLI tools for managing packages and scripts ✨

A suite of interactive CLI commands that make dependency installation and script running easy — with first-class catalog support and automatic package manager detection.

Ghostty 2026-03-11 01 32 41

📦 Install

npm i -g @rizumu/nai

🚀 Commands

Command Description
nai Install packages (interactive)
nar Run scripts (interactive)

nai — install packages

# Interactive mode — prompts for everything
# Press Enter twice to install all dependencies
nai

# Pass package names directly
nai react vue@^3.5 lodash

# Install as devDependencies
nai vitest -D

# Install as peerDependencies
nai react --peer

# Specify a catalog
nai zod -C prod

Run nai --help for all available options.

nar — run scripts

# Interactive mode — fuzzy search and pick a script, including monorepo scripts
nar

# Run a script directly (like npm run)
nar dev

# Forward arguments to the script
nar dev --port 3000

In monorepo projects, nar lists scripts from all workspace packages with fuzzy search across script names and package names. Root scripts are listed first.

Run nar --help for all available options.

💡 Why nai?

Installing dependencies in modern projects is getting painful:

  • Which package manager? npm, pnpm, yarn, bun?
  • Remember the exact package name — no typos allowed
  • -D or not? --save-peer?
  • Monorepo? Which workspace package? (-F, -w, ...)
  • Catalogs? Manually edit pnpm-workspace.yaml every time...

Too many flags. Too many files to touch. Too many things to remember.

nai solves this with a beautiful interactive UI that guides you through each step:

  1. 🔍 Auto-detect your package manager
  2. 📦 Resolve versions — reuse existing catalog entries or fetch latest from npm
  3. 🗂️ Pick a catalog — or skip, or create a new one
  4. 📁 Select workspace packages in monorepo
  5. 🏷️ Choose dep type — dependencies / devDependencies / peerDependencies
  6. ✅ Review & confirm — colorful summary before any file is changed
  7. 🚀 Install — writes config files and runs install for you

🗂️ What is a Catalog?

Catalogs let you define dependency versions in one central place (e.g. pnpm-workspace.yaml) and reference them in package.json with catalog:name. This keeps versions consistent across a monorepo.

# pnpm-workspace.yaml
catalogs:
  prod:
    react: ^19.0.0
    vue: ^3.5.0
// package.json
{
  "dependencies": {
    "react": "catalog:prod"
  }
}

nai manages this for you — no manual file editing needed.

🛠️ Supported Package Managers

Package Manager Catalog Support Status
pnpm ✅ pnpm-workspace.yaml ✅ Supported
yarn ✅ .yarnrc.yml ✅ Supported
bun ✅ package.json ✅ Supported
vlt ✅ vlt.json ✅ Supported
npm ❌ ✅ Supported (no catalog)

📄 License

MIT

About

An interactive CLI that makes installing dependencies easy — with first-class catalog support.

Topics

buncatalogsclinpmpackage-nanagerpnpmvltyarn

Resources

Readme
MIT license
Activity

Stars

53 stars

Watchers

0 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.