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

@kampus/decisions-index

v0.1.0

Published

decisions-index — generate .decisions/index.md from the ADR files; CI --check fails on a stale index or a duplicate ADR id (ADR 0066)

Readme

@kampus/decisions-index

Generate .decisions/index.md from the ADR files (ADR 0066).

.decisions/index.md is generated output, not a hand-maintained file. The source of truth is each .decisions/NNNN-*.md file's YAML front-matter (id, title, status, date); the index table is derived from it, ordered ascending by id. Two doc PRs that add two different ADR files no longer share a textual anchor (the tail of the table), so they can't collide on index.md — the concurrent-merge friction ADR 0066 removes. The same gate folds in the sibling problem: a duplicate ADR id across files fails the check.

Shape

Per the repo's mechanical-tooling idiom (leak-guard / epic-ledger / crabbox-manifest): a pure, unit-tested core + a thin Effect CLI bin.

  • src/decisions-index.ts — the pure core. buildIndex(files) parses every file's front-matter, fails on a duplicate id (DuplicateIdError) or a malformed file (FrontmatterError), and renders the deterministic table. Status/title render verbatim (they may carry inline markdown, e.g. a linked superseded by [0009](0009-slug.md)).
  • src/bin.ts — the effect/unstable/cli bin (generate + check).

Usage

# Rewrite .decisions/index.md from the ADR files (authors / the /adr skill):
pnpm --filter @kampus/decisions-index generate

# CI gate — exit 1 on a stale index OR a duplicate ADR id:
pnpm --filter @kampus/decisions-index check

# Point at a different directory:
node packages/decisions-index/src/bin.ts check --dir path/to/.decisions

Exit codes: 0 clean, 1 gate failure (stale index or duplicate id; reason on stderr), any other non-zero = the run could not complete (e.g. unreadable dir).

CI runs check on every PR via .github/workflows/decisions-index.yml.

Do not hand-edit index.md

Edit the ADR file's front-matter and regenerate. A hand-appended row is exactly the collision this package removes.