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

@swimmingliu/autovpn

v1.8.0

Published

npm wrapper for the AutoVPN headless CLI

Readme

AutoVPN CLI

Node.js npm CLI for AutoVPN headless and Agent workflows. Node.js >=22.5.0 is required.

Usage

npx -y @swimmingliu/autovpn doctor --project-root . --output json
npm install -g @swimmingliu/autovpn
autovpn run --project-root . --skip-deploy --skip-verify --output jsonl

GitHub Release tarballs remain available for pinned/offline installs:

npm install -g https://github.com/SwimmingLiu/auto-vpn/releases/download/v<version>/swimmingliu-autovpn-<version>.tgz

For Agent-friendly JSONL output, prefer foreground runs:

autovpn doctor --project-root . --output json
autovpn run --project-root . --skip-deploy --skip-verify --output jsonl
autovpn artifacts latest --project-root .

Server Web UI

autovpn serve starts a single-user HTTP service that serves the AutoVPN Web UI from the same renderer used by the desktop app.

autovpn serve --project-root .

Defaults:

  • host: 127.0.0.1
  • port: 8765
  • auth: token-protected

For server deployment, bind explicitly and provide a token:

export AUTOVPN_SERVER_TOKEN="$(openssl rand -base64 24)"
autovpn serve --project-root /opt/autovpn --host 0.0.0.0 --port 8765 \
  --token "$AUTOVPN_SERVER_TOKEN"

The server refuses non-loopback binds unless --token or --no-auth is provided. Prefer SSH forwarding, a private reverse proxy, or your own HTTPS terminator for internet-facing deployments.

Runtime Shape

The CLI owns command parsing, profiles, artifacts, detached jobs, pipeline execution, Cloudflare deployment, verification, and the server Web UI.

Foreground run:

autovpn run --project-root . --output jsonl

Runtime notes:

  • Each run writes artifact_dir/run.db. This SQLite database is the authoritative local record for run state, node identity, stage results, and resume checkpoints. The .txt and .json files in the artifact directory are compatibility exports; do not use them as the source of truth for an in-progress run.
  • Pipeline mode sends each newly discovered unique node from the extract callback to a reachability probe. Only reachable nodes receive the full speed measurement, and only nodes that pass the configured speed threshold proceed to availability checks. Dedupe, probe/speedtest, and availability can be active while extraction is still running, so their displayed totals can increase during the run.
  • The streaming queues use bounded concurrency and backpressure. A slow speed or availability worker therefore limits queued work instead of allowing unbounded memory growth.
  • resume pipeline, resume speedtest, run --resume-latest, and retry-stage continue from the SQLite checkpoints. Existing legacy artifact directories can be imported on resume; subsequent state is recorded in run.db while compatibility exports remain available.
  • Pipeline mode does not apply the legacy global max_download_candidates ranking gate before availability. If that field remains in a profile, it only applies when the speed module is run independently in its legacy ranked-candidate mode.
  • Detached job management runs in Node for run --detach, jobs resume --detach, and jobs retry --detach; detached run/resume/retry workers also use the Node CLI worker.
  • Non-detached retry-stage runs through the Node backend for retryable artifact stages from speedtest through verify; non-detached resume pipeline, resume speedtest, and run --resume-latest continue existing sessions through the Node backend.
  • Add --skip-deploy --skip-verify when you want an offline Node pipeline check.
  • Plain Node foreground deploy/verify runs use Node for Wrangler deploy, primary blocked-project fallback, share-project sync/fallback, custom-domain binding, custom-domain DNS upsert, and verify.
  • Empty offline runs complete without requiring an external language runtime. Speedtest and availability use the per-node Mihomo runtime by default so candidate measurements and provider checks traverse each candidate node. Set AUTOVPN_SPEEDTEST_RUNTIME=direct or AUTOVPN_AVAILABILITY_RUNTIME=direct only for direct-host diagnostic checks.
  • Project .env is loaded before resolving profile and artifact paths. Explicit process environment values still win over .env.
  • autovpn serve is Node-native and exposes the browser UI plus /api/health, /api/state, /api/runs, /api/runs/current/stop, and /api/events.

Environment

  • AUTOVPN_NO_INSTALL
  • AUTOVPN_FORCE_INSTALL
  • AUTOVPN_SERVER_HOST
  • AUTOVPN_SERVER_PORT
  • AUTOVPN_SERVER_TOKEN
  • VPN_AUTOMATION_RUNTIME_ROOT
  • VPN_AUTOMATION_PROFILE_PATH
  • VPN_AUTOMATION_ARTIFACTS_ROOT
  • VPN_AUTOMATION_UPSTREAM_PROXY