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

vsmprotocol

v0.1.3

Published

VSM Stealth Protocol - Invisible P2P encrypted transport

Readme

vsmprotocol

GitHub: cezarpena/vsm-protocol

npm version License: MIT

Make a port invisible to every scanner on the internet — then talk through it anyway.

VSM does not open sockets. There is no listen(), no accept(), no entry in netstat or lsof. The port does not exist as far as the operating system is concerned. But authorized peers can still connect, because the server is sniffing raw packets with libpcap and looking for a specific cryptographic signature hidden inside the TCP header.

The Trick: ISN Steganography

Every TCP connection starts with a SYN packet that carries a 32-bit Initial Sequence Number. Normally this is random noise. VSM replaces it with an HMAC-SHA256 signature derived from the peer's private key and the current 30-second time window.

The server extracts the ISN from every incoming SYN, computes what the correct value should be, and compares:

  • Mismatch → packet is silently dropped. No response. Port appears dead.
  • Match → server injects a raw SYN-ACK, completing a handshake entirely outside the kernel.

After the stealth handshake, a Noise XX key exchange provides mutual authentication and ChaCha20-Poly1305 encryption.


Install

npm install vsmprotocol

Requires sudo — raw packet injection needs root.


Firewall Setup (Required)

The kernel will send RST packets for traffic on ports it doesn't know about. You must silence them:

macOS:

echo "block drop out proto tcp from any to any port 9999" | sudo pfctl -a "com.apple/vsm" -f - && sudo pfctl -e

Linux:

sudo iptables -A OUTPUT -p tcp --tcp-flags RST RST --sport 9999 -j DROP

Usage (ESM)

Server

import { startServer, generateIdentity } from 'vsmprotocol';

const identity = generateIdentity();

startServer(9999, identity,
  (sessionId, peerId) => {
    console.log(`Stealth connection from ${peerId}`);
  },
  (sessionId, peerId, message) => {
    console.log(`${peerId}: ${message}`);
  }
);

Client

import { dial, sendMessage } from 'vsmprotocol';

const identity = generateIdentity();
const sessionId = dial('lo0', '127.0.0.1', 9999, identity);

if (sessionId !== -1) {
  sendMessage(sessionId, "Message through an invisible port.");
}

What's Inside

  • Core: Go shared library using libpcap for raw packet injection/sniffing
  • FFI: koffi for thread-safe native calls from Node.js
  • Encryption: Noise XX handshake → ChaCha20-Poly1305
  • Bundled binaries: macOS (ARM + Intel), Linux (AMD64), Windows (AMD64)

License

MIT · © 2026 Cezar Pena