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

@brainervirus/workit-cli

v0.8.9

Published

Workit interactive setup wizard (Ink TUI)

Readme

@brainervirus/workit-cli

The workit CLI — an interactive Ink wizard that configures workit for OpenCode and/or Cursor, plus an offline installation doctor.

Requirements

  • Node.js ≥ 22 — the published CLI is a self-contained Node bundle (no Bun runtime). Node 21 and below fail (ERR_MODULE_NOT_FOUND/ESM syntax or the >=22 engine gate).

Install

npm i -g @brainervirus/workit-cli
# or run without installing:
npx @brainervirus/workit-cli init

Usage

workit init              # interactive setup wizard
workit doctor            # offline installation health report
workit doctor --json     # machine-readable report
workit flow status --plan docs/<slug>/plan.md        # read the effective flow state
workit flow pause --plan docs/<slug>/plan.md [--confirm]     # active -> paused
workit flow resume --plan docs/<slug>/plan.md [--confirm]    # paused -> active
workit flow complete --plan docs/<slug>/plan.md [--confirm]  # complete (ledger + verification gated)
workit flow review-package --plan docs/<slug>/plan.md --base <sha> --head <sha> [--confirm]  # write a review diff
workit flow append-advisory --plan docs/<slug>/plan.md --task <id> --text <text> [--confirm]  # record an advisory review finding
workit handoff --message "docs/<slug>/plan.md"      # print the destination handoff prompt
workit                   # help

workit init guides you through: platform selection (OpenCode/Cursor), global config (locale, timezone, branch policy), YouTrack, VCS, workspaces (path globs → provider), and project hygiene files. The wizard is a TTY application — workit init requires an interactive terminal and prints guidance (exiting nonzero) when stdin is not a TTY.

workit doctor checks the offline installation health and exits nonzero when problems are found; --json prints the full report as JSON instead of the human-readable table.

workit flow maps the shared-core execution lifecycle (pending/active/paused/completed) to the CLI: status reads the effective flow state (approval digests, drift, execution, handoff-destination flag); pause/resume/complete mutate it with --confirm (or a TTY prompt when stdin is a TTY, exit 2 when neither applies); review-package writes the review diff for a --base..--head range through the shared core guard, which rejects empty ranges. workit handoff prints the core destination handoff prompt (four-choice menu, never the originating Handoff option) and marks the flow as a handoff destination; a second handoff on an already-marked destination is rejected. Domain/verification failures exit 1 with structured JSON on stderr; usage errors exit 2.

Behavior

  • Safe apply semantics — a malformed config.json is detected before the wizard renders and reported as a friendly blocked output instead of crashing; the same guard runs after the Apply preview.
  • Stable interaction — unchanged wizard inputs are no-ops; they settle without React render warnings and never discard draft state.
  • Clean terminal — only warn/error diagnostics print to stderr; routine structured info records stay in the JSONL journal. Nonzero failures and human-readable errors remain visible.
  • Node support — the packed CLI runs on Node 22+; installation on Node 22.19 emits no engine warning from workit's dependency tree.

Package scripts

bun run build       # bundle dist/index.js (self-contained, Node shebang) + assets
bun run typecheck   # tsc --noEmit

The build produces a nonsplitting dist/index.js with a portable #!/usr/bin/env node shebang and copies the deterministic assets/ (templates) from core.

Docs

Full usage: https://github.com/BrainerVirus/workit#readme