qmetrics.net

NPort

Free Cloudflare-based localhost tunnel CLI with custom subdomains

NPort screenshot

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

Overview

NPort is a lightweight command-line tool that creates secure HTTP and HTTPS tunnels from localhost to public URLs using Cloudflare's edge network. It targets developers who want to share local servers, test webhooks or demo work without deploying.

Installation is through npm. You pass a local port and optionally a subdomain; NPort creates a Cloudflare tunnel, DNS record and cloudflared connection, then cleans up when you exit. WebSocket and server-sent events are supported.

The default shared backend is free and needs no account, though heavy shared use can hit Cloudflare API rate limits. You can point NPort at your own backend and Cloudflare account for higher capacity.

NPort runs on Windows, macOS and Linux with an English, Vietnamese or Spanish CLI interface.

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
  • Multilingual CLI in English, Vietnamese and Spanish
  • Bring-your-own Cloudflare account in upcoming releases

Use cases

  • Sharing a local dev server with teammates
  • Receiving GitHub or Stripe webhooks on localhost
  • Testing a web app on a phone against your machine
  • Demoing progress without a full deployment

Open-source alternative to

ngrok
“NPort is a powerful, lightweight ngrok alternative that creates secure HTTP/HTTPS tunnels from your localhost to public URLs using Cloudflare's global edge network. No configuration, no accounts, just instant tunnels with custom subdomains!” source

Tags

Compare NPort

Similar software

Kong Gateway

Cloud-native API, LLM, and MCP gateway with plugins

Kong Gateway centralizes proxying, routing, load balancing, and authentication for microservice APIs and AI traffic. It extends behavior through a plugin system and optional AI gateway features.

★ 44.4k⟳ 5 days agoApache-2.0

Envoy proxy

Cloud-native edge and service proxy

Envoy is a high-performance C++ proxy for edge, middle, and service mesh traffic. It abstracts networking with observability, security, and dynamic configuration.

★ 29.3k⟳ yesterdayApache-2.0

websocketd

WebSocket wrapper for stdin and stdout CLI programs

websocketd listens for WebSocket clients and runs a command per connection, piping messages to stdin and stdout lines back to the browser. No WebSocket library is needed in your program.

★ 17.5k⟳ 19 days agoBSD-2-Clause

Apache APISIX

Cloud-native API gateway and AI traffic gateway

Apache APISIX is a dynamic, real-time API gateway built on NGINX and etcd. It manages north-south and east-west traffic and can act as a Kubernetes ingress controller.

★ 17.4k⟳ yesterdayApache-2.0

tproxy

CLI TCP connection proxy and analyzer

tproxy is a command-line tool to listen, relay, and inspect TCP traffic such as gRPC and MySQL connections for development debugging.

★ 3.7k⟳ 14 days agoMIT

Portr

Self-hosted HTTP, TCP and WebSocket tunnels for teams

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.

★ 3.2k⟳ 26 days agoAGPL-3.0
Open Source Alternative to:ngrok