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

@seedprotocol/gateway-hyper

v0.6.1

Published

Hyperswarm HTTP tunnel for Seed Protocol gateway + upload API infrastructure

Downloads

405

Readme

@seedprotocol/gateway-hyper

Expose a local seed-protocol-server + ar.io gateway stack (via Traefik or direct upstream) to SDK users over HyperDHT.

Two client shapes:

  • Path A — Local sidecar: connectTunnelhttp://127.0.0.1:1984 (local / Electron)
  • Path B — App-server proxy: createGatewayProxy → mount on /api/seed-gateway (hosted web browsers)

See docs/GATEWAY_HYPER.md for operator and developer runbooks.

Install

bun add @seedprotocol/gateway-hyper

Requires Node 20+ and Holepunch native addons. Prefer Node over Bun.

CLI

# Operator
seed gateway tunnel serve --upstream http://127.0.0.1:80 --key-file ./.seed/gateway-tunnel/operator.key.json

# Client sidecar (Path A)
seed gateway tunnel connect <z32-key> --port 1984

Library

import {
  serveTunnel,
  connectTunnel,
  createGatewayProxy,
} from '@seedprotocol/gateway-hyper'

const operator = await serveTunnel({ upstream: 'http://127.0.0.1:80' })
console.log(operator.key)

// Path A
const client = await connectTunnel({ key: operator.key, port: 1984 })
console.log(client.baseUrl) // http://127.0.0.1:1984

// Path B — Next.js App Router (Node runtime)
const proxy = createGatewayProxy({
  key: process.env.SEED_GATEWAY_HYPER_KEY ?? operator.key,
  mountPath: '/api/seed-gateway',
})
export const GET = (req: Request) => proxy.handleFetch(req)
export const POST = (req: Request) => proxy.handleFetch(req)

Web SDK config for Path B:

gateway: {
  transport: 'hybrid',
  proxyBaseUrl: '/api/seed-gateway',
}

Keep SEED_GATEWAY_HYPER_KEY on the server only. Authenticate / rate-limit the proxy route in production.

Tests

  • Unit tests always run.
  • DHT integration: GATEWAY_HYPER_TESTS=1 bun run test