Personal Supporter
One-time purchase for personal homelabs. Pay what you want from $9 ($15 suggested).
- Permanent offline key
- Unlimited personal hosts
- Card · Apple Pay · Alipay
Port occupancy map for homelabs
Port-Light merges your host's listen tables, Docker, and Compose files into a single traffic-light grid, so you can tell taken ports from free ones without reaching for ss.
Interactive demo: type a port number in the search box, or click any card to copy its port.
41 in use · 5 configured
live demo · simulated data
How it works
Nothing to install elsewhere, nothing leaves the machine. Port-Light reads what is already true on your host and merges it into one view.
TCP/UDP ports actually bound right now.
/proc/net/tcp · tcp6 · udp → ss fallback
Reads the /proc/net tables directly, with ss as a fallback; process names come from /host/proc when that mount is present.
Container names, status, images, published mappings.
docker.sock (ro) · /proc/<pid>/fd
Reads docker.sock (read-only mount): name, status, image and published ports per container. Host-network containers are matched via /proc socket inodes.
Ports that are declared — even when the stack is stopped.
COMPOSE_SCAN_DIR · depth 4 · ≤400 files
Scans COMPOSE_SCAN_DIR for compose.y*ml / docker-compose.y*ml, up to 4 levels deep. Sibling .env files are read locally, never uploaded.
Features
Type a port number; if it's taken, nearby free ones light up.
Find the largest contiguous free runs in your range and reserve a batch atomically.
Two Compose projects claiming the same host port get flagged before they collide.
Pull occupancy maps from other Port-Light instances over LAN or Tailscale.
SSE pushes a refresh the moment occupancy changes; local history records each transition.
Optional webhooks on new listeners and conflicts; Prometheus aggregates when you want them.
GET /api/ports/suggest returns a free port and can reserve it with an expiring lease.
Ten palette families from Gruvbox to Kanagawa, in light & dark; seven UI languages.
No telemetry, no accounts, no cloud. Your port map never leaves the host.
For coding agents
Coding agents pick ports by guessing until one collides with your stacks. Port-Light exposes a small HTTP API that returns ports which are free right now and can hold them with an expiring lease. An agent skill and an MCP server wrap the same endpoints; AGENT_TOKEN requires an auth header.
$ export PORT_LIGHT_URL=http://127.0.0.1:2100 curl -s "$PORT_LIGHT_URL/api/ports/suggest?count=2&reserve=true&ttl=3600&label=preview" { "ports": [8081, 8082], "reserved": [8081, 8082], "reservations": [ { "port": 8081, "expires_at": "2026-09-03T13:04:11Z" }, { "port": 8082, "expires_at": "2026-09-03T13:04:11Z" } ] }
Result of the call above — 8081 and 8082 are now reserved:
Reserved ports appear as configured (amber) on every map until the lease expires.
Appearance
Click one and the whole page re-skins, mirroring the app's theme system. Your pick persists.
Quick start
services:
port-light:
image: stepaniah/port-light:v0.7.8
container_name: port-light
restart: unless-stopped
ports:
- "${PORT_LIGHT_PORT:-2100}:2100"
volumes:
- /path/to/your/compose-stacks:/compose:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc:/host/proc:ro
- ./data:/data
environment:
COMPOSE_SCAN_DIR: /compose
mkdir -p data docker compose up -d
→ http://localhost:${PORT_LIGHT_PORT:-2100}
The public port follows PORT_LIGHT_PORT; it defaults to 2100.
Images for linux/amd64 and arm64, also on GHCR. Prefer version tags over latest.
FAQ
The Compose file mounts /var/run/docker.sock read-only. If the container logs permission errors, verify the socket path on your host and that the container user can read it — no privileged mode is needed.
Point COMPOSE_SCAN_DIR at the folder that holds your stacks (up to 4 levels deep, at most 400 files). Declared ports count even when a stack is stopped — they show as configured.
No. It serves one read-only page on your LAN — keep it behind Basic Auth or a reverse proxy and off the public internet. The security checklist has the hardening notes.
GET /api/ports/suggest?reserve=true returns ports that are free right now and holds them with an expiring lease. The agent skill and MCP server wrap the same endpoints.
Support Port-Light
Every feature stays open and unlocked with zero telemetry. Buy an optional offline Supporter Key to fund independent maintenance and light the lighthouse beacon in your instance.
Verified locally with Ed25519 — zero outbound requests, ever.
One-time purchase for personal homelabs. Pay what you want from $9 ($15 suggested).
For teams and multi-host fleets, with a tax invoice from Creem for easy expense reimbursement.
Payments and tax invoices are handled by Creem (Merchant of Record). Digital keys are delivered immediately and are generally non-refundable — see Terms & Privacy.
Also on Ko-fi · Support: [email protected]
Port-Light doesn't start or stop containers, tail logs, or replace Portainer. It serves one read-only page on your LAN — keep it behind Basic Auth or a reverse proxy and off the public internet. The security checklist collects the hardening notes.