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

nightmanager

v0.2.0

Published

Finder, Oracle, Manager, and Worker tools for Pi's Nightmanager workflow

Readme

The Nightmanager for Pi

Stop babysitting agents. Give them shared understanding.

Nightmanager is a spec-driven Pi workflow for solo developers and small teams: clarify intent, write local specs/TODOs, then delegate one ready slice for AFK implementation. You come back to validated commits and, when possible, a ready-for-review PR. Nightmanager never merges automatically.

Borrowed/remixed with appreciation from https://github.com/mattpocock/skills.

Public site: asabya.github.io/nightmanager — source: docs/index.html.

Loop

grill-me / wayfinder → to-spec → to-tickets → to-ready → ( /implement | /nightmanager ) → /code-review → PR review
  1. grill-me: interrogate unclear intent one question at a time. For large, foggy efforts, wayfinder charts a local map of investigation tickets first.
  2. to-spec: synthesise a local draft spec in specs/draft-*.md.
  3. to-tickets: slice the spec into vertical draft TODOs.md tickets.
  4. to-ready: promote reviewed specs/tickets and create one promotion commit.
  5. Implement — two ways from the same queue:
    • /nightmanager (AFK): select the active ready/bug batch, implement through subagents, validate, commit, push, and open one PR when possible.
    • /implement (attended): work one ready ticket in the foreground — TDD where seams allow, then /code-review, then commit. Claims its ticket with [in-progress] so the night shift skips it.

Both paths apply the two-axis review (/code-review); research gathers primary-source notes when a ticket needs them.

Runtime context is intentionally lean: the runner preloads only shared Nightmanager prompts, TODOs.md, and the active spec/template. Agents read README.md, manifests, or unrelated docs only when needed.

Tools

| Tool | Role | Use for | | --- | --- | --- | | finder | Codebase search | Files, usages, relationships | | oracle | Reasoning/debugging | Root cause, trade-offs, next probes | | librarian | OSS research | Upstream code evidence and GitHub permalinks | | worker | Implementation | Small verified edits | | manager | Orchestration | Coordinating finder/oracle/worker phases |

Install and run

pi install npm:nightmanager

Local development install from another project:

pi install -l ./path/to/nightmanager

Run the autonomous loop in Pi:

/nightmanager

Run this repo from source:

pi -e ./src/index.ts

Planning and implementation skills

  • grill-me: ask one question at a time (facts looked up, decisions put to you) until goals, risks, and trade-offs are clear; a confirmation gate keeps it from jumping to a spec or implementation.
  • wayfinder: for efforts too big for one session — chart a local specs/map-<slug>.md of research/grilling/task tickets and resolve them one at a time until the way is clear.
  • research: dispatch the librarian to investigate a question against primary sources and save a note under docs/research/.
  • to-spec: synthesise specs/draft-<slug>.md from the current conversation (no interview).
  • to-tickets: add vertically-sliced draft TODOs.md tickets with blocking edges; no GitHub issues unless requested.
  • to-ready: promote reviewed draft specs/tickets and commit only the promotion.
  • /implement: attended implementation of one ready ticket (TDD → /code-review → commit); the foreground counterpart to /nightmanager.
  • /code-review: two-axis review of a diff — Standards (repo conventions + Fowler code smells) and Spec (matches the ticket) — run as parallel sub-agents. Also applied inline by the night shift.
  • tdd: reference material for the red → green loop used by /implement and the night-shift worker.

Tool details

finder

Read-only codebase exploration. Use it to find where features live, which files participate in a flow, or how modules connect.

Example:

Use finder to find where authentication is handled

oracle

Read-only reasoning for ambiguous failures, root-cause analysis, trade-offs, and the best next probe.

Example:

Use oracle to debug why auth middleware fails intermittently

librarian

Read-only external library research. It resolves/clones upstream repos into /tmp, inspects source/tests/examples before docs, and cites strict commit-pinned GitHub permalinks.

Example:

Use librarian to compare how Fastify and Express handle request decorators, with source links

worker

Focused implementation with the smallest viable diff and concrete verification. With handoff context, Worker writes an audit artifact to .pi/handoffs/ and avoids rediscovery unless context is missing or contradictory. It may use finder once; it cannot use oracle or delegate recursively.

Example:

Use worker to make the smallest possible fix and verify it

manager

Orchestrates multi-phase tasks: search → reasoning → implementation. Manager does not inspect or edit directly; implementation is gated through internal handoff_to_worker, requiring objective, findings, target files, and decisions.

Example:

Use manager to investigate the failing auth flow, choose the safest fix, implement it, and verify the result

Configuration

Optional per-agent config lives at:

~/.pi/agent/nightmanager.json

If missing, malformed, or invalid, subagents fall back to the current Pi model. thinking defaults to medium; avoid low.

{
  "agents": {
    "manager": { "model": "provider/cheap-or-small-model", "thinking": "medium" },
    "finder": { "model": "provider/cheap-or-small-model", "thinking": "medium" },
    "worker": { "model": "provider/strong-code-model", "thinking": "medium" },
    "oracle": { "model": "provider/best-reasoning-model", "thinking": "high" },
    "librarian": { "model": "provider/strong-research-model", "thinking": "high" }
  }
}

Keep manager/finder cheaper when possible; reserve stronger models for worker, oracle, and librarian.

Development

npm install
npm run typecheck
npm test
npm run build      # alias for typecheck; no dist output

Focused tests:

npm run test:unit
npm run test:integration
npm run test:e2e

Package shape:

nightmanager/
  package.json
  src/{core,tools,types}/
  prompts/
  skills/
  specs/
  tests/{unit,integration,e2e}/

Notes

  • One Pi extension entrypoint registers all tools and commands.
  • Handoff artifacts are written to .pi/handoffs/ when Worker receives structured context.
  • Tests are layered: unit, integration, and selective CLI smoke tests.