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

pm-brief

v2026.6.14

Published

Token-budgeted agent briefs and next-work plans for pm workspaces

Downloads

1,336

Readme

pm-brief

pm-brief generates compact, deterministic project briefs for coding agents. It turns pm items into an execution-oriented summary: what to work on next, what is blocked, what context is stale, and which pm updates should be made.

Project management is context management. pm-brief makes that practical when an agent needs a low-token handoff instead of a full project dump.

Install

pm install github.com/unbraind/pm-brief --project

Usage

pm brief
pm brief prompt --focus pm-1234 --max-tokens 2500
pm brief --max-tokens 4000 --format markdown
pm brief --dependency-order --format markdown
pm brief --focus pm-1234 --include-closed --format json
pm brief next --count 5 --dependency-order --explain --confidence
pm brief next --count 5 --format json
pm brief next --count 5 --explain --format text
pm brief stale --days 7

Commands

  • pm brief renders a markdown or JSON project brief.
  • pm brief prompt renders a compact copy-pasteable agent handoff prompt.
  • pm brief next returns the ranked next items only.
  • pm brief stale returns stale open or in-progress items.

Ranking and Budget Flags

  • --max-tokens is an alias for --token-budget.
  • --dependency-order prefers prerequisite items before dependent work in next-work ranking.
  • pm brief next --explain adds transparent score and dependency signals for each ranked item.
  • pm brief emits a Brief Insights section when focus ids are missing, closed focus items are excluded, or active filters hide all open work.
  • --explain on pm brief next includes compact ranking evidence such as unblockability, stale age, dependency fanout, release/deadline proximity, and linked docs/files.
  • --confidence on pm brief next includes the confidence score behind each recommendation.

Agent Brief Contents

  • workspace and item counts
  • top next items with whyNow reasons
  • evidence-weighted next-work score, confidence, and ranking reasons
  • blocker relationships and dependency context
  • stale context findings
  • decision items that need human or agent follow-up
  • brief insights with actionable command hints when filters or focus ids need attention
  • safe suggested pm commands, never auto-applied
  • deterministic token-budget trimming

Agent Handoff Prompt

pm brief prompt turns the same structured brief into direct next-turn instructions for coding agents: ranked work, focus context, blockers, risks, safe pm commands, and working rules. It is designed for handoffs where the next agent needs executable context rather than a full project dump.

TypeScript API

import { buildBrief, renderMarkdownBrief } from "pm-brief";

const brief = buildBrief(items, {
  tokenBudget: 4000,
  focusIds: ["pm-1234"],
  generatedAt: "2026-06-06T00:00:00Z",
});

console.log(renderMarkdownBrief(brief));

Release Readiness

This package uses TypeScript, pm-changelog, and the same daily release shape as the other public pm packages. npm run release:check runs typecheck, build, tests, production audit, dry-run packing, and changelog validation.