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

@agenttool/hf-scout

v0.2.0-dev.0

Published

Read-only Hugging Face metadata, exact-revision provenance, and release reconciliation for AgentTool and KINGDOM

Readme

@agenttool/hf-scout

Public developer preview for projecting bounded Hugging Face repository metadata into KINGDOM and Agent Data shapes, and for reconciling a named release commit with a separately observed current Hub head. It is deliberately a scout, not an inference provider, credential bridge, downloader, or hosted service.

What it does

  • Reads one explicitly selected public model, dataset, or Space through fixed unauthenticated Hugging Face Hub API endpoints, either at the mutable current head or at an exact requested full commit SHA.
  • Accepts a caller-owned HubReader so an MCP host or @huggingface/hub adapter can supply metadata without coupling OAuth to this package.
  • Separates requested revision, resolved revision, mutable current-head observations, publisher assertions, provider content commitments, caller declarations, and local derivations.
  • Emits a structurally closed inspection report, a compact derived KINGDOM reference sidecar, or a structural @agenttool/data text-collector request. Runtime projectors enforce semantic invariants that portable JSON Schema cannot express, including sorted unique paths and logical identity limits.
  • Projects an explicitly supplied love.huggingface-model-lock/v1 document into compact status metadata.
  • Reconciles one exact release-revision observation against a second, independent current-head observation, with explicit provider-versus-caller transport provenance and optional caller-declared source and caller-reported local manifest evidence.
  • Exposes a closed, revision-pinned catalog of phase-specific research leads and can bind one lead to the exact canonical bytes of a Scout report.

What it does not do

It does not read ambient HF credentials, arbitrary URLs, private repositories, or raw cards. It does not download files, execute model or Space code, invoke inference, Jobs, Sandboxes, or MCP tools, write to the Hub, upload traces, modify KINGDOM-OS, publish npm packages, or verify that a declared license is correct or compatible.

Each built-in read makes one bounded GET, follows no redirects, requests credential omission, and retries zero times at the Scout layer. Exact reads use /revision/{percent-encoded-full-sha}?blobs=true; mutable reads also retain ?blobs=true. Reconciliation deliberately performs two reads: exact release, then current head. The reader captures the host fetch function when the module loads so a later global replacement is not silently adopted. These are requested wrapper effects, not proof that the host runtime itself is uncompromised. A structural HubReader cannot claim that built-in identity. An injected reader—or a PublicHubReader given a custom fetch—is caller-owned; the report names that boundary and does not make claims about its credentials, retries, or body policy. The wrapper races its deadline even when a custom fetch ignores AbortSignal.

Local use

bun install --frozen-lockfile
bun run ci

bun src/cli.ts facilities
bun src/cli.ts research-leads --phase pretraining_data_selection
bun src/cli.ts search model mlx-community --limit 3
bun src/cli.ts inspect model mlx-community/Llama-3.2-3B-Instruct-4bit --json
bun src/cli.ts inspect dataset Yu-and-Ai/agenttool-training-garden \
  --revision 208eba3addddfaf8bbc8a2ba3b31926db69d4131 --agent-data
bun src/cli.ts reconcile dataset Yu-and-Ai/agenttool-training-garden \
  208eba3addddfaf8bbc8a2ba3b31926db69d4131 --json
bun src/cli.ts lock-status /explicit/path/to/model-lock.json

The pinned Training Garden example was confirmed on 2026-08-24; current head can move. For another repository, use an actual commit belonging to that repository. A revision 404 means that the revision was not found or was not associated with that repository; Scout cannot distinguish those cases.

--sidecar emits kingdom-hf-sidecar/v0.2; it does not register that sidecar with KINGDOM. It stores a digest-bound artifact reference rather than copying the complete snapshot, and carries the public-versus-caller-owned observation boundary. Its effect booleans describe only the sidecar projector. --agent-data requires an exact requested-and-resolved commit match and emits a request for the existing text collector. A full SHA merely returned by a current-head read is not sufficient. Observation time stays outside snapshot bytes. The Agent Data external identity and version bind both the revision and exact snapshot SHA-256, so repository settings or bounded inventory changes at one revision cannot collide.

reconcile records the release revision and current head independently. Its optional --source-* values are caller declarations. Its --local-* values are caller-reported local verification and must be supplied together; Scout does not read or verify local repository bytes. When the exact file inventory is complete, the observed manifest digest is SHA-256 over Scout's canonical JSON encoding of the sorted file-commitment array. Comparisons are useful evidence, but do not establish license truth, consent, training authority, safety, or compatibility.

Hub repository metadata exposes Git blobId commitments and, for LFS files, separate lfs.sha256 payload commitments. Scout keeps those algorithms separate. It leaves Xet hashes null unless they appear in the bounded response; it does not issue a second tree walk to infer them.

