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

argus-research

v0.1.0

Published

Browser-based competitive product research toolkit — CDP traffic capture, SSE stream interception, API discovery, and cross-product comparison.

Readme

Argus

Browser-based competitive product research infrastructure. Uses CDP + stealth interceptors to capture HTTP/SSE traffic in real-time while a human operates the target site.

Features

  • Browser Session Manager — Browser-level CDP connection via Target domain, auto-reconnect on disconnect/crash
  • Stealth Layer — Anti-detection: navigator.webdriver removal, toString() spoofing via WeakMap, Symbol-based guards
  • Stream Interceptor — Fetch monkey-patch + EventSource Proxy to capture SSE streams (CDP can't)
  • Unified Event Store — Single events.jsonl per session with targetId, operationId, sanitization, crash-safe writes
  • Operation Markers/research start "label" / /research done to bracket user actions, auto-analyze intervals
  • Payload Diff — Automatic JSON diff between consecutive requests to the same endpoint
  • API Schema Inference — Auto-discover endpoints, infer request/response schemas, detect variants
  • Session Persistence — State file with checkpoint, resume support, API catalog auto-generated on shutdown
  • Analysis Pipelinesanitize → infer → analyze → report from raw events to markdown deliverable
  • Cross-Product Comparison — Compare endpoint coverage, unique APIs, and architectural differences across products

Install

npm install -g argus-research

Or from GitHub:

git clone https://github.com/LynxQuest/Argus.git
cd Argus && npm install && npm link

Quick Start

# 1. Launch Chrome with debugging
open -na "Google Chrome" --args --remote-debugging-port=9333 --user-data-dir=".argus/chrome-profile"

# 2. Log in to target website in Chrome, then:
argus start -p "ProductName" -t "example.com"
# (auto-initializes on first run, remembers config after)

# Next time, just:
argus start

Usage

With Claude Code (Recommended)

argus init automatically installs a Claude Code skill. Just talk:

You: 开始调研小云雀
     → Chrome launches, daemon starts, environment ready

You: 我要测试上传脚本
     → Auto-marks the operation

You: 上传完了
     → Auto-analyzes: API calls, SSE streams, agent tools, payload changes

You: 出报告
     → Full insight report saved to deliverables/

CLI Only (without Claude Code)

argus start              # Start daemon
argus mark 编辑角色卡     # Mark operation start
# (operate in browser...)
argus done               # End mark + analysis
argus status             # Check daemon status
argus report             # Generate report
argus compare -i a.json,b.json  # Compare products

Raw curl (for scripting)

# Start operation marker
curl -s -X POST http://127.0.0.1:9334 \
  -H 'Content-Type: application/json' \
  -d '{"action":"start","label":"Edit character card"}'

# (operate in browser...)

# End marker — auto-analyzes the interval
curl -s -X POST http://127.0.0.1:9334 \
  -H 'Content-Type: application/json' \
  -d '{"action":"done"}'

# Check status
curl -s -X POST http://127.0.0.1:9334 \
  -H 'Content-Type: application/json' \
  -d '{"action":"status"}'

Post-Session Analysis

# Sanitize (remove tokens, credentials)
node tools/pipeline.mjs sanitize -i .research/sessions/session.events.jsonl -o sanitized.jsonl

# Infer API schemas
node tools/pipeline.mjs infer -i sanitized.jsonl -o api-catalog.json

# Generate findings
node tools/pipeline.mjs analyze -i sanitized.jsonl -c api-catalog.json

# Generate report
node tools/pipeline.mjs report -i findings.json -o report.md

# Compare two products
node tools/compare.mjs -i productA.findings.json,productB.findings.json -o comparison.md

Architecture

research-daemon.mjs          ← One-command entry point
├── browser-session.mjs      ← CDP Target domain session management
├── stealth.mjs              ← Anti-detection patches
├── interceptor.mjs          ← SSE stream capture management
│   └── interceptor-payload.js  ← Injected into page (fetch + EventSource)
├── event-store.mjs          ← Unified event storage + HTTP capture
├── marker.mjs               ← Operation marker HTTP server
├── session-state.mjs        ← Session persistence
├── diff.mjs                 ← Payload diff engine
├── schema-infer.mjs         ← API schema inference
├── pipeline.mjs             ← Analysis pipeline CLI
└── compare.mjs              ← Cross-product comparison

Event Types

| Type | Description | |------|-------------| | http | HTTP request/response (method, URL, postData, responseBody, duration) | | sse | SSE stream data (URL, chunks, fullText) | | screenshot | Auto-captured screenshot on key endpoints | | marker | Operation start/end bracket | | error | System errors (AUTH_EXPIRED, CDP_DISCONNECTED, INTERCEPTOR_OVERWRITTEN) | | lifecycle | Target attach/detach/navigate, session start/end |

Tech Stack

  • Runtime: Node.js (ESM)
  • CDP Communication: Raw WebSocket via ws package
  • Event Storage: JSON Lines (append-only, grep-friendly)
  • CLI: Node.js built-in parseArgs

License

MIT