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

@reqray/register

v0.1.1

Published

Start with `node --import @reqray/register` and a Node.js app's requests become waterfalls: SQL, cache and outgoing HTTP instrumented automatically, N+1 found down to the line.

Downloads

542

Readme

@reqray/register

One flag on the command line, and a Node.js application's requests show up in a panel as waterfalls — SQL, outgoing HTTP, cache — with N+1 queries pointed at the file and the line. No code changes.

A request arrives, is flagged N+1, and one click shows the line and the fix

Use

npm install -D @reqray/register
node --import @reqray/register app.js
reqray  instrumentation active
  ✔ [email protected]            SQL
  ✔ [email protected]       cache
  ✔ undici (built-in)    outgoing HTTP
reqray: no adapter found — panel is up at http://127.0.0.1:4310/_reqray/

Works for ESM and CommonJS applications. A CommonJS application can also be started with node --require @reqray/register app.js.

What it does

It installs loader hooks before your application loads its drivers, and instruments them as they are imported:

| | Supported | Recorded | |---|---|---| | pg (and Prisma 7, which goes through it) | 8.x | the statement, its duration, the line that issued it — never parameter values | | ioredis | 5.x | the command, the key, hit or miss — never values | | undici and the built-in fetch | any | method, URL with secrets masked, status, duration | | incoming node:http | any | used only when no adapter is present |

A driver outside its supported range is not patched; the startup report says so and names the range.

With an adapter

Without an adapter the panel runs on a port of its own and records what node:http can see. Request bodies, route names and replay need the framework's cooperation — add @reqray/fastify, @reqray/express or @reqray/nestjs, and the panel moves into the application at /_reqray/.

Settings

| Variable | Default | | |---|---|---| | REQRAY_PANEL_PORT | 4310 | Port of the standalone panel | | REQRAY_STANDALONE | on | off — instrument drivers, but start no panel of its own |

Limits

  • The flag has to be there. Hooks installed after a driver has loaded cannot reach it, and the startup report tells you when that happened.
  • Bundled applications (esbuild, webpack, tsup) resolve imports at build time, so loader hooks never fire. Apply an instrumentation by hand instead: instrumentPg().apply(pg) from @reqray/instrumentation-pg.

More

Everything else — the detectors, security defaults, measured overhead and a demo that runs with one command — is in the main README.

License

MIT