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

@agentcheck/core

v0.2.0

Published

Core checkpoint, change-detection, and deterministic analysis engine for AgentCheck.

Readme

@agentcheck/core

The programmatic checkpoint, change-detection, analysis, risk, and verdict engine behind AgentCheck.

@agentcheck/core is local-first and deterministic. It provides the shared business logic used by the AgentCheck CLI and VS Code extension while preserving the developer's real Git index.

Installation

Requires Node.js 22 or newer.

npm install @agentcheck/core

Developers looking for the normal command-line product should generally install @agentcheck/cli instead.

Public API

The package root exports the following APIs.

Checkpoint workflow:

  • createCheckpoint(cwd?)
  • loadCheckpoint(cwd?)
  • createCurrentSnapshot(cwd?)
  • reviewChanges(cwd?)
  • clearCheckpoint(cwd?)

Analysis and risk:

  • analyzeChanges(context, analyzers?)
  • createCachedFileContentProvider(provider)
  • defaultAnalyzers
  • assessRisk(changes, findings)
  • riskLevelForScore(score)
  • verdictForRiskLevel(level)
  • RISK_LEVEL_THRESHOLDS and RISK_WEIGHTS

Individual analyzers and helpers:

  • ConfigurationAnalyzer, DangerousFileAnalyzer, DependencyAnalyzer, LargeChangeAnalyzer, MigrationAnalyzer, SecretAnalyzer, and TestChangeAnalyzer
  • LARGE_CHANGE_THRESHOLDS, SECRET_PATTERNS, TEST_ATTENTION_THRESHOLDS, and isTestPath
  • GitError and resolveRepository(cwd)

Exported TypeScript types include Checkpoint, Snapshot, ChangeSet, FileChange, ReviewResult, AnalysisContext, Analyzer, Finding, FileContentProvider, RiskAssessment, RiskLevel, and Verdict, together with their related category and contribution types.

Example:

import { createCheckpoint, reviewChanges } from "@agentcheck/core";

await createCheckpoint(process.cwd());
const result = await reviewChanges(process.cwd());

console.log(result.changes.files);
console.log(result.findings);
console.log(result.risk);
console.log(result.verdict);

For checkpoint semantics, complete behavior, limitations, and source code, see the AgentCheck repository.

v0.2 review report contract

Core exposes toReviewReport(result) and ReviewReport: schema version 1 is a data-only, JSON-round-trippable review transport model. Finding and risk-contribution IDs are stable lowercase dotted identifiers; titles, descriptions, actions, and reasons remain presentation text and are not identity. Built-in findings always include a deterministic Core-authored action: the concise next inspection step.

A schema version describes the structure and semantics of the report, independently of checkpoint schema versioning. Version 1 is conservatively compatible only within its major schema version: additions are optional fields; removal, renaming, or semantic reinterpretation requires a new schema version.

Reports include checkpoint/current HEAD and branch context, change paths, findings, risk, and verdict. For each finding, title is the human label, description is the observed significance or rationale, evidence is deterministic supporting data, and action is the deterministic next inspection step. Dependency findings may additionally contain dependencyDeltas: literal added, removed, or updated records with normalized dependency names and safe before/after specifiers. They intentionally omit checkpoint timestamps and tree IDs (volatile/internal snapshot metadata), source content, Buffers, providers/functions, absolute local paths, Git process state, and secret values. Paths are repository-relative.

Dependency deltas

Semantic literal deltas are supported for package.json dependency sections, .csproj PackageReference items with a Version attribute, Directory.Packages.props PackageVersion items with a Version attribute, and requirements.txt direct requirements. Package identity follows the existing parser rules: case-insensitive names for package.json and .NET, and normalized Python names for requirements files. Formatting-only edits and same-value section moves remain finding-free; whole semantic-manifest deletion remains bounded to the file-change report. Invalid, ambiguous, indirect, URL, editable, or property-driven forms do not fabricate version data and retain the conservative fallback behavior. AgentCheck reports literal evidence only: it does not resolve packages or make compatibility, safety, vulnerability, or upgrade recommendations.