Dataset Viewer is not used by the v0.2 runtime. Its revision-like query is not an immutable selector, and X-Revision represents a possibly stale cached processing revision rather than a universal current Hub head.

lock-status validates and digests the lock metadata only. It accepts the Love creator's nullable last_modified, task, and library fields, string-or-list base_model, and optional Git blob commitments. The Love Python tool remains authoritative for creating/reproducing the lock and verifying a downloaded snapshot. This package never claims snapshot_verified: true.

Phase-aware research treasures

research-leads is an inert curated overlay, not a downloader. Its 15 pinned records cover pretraining data-selection experiments, quality filtering and decontamination, human disagreement and preference rationales, earliest-step reasoning errors, judge/rhetoric bias, simulated tool traces, tool-failure recovery, multilingual evaluation, gated safety labels, agent SFT/RL task bundles, and sparse-autoencoder sweeps. The DataDecide suite is deliberately split into three records because its evaluation results and data recipes declare ODC-By while its perplexity-results repository declares no license. Despite its name, the pinned DataDecide-data-recipes tree includes very large tokenized binary shards; Scout therefore catalogs only their metadata and requires separate approval for binary or bulk retrieval.

The intended ecosystem routes stay deliberately narrow:

  • DataDecide evaluation and perplexity trajectories become Yutabase experiment/provenance graphs; the token arrays remain out of process.
  • HelpSteer2 and OffsetBias become bounded RhetorLint disagreement and evaluator-bias probes, never truth or intent labels.
  • ToolACE, AgentTrove, and tool-failure recovery become inert AgentTool parser and recovery fixtures. AgentTrove contains text traces and environment/tool transcripts; only the separate Agent RL 5K record declares binary tasks.
  • ProcessBench and Global-MMLU remain sealed evaluation material, excluded from training and retrieval indexes.
  • Gemma Scope stays a metadata matrix unless a separately reviewed single-SAE pilot is approved; its base-model terms and publisher-noted quality issues remain explicit boundaries.

Every record separates publisher assertions from researcher inference, names bounded and forbidden ecosystem uses, and derives its Hub/paper URLs from exact repository identity, revision, and paper IDs. bindHfResearchLead requires the byte-equivalent built-in curated definition, an immutable matching Scout report, exact license/gate/private declarations, and the Scout's non-download/non-execution boundaries. Reusing a known key with rewritten research fields is rejected. Its output binds the canonical lead definition and report snapshot with separate SHA-256 digests. It records legal clearance and gate acceptance as not_assessed.

The current catalog is metadata-only. It does not read rows, download files, accept gated terms, extract binary task bundles, execute embedded calls, or make preference, rhetoric, safety, or interpretability labels authoritative.

Companion training atlas

AgentTool's @agenttool/dark-continent-karma package owns a separate kingdom.hf-training-treasure/0.1 atlas. The atlas is the proposal-only, publishable research map; Scout is the transport/provenance boundary that can observe a repository and bind the 15 exact definitions curated here. Their overlap is intentional, but neither silently imports the other. An atlas consumer must validate that package's schema and hash manifest separately; Scout does not turn an external atlas row into one of its canonical leads.

npm / HF crossover

The package demonstrates a small npm boundary:

  • explicit ESM exports for code, facilities, v0.2 inspect/search/sidecar/reconciliation schemas, explicit historical v0.1 aliases, research schemas, and a developer-preview local extension manifest;
  • two CLI bins, agenttool-hf-scout and kingdom-hf;
  • zero runtime dependencies and a strict package file allow-list;
  • an injected HubReader seam for an optional @huggingface/hub adapter;
  • no @huggingface/inference, MCP client, or agent loop in the default graph.

The facilities catalog records the broader HF map and official source links as observed on 2026-07-30. It intentionally contains no volatile price or quota entitlement claim.

Authority and trust

Hub cards, tags, gating flags, and license fields are publisher assertions. Repository SHAs and file hashes are useful content commitments; a 40-hex value alone does not prove that a commit exists or belongs to the named repository. Public-reader observations and caller-owned reader assertions therefore remain distinct in durable artifacts. Neither proves safety, behaviour, consent, authorship, or license truth. Search hits are leads until a separate repository read succeeds. Boundary codes use a closed vocabulary and describe only what this Scout did; they do not claim that a caller-owned reader avoided downloads, execution, compute, or writes.

This package is Apache-2.0 licensed and configured for a public prerelease on the npm next tag. The descriptor is not a KINGDOM host registration, and no hosted route is installed. Publication, Hub upload, compute, and deployment remain separate operator decisions.