npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@darkrei08/setup-ai

v4.0.5

Published

Cross-OS installer for an AI coding toolchain (pi, codex, antigravity, opencode, herdr, gentle-ai/gga, Engineering Excellence) with an interactive module menu and per-agent MCP registration.

Readme

setup-ai

Cross-OS installer for an AI coding toolchain. One command bootstraps pi, Claude Code, Codex, Antigravity, opencode, herdr, gentle-ai, the darkrei08/dotenv dotfiles, ai-memory-kit, and the Engineering Excellence skill — each via its official, current method for your OS.

Quick start

One command — opens a menu to choose what to set up:

npx @darkrei08/setup-ai

Non-interactive:

npx @darkrei08/setup-ai --all --verbose --yes       # recommended: everything, unattended
npx @darkrei08/setup-ai --only pi,codex,opencode   # just these
npx @darkrei08/setup-ai --yes                       # core set, no prompts
npx @darkrei08/setup-ai --all                       # everything
npx @darkrei08/setup-ai --verbose                   # core set, no prompts, with live command logs
npx @darkrei08/setup-ai --dry-run                   # show the plan without changing anything
npx @darkrei08/setup-ai --uninstall [--yes] [--only ...] [--purge]

Startup acceptance check: bash tests/pi-startup-check.sh. JSONL schema check: bash tests/jsonl-schema.sh.

Three details worth knowing:

  • Use the npm package above. npx github:darkrei08/setup-ai also works, but many npm setups block git fetches (EALLOWGIT); the published package avoids that. Run it from any folder except the repo's own source dir.
  • Windows PowerShell 7.3+: one command per line (no bash \). If node or git was just installed, open a new terminal so PATH refreshes.
  • What it does: detects your OS and runs setup-ai.sh (macOS/Linux) or setup-ai.ps1 (Windows). Each module and command is shown with live output, so prompts such as sudo remain visible; --list shows modules; menu: pick a preset (Core, Everything, Custom, Minimal, Gentle AI), drill into categories with Enter, then confirm the summary; each preset shows how many modules it installs, the frame follows the terminal width and stays inside it, and the frames are ASCII-only for legacy consoles; keys: arrows/j/k move · Space toggle · a all/none · Esc back · q quit. Gentle AI installs only the base, Node, Pi, pi-extensible-workflows, and gentle-ai modules.
  • Lifecycle flags: --dry-run writes nothing, never prompts, and discards its log/report when the plan ends. --uninstall prints the inventory first and requires --yes; destructive items additionally require --purge. The uninstall path never touches ~/.pi/agent/auth.json or ~/.pi/agent/sessions/.

npm vs npx

| | npm | npx | |---|---|---| | Role | installs / manages packages | executes a package's binary | | Persistence | keeps it installed (node_modules / -g) | fetches, runs, discards | | Here | npm i -g @darkrei08/setup-ai (permanent setup-ai) | npx @darkrei08/setup-ai (one-shot) |

For a one-time installer, npx is ideal — nothing is left behind.

Logs and the live Pi config

  • Human log — logs/setup_<runid>.log, one line per event (<timestamp> [LEVEL] <phase> <event>: <message>), alongside the structured logs/setup_<runid>.jsonl (one JSON record per event) and the logs/engineering-report_<runid>.md. --verbose renders the same events live. command_start → command_success → step_result is one successful step, immediately followed by the next step's command_start: normal, not an error. Reference: docs/logs.md.
  • Run record — the .jsonl ends with one run_summary record (outcome, per-module status, step counts); a one-liner to read it back is in docs/logs.md.
  • How setup-ai verifies its state — it reads the assembled artifacts back instead of trusting exit codes: pi packages in ~/.pi/agent/settings.json, skills as <skill-root>/<skill>/SKILL.md for every targeted agent, installed npm trees as <dir>/node_modules/<pkg>/package.json.
  • Live Pi config — ~/.pi/agent/settings.json (there is no ~/.pi/agent.json). The dotenv module's setup_env.sh populates ~/.pi/agent with a selective rsync from the dotenv checkout's pi/agent directory (settings, models, prompts, skills, themes, ...), leaving auth.json, sessions/ and pi-managed installs untouched. It is a real directory, not a symlink into the checkout.

Documentation

Everything below the quick start is split into focused pages. Start from the one that matches your question.

| Page | What it covers | |---|---| | docs/install-matrix.md | The official install method of every tool, per OS | | docs/modules.md | Module list and order, agent/editor installation, configuration targets, and the manual dotenv setup | | dotenv provider setup | Tuxevil: pi/agent/README.md (optional rotator module is available in setup-ai); CLIProxyAPI/Gemini: cliproxyapi/README.md (manual dotenv setup; setup-ai does not install or configure CLIProxyAPI) | | docs/pi-extensions.md | Pi package roots, npm 12 remote sources and install-script approval, models, resource selectors | | docs/pi-workflows-guide.md | pi-extensible-workflows: install, /workflow picker, roles/aliases, Herdr, Neovim (bilingual) | | docs/context-budget.md | Pi context-window measurement, compaction thresholds, reserve-token tuning, and session hygiene | | docs/rdd-review-troubleshooting.md | When the native RDD review refuses to start (blocked / mutation_outcome: unknown) | | docs/logs.md | setup_<runid>.log / .jsonl / engineering report, the run_summary record, the event stream | | docs/opencode-go.md | Reuse an OpenCode Go subscription inside pi | | docs/troubleshooting.md | Real field errors and their fixes (read conflict, missing RDD binary, opencode PATH, distro detection, Shift+Enter, …) | | docs/releasing.md | Safe GitHub Release and npm publishing checklist |

pi-packages.example.txt in the package root is the starting point for the declarative Pi package manifest.

License

MIT (this installer). Installed tools keep their own licenses — note cockpit-tools is CC BY-NC-SA 4.0 (non-commercial).