Back to browse
GitHub Repository
5 starsTypeScript

Portname – named localhost URLs for every dev server

by hrncode·Feb 21, 2026·4 points·4 comments

AI Analysis

●●●BangerSolve My ProblemShip It

Solves port-clash friction with auto-detecting framework config and named subdomains for HMR.

Strengths
  • Genuine DX improvement: auto-detects Vite, Next.js, SvelteKit, etc., and patches their config to accept the named hostname—zero manual setup or config files.
  • Elegant single-port architecture: routes all named subdomains through a single proxy daemon, eliminating port juggling and cookie bleeding across projects.
  • WebSocket proxying works transparently for HMR—live reload just works without special configuration.
Weaknesses
  • Limited to localhost-only use; doesn't help teams or remote development scenarios where portname would be most valuable.
  • No mention of Windows support parity or potential DNS resolution issues with `.localhost` subdomains on all platforms.
Target Audience

Full-stack developers running multiple local projects simultaneously, especially those using Vite/Next.js/Nuxt.

Similar To

Ngrok (for public tunneling, different use case) · local.dev (lightweight local DNS) · dnsmasq (local DNS, higher friction)

Post Description

Tired of localhost:3000 clashing with other projects. Built portname — a local proxy that gives every dev server a named URL instead of a port.

portname run dev → myapp.localhost:1999

Auto-detects Vite/Next/Nuxt, patches config automatically, proxies WebSocket so HMR works. Single binary, no dependencies.

https://github.com/hirendhola/portname

Similar Projects

Developer Tools●●Solid

Free developer utility API – QR, fake data, URL shortener, 40 tools

Bundles a predictable but genuinely handy set of small tools — URL shortener with analytics, QR (PNG/SVG/data URL), fake-data generator and JWT/regex helpers — behind a no-auth REST API and a zero-dependency npm package. The on-chain 1 USDC unlimited-key option is a smart monetization experiment, but this space is crowded: reliability, clear rate limits and docs will determine whether it becomes a daily go-to or just another utilities site.

Ship ItSlickSolve My Problem
devtoolbox
133mo ago