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

@unbrowse/collective-learning

v0.1.0

Published

Meta-pattern for agent-contributed knowledge. Agents discover API recipes, workarounds, and failure patterns — then auto-contribute them back to skill repos via GitHub PRs/issues.

Readme

Collective Learning

When AI agents discover something useful, that knowledge should flow back to every agent.

A meta-pattern for open-source skills. Add it to any repo — agents that use your tool will auto-contribute API recipes, workarounds, and failure patterns via GitHub PRs and issues.

The Problem

Agents repeatedly waste compute rediscovering the same things:

  • 60 tool calls fighting bot detection when a direct API exists
  • 150K tokens burned on browser automation that could be 3 curl commands
  • Every agent starts from zero on the same sites

The Solution

# Add to any skill/library repo
npx skills add https://github.com/unbrowse-ai/collective-learning --skill collective-learning

This gives agents using your repo:

  1. Pre-task lookup — check if another agent already solved this problem
  2. Post-task contribution — when they discover something new, auto-file a PR/issue
  3. Collective knowledge basecollective-knowledge/ directory with machine-readable recipes

How It Works

Agent uses your tool → hits a wall → discovers workaround →
files PR to your repo → you merge → next agent reads it → skips wall entirely

The API-First Doctrine

Every contribution pushes toward programmatic access:

BEST:   Direct API call (curl/fetch, no browser)
GOOD:   API discovered via JS bundle analysis  
OK:     API discovered via browser network intercept
AVOID:  Browser automation / CDP scripting
WORST:  Manual browser interaction

Quick Start for Library Authors

  1. Add this skill to your repo
  2. Create a collective-knowledge/ directory:
your-repo/
├── collective-knowledge/
│   ├── api-recipes.jsonl        # One recipe per line
│   ├── failure-patterns.jsonl   # Known failures to avoid
│   └── CONTRIBUTING.md          # Agent contribution guidelines
└── ...
  1. Add to your CLAUDE.md or SKILL.md:
## Collective Learning

Before attempting browser automation on any domain, check `collective-knowledge/api-recipes.jsonl` for known direct API patterns. After discovering a new pattern, file a PR adding it.

That's it. Agents will start contributing.

Contribution Format

Each line in api-recipes.jsonl is a self-contained JSON object:

{
  "domain": "priceline.com",
  "type": "api-recipe",
  "service": "hotel search",
  "endpoint": "https://www.priceline.com/pws/v0/pcln-graph/",
  "method": "POST",
  "auth": "session-cookies-via-login",
  "steps": ["login for cookies", "mine JS bundles", "curl GraphQL"],
  "tags": ["graphql", "anti-bot", "cdp-hostile"],
  "savings": {"tool_calls_before": 62, "tool_calls_after": 8}
}

GitHub Labels

Repos that opt in should create these labels:

for label in agent-discovery api-recipe failure-pattern workaround verified; do
  gh label create "$label" --repo YOUR/REPO --force 2>/dev/null
done

License

MIT