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

threadlens

v1.2.2

Published

Local search for your coding-agent sessions across Codex, Claude Code, Cursor, and more.

Downloads

1,159

Readme

threadlens (npm)

Local cross-harness search for coding-agent sessions.

npm install -g threadlens
threadlens search "plunk otp"
threadlens skill

Or run once without installing:

npx threadlens search "plunk otp"

How it works

This package ships a tiny JS shim (bin/threadlens.js) with no vendored Python. Installing it pulls in the matching pre-built native binary via npm's optionalDependencies mechanism — exactly the way esbuild distributes its binary.

| Platform | Package pulled | |---|---| | macOS arm64 | @moinulmoin/threadlens-darwin-arm64 | | Linux x64 (glibc) | @moinulmoin/threadlens-linux-x64-gnu |

The binary is a self-contained PyInstaller onedir bundle — no Python required on the host machine.

Requirements

  • Node.js 16+ (for the shim)
  • One of the supported platforms above
  • No Python required

Override / escape hatches

Point at a custom binary:

THREADLENS_BINARY=/path/to/threadlens threadlens search "..."

Installed with --omit=optional? The shim will print a clear error. Fix it:

npm install -g threadlens   # re-install without --omit=optional

Unsupported platform or prefer Python?

uv tool install threadlens       # installs from PyPI, brings its own Python
uvx threadlens search "..."      # run without installing

Or download a release archive directly from https://github.com/moinulmoin/threadlens/releases.

Binary resolution order

  1. THREADLENS_BINARY environment variable (if set, used verbatim)
  2. Platform lookup: ${process.platform}-${process.arch} → scoped package name
  3. require.resolve('<pkg>/package.json') to locate the package directory
  4. Execute <pkgDir>/bin/threadlens/threadlens with all args forwarded

If step 2 or 3 fails, the shim exits 127 with a diagnostic message.

Development

# Regenerate platform package scaffolds and sync version from threadlens/__init__.py
node scripts/sync.mjs

# Run the shim unit tests (no binaries needed)
node --test npm/test/shim.test.mjs

See the project README for full usage and source.