qmetrics.net
NPortFree Cloudflare-based localhost tunnel CLI with custom subdomains PgrokSelf-hosted multi-tenant HTTP and TCP tunnel platform

NPort vs Pgrok

How NPort and Pgrok compare on popularity, activity, license and platforms: two open-source Networking & Connectivity projects, both alternatives to ngrok.

At a glance

Side by side

NPortPgrok
GitHub stars★ 776★ 3,652
Forks136134
Last commit3 months ago5 days ago
Latest versionv2.1.6v1.8.0
Repository startedDecember 2024March 2023
LicenseMIT · permissiveMIT · permissive
Self-hostedDesktop/CLI appYes
PlatformsCLI, Linux, macOS, WindowsLinux, macOS, Windows, CLI, Docker
Main languageTypeScriptGo
Alternative tongrokngrok

Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.

NPort

NPort exposes local HTTP or HTTPS ports through Cloudflare with one npm command, automatic TLS and optional custom subdomains.

Key features

  • One-command localhost exposure via npm
  • Custom subdomains on the shared nport.link domain
  • Automatic HTTPS through Cloudflare
  • WebSocket and SSE support
  • Optional self-hosted backend configuration
  • Automatic tunnel and DNS cleanup on exit

Pgrok

pgrok exposes local services through SSH reverse tunnels with stable subdomains and OIDC single sign-on on infrastructure you operate.

Key features

  • Self-hosted pgrokd control plane with custom domain
  • OIDC SSO for tunnel credentials and subdomains
  • HTTP path-based routing to local services
  • Raw TCP tunnels via SSH reverse forwarding
  • PostgreSQL-backed multi-tenant accounts
  • CLI config in standard OS config directories

More comparisons

Report a mistake on this page