Skip to content

The Neighbours

NPM is one answer to "how do I put my services on names". These are the others you will meet, characterised honestly — including where they beat NPM. All four have guides in this series if one of them turns out to be your answer instead.

Caddy is the closest relative in spirit: a web server that treats HTTPS as the default rather than a feature. Its configuration is a small text file (the Caddyfile), and for one or two services it is less machinery than NPM — no database, no interface, no second program. Where NPM wins is scale of administration: many hosts, many users, changes made by clicking rather than editing, and an audit log. Where Caddy wins is everything being a file you can version, copy and diff. If your reaction to chapter 6 was "the file is the interesting part", Caddy may be your tool.

Traefik configures itself from the containers it proxies: label a container, and Traefik routes to it. In a Docker-heavy setup that removes the per-host form entirely — the service is its own configuration. The cost is a mental model (routers, services, entrypoints, labels) that is genuinely more to learn than NPM's form, and discovery that can surprise you when a label is wrong. NPM's audience is the person who wants to say what routes where, once, in a form; Traefik's is the person whose containers change too often for forms.

nginx on its own is the substrate under everything here: the files chapter 6 read are its native tongue. Running it directly gives you every feature and every footgun, total control, and nobody to blame. Realistically: people choose NPM because they tried hand-writing server blocks for the ninth service, or because someone else at home needs to add a host without learning the grammar. If you outgrow NPM, its generated files are a surprisingly good nginx education to take with you — the escape is a graduation, not a migration crisis.

Cloudflare Tunnel solves a different problem: publishing a service without opening any ports, by making an outbound connection to Cloudflare's network and letting visitors arrive through it. It wins when you cannot or should not forward ports — carrier-grade NAT, a hostile ISP, a deliberate no-open-doors policy — and it brings Cloudflare's own access controls. It costs you a dependency and a third party in the path of every request, and your names live in Cloudflare's world. NPM keeps the whole path on your hardware; the Tunnel trades some of that control for reachability.

The honest summary: forms and a database (NPM), a small file and automatic HTTPS (Caddy), labels and discovery (Traefik), the raw tool (nginx), or no open ports at a third party's price (Cloudflare Tunnel). None of them is the correct one; all of them are the correct one for somebody in this list.