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

opcore

v0.1.0

Published

Local quality gates and pre-write validation for AI coding agents.

Readme

Opcore

Deterministic local changed-file validation gate for coding agents.

Opcore gives coding agents and maintainers a read-only-first repo check loop: scan the current repo, wire the changed-file write gate into supported agent harnesses, run validation, and track concrete local metric deltas. It is built for local feedback before review, not for remote publishing or opaque ratings.

Install

npx opcore install         # repo setup with a plan and approval prompt
npm install -g opcore   # global CLI, then run opcore install --global

Install scripts do not modify repos or agent settings. The package only prints a setup reminder. Requires Node >=22.

If opcore is not found after a global install, check npm's global prefix and put its bin directory on PATH:

npm prefix -g
export PATH="$(npm prefix -g)/bin:$PATH"

First Run

Run inside the repository you want to protect:

opcore install

opcore install runs a read-only scan first, shows the setup plan, and asks before writing on a TTY. In a Git repo, it asks whether to install the write gate for this repo or globally. --json and non-TTY runs stay plan-only unless you pass --yes.

Approved repo setup writes additive .opcore/config, one delimited guidance block, repo and Claude skill files, a repo-local write-gate adapter, merged Claude Code/Codex hook entries, a managed .opcore/ line in .gitignore for Git repos, an active Git pre-commit hook when safe, and .opcore/init-undo.json. Approved global setup writes user-level hook config and skills plus ~/.opcore/init-undo.json. Undo recorded setup with opcore uninstall --yes or opcore uninstall --global --yes.

Changed-File Agent Gate

After opcore install, supported Claude Code and Codex write tool calls run the Opcore pre-write gate before the write lands. You can also run the changed-file gate manually before handing edits to a reviewer or merge process:

opcore check --changed --json

The command validates changed source files with stable JSON and agent-friendly exit codes. It is local, deterministic for current worktree inputs, and does not publish, install packages, run wrapper tools, or edit source files. Codex coverage is limited to its current hook interception boundary for supported tool calls.

opcore check --changed --json works in a freshly git init repo with no commits; it treats the empty baseline as the comparison base.

Coverage

  • TypeScript and JavaScript: deep graph-backed and validation signals for syntax, types, imports, relevant tests, dead exports, and graph structure when facts are available.
  • Rust: useful validation and toolchain signals for source hygiene, oversized files, module evidence, cargo, fmt, clippy, rustdoc, and optional-tool evidence when available.
  • Python: experimental degraded-honest validation for graph-backed .py/.pyi structure, untested modules, dead exports, syntax, and source-hygiene; python.types depends on mypy or pyright and reports missing tools as degraded.
  • Other non-TS/JS/Rust/Python languages: counted and reported as unsupported; Opcore does not invent findings or ratings for files it cannot assess.

Metric output is named evidence and deltas.

Command Reference

opcore
opcore --repo .
opcore status
opcore install
opcore install --global
opcore install --repo . --yes
opcore uninstall --yes
opcore check --changed --json
opcore check --staged --json
opcore measure
opcore measure --repo .
opcore try
  • opcore scans read-only, prints Coverage before Findings, and writes only .opcore/report.json, .opcore/history.jsonl, and bounded .opcore/telemetry.jsonl.
  • opcore status reports activation readiness without running scans, installs, setup, checks, wrappers, or writes.
  • opcore install is scan-first and ask-before-write on a TTY; approved setup merges Claude Code/Codex write-gate hooks without clobbering existing hooks.
  • opcore check --changed --json and opcore check --staged --json are manual agent gates for source changes.
  • opcore measure reads existing metric artifacts and reports named deltas.
  • opcore try creates local sample repos and runs the demo loop without publishing anything.

Platform Support

Package artifacts target darwin-arm64, darwin-x64, and linux-x64 with Node >=22. Unsupported platforms return typed degraded status instead of crashing.

Advanced ASP Provider Note

Providers assess; ASP hosts decide. The opcore package exposes both opcore and opcore-asp-provider. Provider output is evidence for the host to evaluate, not authority to decide policy, enforce gates, or apply changes.

Private ASP hosts may launch the bundled provider with opcore-asp-provider --stdio.

Docs