Article may be outdated

This article is 67 days old. Some details may have changed since publication.

Hacker News·4 min read·medium

Show HN: Port Zero – how I learned to stop worrying and love PORT=0

O
octopoc
Show HN: Port Zero – how I learned to stop worrying and love PORT=0
✦AI Summary

Port Zero is a developer tool that eliminates port conflicts by assigning stable, domain-based URLs to local development processes. It allows developers to run multiple git worktrees simultaneously without managing port numbers.

Why it matters

It addresses a common pain point in local development environments, potentially increasing developer productivity and reducing configuration errors.

✦Dive DeeperCreate a free account to unlock

Set every port to 0 and start your dev server. Port Zero gives each process or container a stable domain — no port to remember, no EADDRINUSE , ever.

$ PZ_TUNNEL="web.myapp-feat-checkout-redesign.portzero.local" node app.ts $ PZ_TUNNEL="web.myapp-feat-dark-mode.portzero.local" node app.ts web.myapp-feat-checkout-redesign.portzero.local git worktree feat/checkout-redesign Hello from the PortZero Node.js TypeScript process example. PZ_TUNNEL=nodejs-typescript-process.portzero.local:80 localhost_port=52431 web.myapp-feat-dark-mode.portzero.local git worktree feat/dark-mode Hello from the PortZero Node.js TypeScript process example. PZ_TUNNEL=nodejs-typescript-process.portzero.local:80 localhost_port=52431 One machine, many branches Run every branch at once, in git worktrees Each worktree's dev server gets its own self-explanatory URL — no port juggling between branches, no collisions.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologystartups
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in