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

pipefarm

v0.0.3

Published

Invite-only CLI tunnels for Pipe Farm.

Readme

Pipe Farm

Pipe Farm is an invite-only CLI tunnel service. Users authenticate with the web app, create pipes from the CLI, and monitor active/history/traffic from the dashboard.

Beta User Flow

npm install -g pipefarm
pipefarm login
pipefarm 3000

Hosted pipes are created only from the CLI. The CLI accepts local ports, not arbitrary remote URLs. The web dashboard shows active pipes, past pipes, and usage.

Runtime Environment

Production requires:

  • DATABASE_URL: Postgres connection string.
  • BETTER_AUTH_SECRET: at least 32 characters.
  • BETTER_AUTH_URL: public app URL, such as https://pipe.farm.
  • PIPEFARM_ADMIN_EMAILS: comma-separated global admin emails.
  • RESEND_API_KEY: Resend API key for verification, invite, access, and password reset emails.
  • EMAIL_FROM: transactional sender, such as Pipe Farm <[email protected]>.
  • EMAIL_REPLY_TO: optional reply-to address.

Optional production tuning:

  • PIPEFARM_ADMIN_HOST: default admin.${BASE_DOMAIN}.
  • GRACEFUL_SHUTDOWN_MS: default 25000.
  • AUTH_RATE_LIMIT_PER_MINUTE: default 30.
  • CREATE_TUNNEL_LIMIT_PER_MINUTE: default 20.
  • AGENT_CONNECT_LIMIT_PER_MINUTE: default 20.
  • TUNNEL_REQUEST_LIMIT_PER_MINUTE: default 600.
  • USER_TUNNEL_REQUEST_LIMIT_PER_MINUTE: default 1200.
  • USER_DAILY_REQUEST_LIMIT: default 100000.
  • USER_DAILY_BYTES_LIMIT: default 1073741824.
  • MAX_ACTIVE_TUNNELS_PER_USER: default 25.
  • MAX_CONCURRENT_TUNNEL_REQUESTS: default 100.
  • MAX_CONCURRENT_TUNNEL_REQUESTS_PER_TUNNEL: default 20.
  • MAX_TUNNEL_RESPONSE_BYTES: default 10485760.
  • MAX_TUNNEL_HEADER_BYTES: default 32768.
  • MAX_TUNNEL_HEADER_COUNT: default 80.
  • TUNNEL_AUTH_FAIL_LIMIT_PER_MINUTE: default 10.
  • CLI_EXCHANGE_LIMIT_PER_MINUTE: default 20.
  • PIPEFARM_ALLOW_REMOTE_TARGETS: set to 1 only if remote proxy targets are intentionally allowed.

Local Development

npm install
npm run build
npm test
npm run dev

Use local mode when you do not want the CLI to talk to production:

PIPEFARM_MODE=local npm run dev

Run the bundled test app:

npm run test-app

Invite-Only Beta Access

  1. A visitor requests access on https://pipe.farm.
  2. Pipe Farm sends a Resend verification email.
  3. The user verifies their email.
  4. The global admin reviews verified requests at https://admin.pipe.farm.
  5. Approval sends an invite email.
  6. The user can sign in and run pipefarm login.

Health Checks

  • GET /healthz: process liveness.
  • GET /readyz: readiness; fails while draining or when Postgres is unavailable.

Production Beta Checklist

  • Supabase/Postgres configured and reachable from Coolify.
  • BETTER_AUTH_SECRET, BETTER_AUTH_URL, PIPEFARM_ADMIN_EMAILS, and Resend variables set in Coolify.
  • Resend domain has SPF, DKIM, bounce/MX, and one _dmarc TXT record.
  • pipe.farm, admin.pipe.farm, and wildcard pipe hosts route through the proxy.
  • Coolify health check uses /readyz.
  • npm run build, npm test, and npm audit --omit=dev pass before release.
  • The real CLI package is published to npm after smoke testing the production login and tunnel flow.

Publishing The CLI

The npm package name is pipefarm.

npm run build
npm test
npm audit --omit=dev
npm publish --access public

Local Edge Utilities

The local edge scripts are for internal local development only:

npm run local-edge:install
npm run local-edge:status
npm run local-edge:uninstall