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

@kaynooo/cli-proc

v0.9.2

Published

proc: one process inspected, who listens on a port, and leftover or heavy dev processes cleaned, read straight from /proc (Linux).

Readme

proc

Three process and port helpers for Linux, reading /proc directly instead of shelling out to ps, ss or lsof: proc pid inspects one process, proc ports tells who listens on what, proc procs finds leftover or heavy dev processes.

bun install -g @kaynooo/cli-proc

Commands

| Command | What it does | | --- | --- | | proc pid <pid> | executable, working directory, command line, parent chain up to init, user, start time and age, memory, open files and limits, the TCP and UDP ports it listens on, cgroup; --env adds the environment with secrets masked, --json everything | | proc ports [port] | the listening sockets (TCP and UDP, IPv4 and IPv6) with port, protocol, bound address, pid, command and working directory; a port Docker publishes shows its compose project and service | | proc ports <port> --kill | stops the owner: SIGTERM, and with --force SIGKILL after --grace (5s); asks on a terminal unless --yes | | proc procs | leftover or heavy dev processes grouped by origin, with count, total RSS and oldest age | | proc procs --kill | a dry run naming what would be stopped; --yes sends SIGTERM, then SIGKILL after --grace |

proc pid

A missing pid exits 1. What the calling user cannot read of another user's process (executable, working directory, open files, limits, environment) is left out and named at the end. The environment is off unless --env is given: a name that looks like a secret (kit's rule, shared with ev and redact) has its whole value masked, and a URL password, a well known token format, a private key or a long opaque token is masked inside any value; the command line is masked the same way.

proc ports

Sockets come from /proc/net/{tcp,tcp6,udp,udp6} and are mapped to their owner through the inode in /proc/<pid>/fd, so only the calling user's processes show an owner; the others show -. A socket without a readable owner, or held by docker-proxy, takes the container publishing its port when docker ps answers (skipped quietly when docker is missing or its daemon unreachable).

A socket of another user shows - as its owner. proc ports <port> exits 1 when nothing listens there. --kill refuses a process of another user, pid 1, this command and its ancestors, and a container's port, for which it prints the docker stop <container> to run instead.

proc procs

A process is listed when it is a dev tool (bun, node, vite, nuxt, next, chromium and chrome, playwright and WebKit browsers and their helpers, language servers, test runners) of the calling user and either:

  • an orphan: reparented to init or to the user's systemd, outside a systemd service of its own; a browser counts only as a helper (--type=) or when a script drives it (--headless, --remote-debugging-*), and the crashpad handler never, as it detaches by design;
  • heavy: 500M resident or more.

The dev processes below a listed one, and those sharing its --user-data-dir, are listed with it, so a chromium whose main process was killed groups with its leftover helpers. Groups are named after the git root (else the nearest package manifest) of the working directory under the home folder, the browser profile, or else the command.

--min-mem <size> (500M, 1.5G, a bare number counting megabytes) sets the heavy bar and the least a left over process must use; --older <duration> (30m, 2h, 1d) keeps the processes at least that old. --kill sends SIGTERM, then SIGKILL after --grace to what is still there, and never touches pid 1, shells, terminals, this command and its ancestors, or other users' processes, and counts the ones it left out.

Linux only. Start times assume the usual 100 clock ticks per second.