NPortFree Cloudflare-based localhost tunnel CLI with custom subdomains
NPort vs Portr
How NPort and Portr compare on popularity, activity, license and platforms: two open-source Networking & Connectivity projects, both alternatives to ngrok.
At a glance
- Portr has more GitHub stars (3.2k vs 776, about 4× as many).
- Portr was updated more recently (last commit 26 days ago, NPort 3 months ago).
- NPort uses MIT (permissive); Portr uses AGPL-3.0 (copyleft).
- Portr can be self-hosted; NPort is not listed as self-hostable.
- Portr is the older project (repository started 2023; NPort in 2024).
Side by side
| NPort | Portr | |
|---|---|---|
| GitHub stars | ★ 776 | ★ 3,195 |
| Forks | 136 | 115 |
| Last commit | 3 months ago | 26 days ago |
| Latest version | v2.1.6 | v2.1.0 |
| Repository started | December 2024 | November 2023 |
| License | MIT · permissive | AGPL-3.0 · copyleft |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | CLI, 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
Portr
Portr exposes local HTTP, TCP, and WebSocket services on public URLs through a tunnel server you control, with a local inspector, request replay, SQLite logs, and team access.
Key features
- HTTP, TCP and WebSocket tunnels
- Local request inspector
- Request replay from logs
- CLI access to stored requests
- Docker Compose tunnel labels
- Reserved subdomains