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

app-capture

v0.1.1

Published

A CLI that collects HTTP, WebSocket, network, logs, and screenshots into a unified timeline for analyzing app behavior.

Readme

app-capture

npm version bundle JSDocs License

macOS-only CLI that saves each capture run in its own output directory: HTTP/WebSocket records, raw bodies, packet capture, macOS logs, and optional screenshots.

Proposal

Use macOS as a capture workstation for investigating iOS and iPadOS app behavior. The goal is to record enough traffic, logs, and visual context to reconstruct API calls, WebSocket messages, payloads, timing, and user-flow steps from one capture run.

Usage

Start capture first:

npx app-capture --name demo-capture \
  --network-service Wi-Fi \
  --proxy-port 8081 \
  --upstream-proxy http://127.0.0.1:7890 \
  --process-names DemoApp \
  --hosts api.example.com \
  --paths /api/ \
  --paths /v1/

Then use the target app normally. When you are done, return to the terminal and press Control+C to stop recording and restore proxy settings.

--hosts and --paths are traffic filters. Repeat them only when you need more filters. --process-names filters macOS unified logs. Start the target app first, then find process names with Activity Monitor: search for the app, open its info panel, and use the exact Process Name value.

To find helper or extension processes, keep the app running and search by a word from the app name or bundle path:

ps -axo pid,comm | grep -i 'part-of-app-name'

Use the executable name from the comm column, without the path, as a --process-names value.

Outputs

  • manifest.json: run metadata, options, paths, proxy state, and final status. Generated by app-capture.
  • capture.log: CLI events, child process commands, warnings, and shutdown flow. Generated by app-capture.
  • http.jsonl: HTTP request/response timeline, headers, status codes, and body file links. Captured by mitmdump with the generated Python addon.
  • websocket.jsonl: WebSocket message timing, direction, size, and body file links. Captured by mitmdump with the generated Python addon.
  • bodies/: raw HTTP and WebSocket payload bytes for payload debugging. Captured by mitmdump with the generated Python addon.
  • network.pcap: packet-level connectivity checks, retries, TLS handshakes, and non-proxy traffic clues. Captured by tcpdump.
  • app.log: macOS unified logs for selected process names or predicates. Captured by log stream.
  • screenshots/: optional visual state over time when UI context matters. Captured by screencapture.

Dependencies

app-capture uses third-party and macOS tools:

  • mitmdump from mitmproxy records HTTP and WebSocket flows. Its addon runs in Python.
  • tcpdump records packet-level traffic and may ask for sudo.
  • macOS provides networksetup, log stream, and screencapture.

With Homebrew:

brew install python mitmproxy
brew install tcpdump # optional; macOS also ships tcpdump

License

MIT License © jinghaihan