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

proton-vpn-cli

v0.3.1

Published

Unofficial Proton VPN CLI for macOS and Windows (WireGuard + interactive TUI)

Readme

proton-vpn-cli

Unofficial Proton VPN command-line client for macOS and Windows.

Authenticates with Proton’s VPN API, creates a WireGuard certificate, and connects through the system WireGuard tools. Includes an interactive TUI.

Not an official Proton product. For the supported apps, use Proton VPN. Proton’s official CLI is Linux-only.

Install

Requires Bun ≥ 1.1 at runtime (including when you install with npm).

Bun

bun add -g proton-vpn-cli

Or from GitHub:

bun install -g github:brandonkramer/proton-vpn-cli

npm

npm install -g proton-vpn-cli

Run

protonvpn          # interactive TUI (TTY only)
protonvpn status --json   # agent / scripting
protonvpn --help

From a clone

git clone https://github.com/brandonkramer/proton-vpn-cli.git
cd proton-vpn-cli
bun install
bun link           # optional: puts `protonvpn` on your PATH

Requirements

  • Bun ≥ 1.1
  • Proton account in Single Password Mode
  • TOTP if you use 2FA (FIDO2/security keys are not supported)
  • WireGuard tools (install tries this automatically via Homebrew / winget; or run protonvpn setup)
    • macOS: Homebrew → wireguard-tools (sudo for connect/disconnect)
    • Windows: WireGuard app via winget (Administrator terminal for connect/disconnect)

Close the Proton VPN desktop app before connecting so tunnels do not conflict.

On macOS, connect/disconnect may ask for your Mac login password (sudo), not your Proton password.

Usage

Interactive TUI

protonvpn
# or
protonvpn tui

↑↓ + enter to choose · q / Esc to quit.

Commands

protonvpn signin [username]
protonvpn signin --pass "pass://Personal/Proton"   # optional: Proton Pass CLI
protonvpn signout
protonvpn update              # upgrade the CLI itself
protonvpn update --check      # only check npm for a newer version
protonvpn countries
protonvpn servers --country US
protonvpn connect --country US
protonvpn connect --city "New York"
protonvpn connect US#23
protonvpn status
protonvpn disconnect

Sign in with Proton Pass (optional)

If you use Proton Pass CLI (pass-cli), you can pull username/password (and TOTP when present) from a login item instead of typing them:

pass-cli login   # once, if needed
protonvpn signin --pass "pass://Personal/Proton"
# or:
export PROTONVPN_PASS="pass://Personal/Proton"
protonvpn signin

Vault/Item works too (the pass:// prefix is optional). A username argument still overrides the Pass username. Interactive prompts remain the default when --pass / PROTONVPN_PASS is unset.

| Flag | Meaning | |------|---------| | --country <code> | Exit country (e.g. NL) | | --city <name> | City name | | --p2p | P2P servers | | --securecore | Secure Core | | --tor | Tor over VPN | | --free-only | Free-tier only |

Country availability depends on your Proton plan.

Scripting / agents

protonvpn status --json
protonvpn connect --json --country US
protonvpn signin --json --pass "pass://Personal/Proton"

Use --json (or PROTONVPN_JSON=1 / PROTONVPN_AGENT=1) for machine-readable stdout. Errors go to stderr. Global -y/--yes skips confirms; --sudo allows an interactive macOS sudo prompt (by default agents use passwordless sudo -n only).

Exit codes: 0 ok · 1 error · 2 usage · 3 not signed in · 4 privilege needed.

Bare protonvpn with no args opens the TUI only in an interactive terminal; otherwise it prints usage and exits 2.

How it works

  1. SRP login to https://vpn-api.proton.me (session cached in your OS config dir)
  2. Pick a server (lowest Proton Score, then Load)
  3. Create an Ed25519 → X25519 WireGuard certificate
  4. Write a local .conf under ~/.config/proton-vpn-cli/ (macOS/Linux) or %APPDATA%\proton-vpn-cli\ (Windows)
  5. Bring the tunnel up with wg-quick or wireguard.exe

Session tokens and WireGuard configs stay on your machine in those config dirs — they are not part of this repository.

Development

bun install
bun run typecheck
bun test
bun run src/index.ts --help

License

GPL-3.0-or-later (required by @protontech/crypto).