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

nospoon

v0.1.0

Published

P2P VPN over HyperDHT - WireGuard-like interface using Hyperswarm

Readme

nospoon

"There is no spoon." — The Matrix (1999)

A peer-to-peer VPN that eliminates the need for a publicly reachable server. Built on HyperDHT for NAT hole-punching and Noise-encrypted tunnels. No public IP, no port forwarding, no central infrastructure — just a key.

Install

sudo npm install -g nospoon

Requires Linux and Node.js 18+. Root needed for TUN device creation.

Use Cases

1. Expose any service through NAT

Like HoleSail but at Layer 3 — instead of forwarding a single port, nospoon creates a full network interface. Every service on the server is reachable by IP, as if you were on the same LAN.

# Generate a client identity
nospoon genkey
# Output: Seed (keep secret): abc123...
#         Public key (share): def456...

Create peers.json on the server:

{
  "peers": {
    "<client-public-key>": "10.0.0.2"
  }
}
# Server (behind NAT, no port forwarding needed)
sudo nospoon server --config peers.json

# Client (anywhere in the world)
sudo nospoon client <server-key> --seed <client-seed>

# Access anything on the server
curl http://10.0.0.1:8080       # web app
ssh [email protected]               # SSH
ping 10.0.0.1                   # ICMP

Using --config is recommended — it authenticates clients and assigns fixed IPs. Open mode (sudo nospoon server without --config) is available for quick testing but has no authentication and only supports a single client.

2. Full tunnel — access the internet from home

Route all your internet traffic through your home connection. When you're abroad, your traffic exits from your home IP — access geo-restricted content, use your home network's DNS, or just browse as if you were home.

# Server (your home machine)
sudo nospoon server --full-tunnel --config peers.json

# Client (your laptop abroad)
sudo nospoon client <key> --seed <seed> --full-tunnel

Kill switch included: if the tunnel drops, traffic fails instead of leaking.

Command Reference

sudo nospoon server [options]

| Flag | Default | Description | |------|---------|-------------| | --ip <cidr> | 10.0.0.1/24 | TUN interface IP | | --ipv6 <cidr> | none | TUN IPv6 address | | --seed <hex> | random | Deterministic server key | | --config <path> | none | Path to peers.json | | --mtu <num> | 1400 | TUN MTU | | --full-tunnel | off | Enable NAT for client internet access | | --out-interface <if> | auto | Outgoing interface for NAT |

sudo nospoon client <public-key> [options]

| Flag | Default | Description | |------|---------|-------------| | --ip <cidr> | 10.0.0.2/24 | TUN interface IP | | --ipv6 <cidr> | none | TUN IPv6 address | | --seed <hex> | none | Client seed (for auth mode) | | --mtu <num> | 1400 | TUN MTU | | --full-tunnel | off | Route all traffic through VPN |

nospoon genkey

Generate a client key pair. No root required.

How It Works

  1. Server announces its public key on the HyperDHT distributed hash table
  2. Client looks up the key, HyperDHT performs UDP hole-punching through both NATs
  3. A Noise-encrypted stream is established (X25519 + ChaCha20-Poly1305 + BLAKE2b)
  4. IP packets flow through TUN devices on both sides, length-framed over the encrypted stream

All traffic is end-to-end encrypted. No data passes through the DHT — it's only used for peer discovery and hole-punching. In authenticated mode, unauthorized peers are rejected during the Noise handshake before a connection is established.

Limitations

  • Symmetric NAT — both peers behind symmetric NAT may fail to connect
  • DNS — no built-in DNS push; configure manually
  • Linux only — macOS and Android planned

License

GPL-3.0 — See LICENSE

Credits