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

@favasconcelos/standards-cli

v0.3.0

Published

Installs shared coding standards on a machine and wires them into every installed AI harness

Readme

standards-cli

CI license

Installs shared coding standards (CODE_STANDARDS.md) on a machine and wires them into every installed AI harness — opencode, pi, Codex, Claude Code, Copilot — so you stop repeating yourself in every session.

These are my personal coding standards, distilled from my own projects. They reflect how I like code to be written — fork this repo and make them yours.

Install

npm install -g @favasconcelos/standards-cli
standards init        # wizard: pick harnesses, install pointers

To run from source instead: npm install && npm run build && npm link.

How it works

  1. Canonical copy – the standards text ships with the package (templates/CODE_STANDARDS.md). sync copies it to ~/.local/share/standards-cli/CODE_STANDARDS.md (backing up a hand-edited copy first, never deleting).
  2. Pointers first, minimal config edits only when required – for each harness the CLI creates the file that harness already reads, as a symlink to the canonical copy. Updates therefore propagate atomically. The one exception is opencode, which only auto-loads AGENTS.md: the CLI also appends the pointer to instructions in the global ~/.config/opencode/opencode.json(c) (comments preserved, previous file backed up, skipped when already present).

| Harness | Pointer file | How the harness picks it up | | ----------- | -------------------------------------- | ------------------------------------------------------------------ | | opencode | ~/.config/opencode/CODE_STANDARDS.md | instructions entry the CLI adds to the global opencode.json(c) | | pi | ~/.pi/agent/AGENTS.md | concatenated with repo AGENTS.md files at startup | | Codex | ~/.codex/AGENTS.md | global scope (32 KiB combined cap) | | Claude Code | ~/.claude/CLAUDE.md | user-level memory | | Copilot | ~/.copilot/copilot-instructions.md | Copilot CLI user-level instructions, applied across repositories |

Paths are the same on Linux, macOS, and Windows (~ is the home directory on each). On Windows, creating symlinks needs Developer Mode (Settings → Privacy & security → For developers → Developer Mode) or an elevated prompt; otherwise sync fails with guidance instead of leaving a half-written pointer.

Commands

standards init                       interactive setup: pick harnesses, install pointers
standards sync                       refresh canonical copy + repair pointers
standards status                     show harness/link state + available updates
standards diff                       show template vs installed canonical differences
standards upgrade [--yes]            install the latest release, then re-sync
standards config get [key] | set <key> <value>

Updates

Content updates ship with CLI releases. status, sync, and upgrade check the registry at most once every 24 hours (marker in state dir, silent on failure/offline). upgrade installs the latest release; run sync afterwards (offered automatically) to apply the new standards text.

Configuration

~/.config/standards-cli/config.json (state in ~/.local/state/standards-cli/). Override locations with STANDARDS_CLI_CONFIG_DIR / STANDARDS_CLI_STATE_DIR.

| Key | Default | | | ------------------ | ------- | ------------------------------------------- | | harnesses | [] | harness ids wired by init | | autoCheckUpdates | true | registry check in status/sync/upgrade | | lastUpdateCheck | 0 | epoch ms of the last check (managed) |

Extending

  • New harness: implement Harness (src/harnesses/types.ts) in src/harnesses/ and register it in src/harnesses/index.ts. The CLI creates symlinks at the pointer path; only add configWiring when the harness cannot read the pointer on its own (see opencode). Config edits must be minimal, idempotent, comment-preserving and backed up first.

Development

npm run dev         # rebuild on change
npm test            # vitest
npm run typecheck
npm run lint        # biome

Releasing

Releases are published to npm from GitHub with trusted publishing (no npm token). The workflow is .github/workflows/release.yml.

npm version patch|minor|major        # bumps package.json, commits, tags vX.Y.Z
git push --follow-tags
gh release create vX.Y.Z --generate-notes

Publishing the GitHub Release triggers the workflow, which checks that the tag matches package.json, runs lint, typecheck, tests and build, then runs npm publish --access public (--access public is required for the scoped name). Mark the release as a pre-release to publish it under the next dist-tag instead of latest.