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

@openclawbrain/learner

v0.2.1

Published

Learning-first candidate-pack and learned route_fn assembly for promoted OpenClawBrain artifacts.

Readme

@openclawbrain/learner

Candidate-pack and learned route_fn assembly helpers for always-on OpenClawBrain learning.

This package stays on the artifact side of the boundary: it ingests normalized event exports, emits deterministic candidate pack payloads, and materializes pack directories for downstream validation and activation.

Install

pnpm add @openclawbrain/learner

Includes

  • deterministic fast-boot candidate packs with live-first/background-backfill defaults
  • init-graph payloads that classify OpenClaw markdown files by explicit role and carry ontology-backed node metadata
  • pointer-aware working-set init that parses MEMORY.md plus linked notes into anchor, working-set, and passive-expansion layers
  • seeded init-route priors over offline artifact roles with explicit heuristic-only handoff before PG route updates
  • learned routing artifacts with stable routerIdentity values such as pack-id:route_fn
  • explicit collected-label PG supervision from human feedback, self-memory labels, scanner-harvested labels, and canonical teacher artifacts
  • human/self label-harvest surfaces embedded into graph blocks, vectors, and manifest summaries
  • structural graph learning metadata spanning Hebbian reinforcement, decay, and split/merge/prune/connect ops inside emitted candidate-pack artifacts
  • always-on runtime structural plasticity defaults to a low-churn guardrail plan: connect can turn on after at least two interactions, split/merge/prune wait for at least one feedback event, and every structural op is hard-capped to one application per runtime materialization cycle unless a caller disables it explicitly
  • merge materialization is deterministic and narrow: when two non-synthetic blocks share enough signal (keyword overlap plus relation/source-stream evidence), the learner emits one synthetic topology node with compactedFrom lineage and reciprocal merge/connect edges; packages/learner/test/learner.test.ts locks that behavior down
  • embedded workspace snapshot provenance inside emitted manifests
  • on-disk materialization for coherent downstream activation and evaluation steps
  • bridge-slice and bridge-bundle materialization helpers for continuous learner refreshes
  • runtime-plan summaries that make fast-init, live-first priority, and passive-backfill backlog state explicit via describeAlwaysOnLearningRuntimeState()
  • canonical teacher-supervision artifact builders with dedup and freshness metadata
  • teacher-supervision-aware candidate packs that carry fresh operator guidance into future graph/vector payloads

Learned routing refresh now uses only explicit collected-label targets carried in router traces. This package does not preserve a heuristic learned-label fallback or spread supervision onto unrelated blocks by keyword overlap. Init-time heuristics remain limited to boot priors and structural topology.

Those structural-op fields describe candidate-pack materialization metadata. They are not a claim of live active-pack mutation during serving.

Pointer-aware init keeps fast boot first: active-tasks.md, today's memory/*.md, and anchor files such as MEMORY.md / AGENTS.md become top-priority boot inputs, while additional pointer-reachable docs stay in the working set or passive-expansion queue. Use buildPointerAwareWorkingSet() to inspect that layered selection directly.