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
- Pgrok has more GitHub stars (3.7k vs 776, about 5× as many).
- Pgrok was updated more recently (last commit 5 days ago, NPort 3 months ago).
- Both use the MIT license.
- Pgrok can be self-hosted; NPort is not listed as self-hostable.
- Pgrok is the older project (repository started 2023; NPort in 2024).
Side by side
| NPort | Pgrok | |
|---|---|---|
| GitHub stars | ★ 776 | ★ 3,652 |
| Forks | 136 | 134 |
| Last commit | 3 months ago | 5 days ago |
| Latest version | v2.1.6 | v1.8.0 |
| Repository started | December 2024 | March 2023 |
| License | MIT · permissive | MIT · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | CLI, Linux, macOS, Windows | Linux, macOS, Windows, CLI, Docker |
| Main language | TypeScript | Go |
| Alternative to | ngrok | ngrok |
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