kport logo kport v0.2.2
port-killer mascot

The intelligent port hunter & process slayer.

Never run kill -9 $(lsof -t -i:3000) again. Auto-detect Next.js, Vite & Postgres projects, probe HTTP latency, and kill ports gracefully in <2ms.

kport ยท interactive terminal v0.2.2
โšก KPORT v0.2.2 [Active Ports: 4]
Search: / next
PORT
PROTO
PID
PROCESS
FRAMEWORK
โฏ :3000
TCP
14205
bun
[Next.js v15]
:5173
TCP
18902
node
[Vite / React]
:5432
TCP
3012
postgres
[PostgreSQL 16]
[โ†‘/โ†“] Navigate [/] Search [p] Live Probe [Space] Select [Enter] Kill (SIGTERM) [K] Force (SIGKILL)

Install anywhere in seconds.

Available across all major package registries with zero native dependencies required.

$ bunx @neuralshyam/kport 3000
Engineered for Developers

Every tool you need to master your ports.

Designed for frontend engineers, backend systems developers, and DevOps teams who value speed, safety, and pristine developer ergonomics.

โšก

Sub-Millisecond Engine

Parses kernel socket tables directly (/proc/net on Linux, lsof/libproc on macOS, iphlpapi on Win32).

Zero subshell overhead โ†’
๐Ÿง 

Framework & CWD Detection

Never wonder which project is hogging port 3000. Inspects package.json and CWD to tag Next.js, Vite, NestJS, Postgres, and Redis.

Deep monorepo inspection โ†’
๐Ÿฉบ

Live HTTP/TCP Prober

Run kport probe 3000 or tap p in TUI to verify HTTP status, response latency, server headers, and page titles.

Instant health check โ†’
๐ŸŽฏ

Ranges & Wildcards

Kill microservice ranges with 3000..3010, wildcards with 80*, or common presets like :dev and :db.

Batch operations in 1 keystroke โ†’
๐ŸงŸ

Zombie Process Sweeper

Detect and terminate orphaned background processes whose parent terminals or IDEs crashed (PPID == 1) with kport --zombies.

Reclaim leaked memory โ†’
๐Ÿ›ก๏ธ

Graceful SIGTERM Escalation

Attempts clean SIGTERM with timeout before escalating to SIGKILL. Protects critical OS daemons (sshd, systemd).

Zero corrupted state โ†’

Engineered for pure speed.

Benchmarked against legacy shell scripts and utility pipelines on 100 active sockets.

port-killer / kport (Full scan + Framework + CWD) 13.6 ms (2.7x faster than lsof)
ss -tulpn (Socket list only, C / iproute2) 15.7 ms
lsof -iTCP -sTCP:LISTEN 36.6 ms
Single Port Lookup: ~2.8ms Binary Footprint: <2.1MB Startup Time: <500ยตs
Team Workflow Automation

One config file to rule your workspace.

Drop a kport.toml into your monorepo root. Everyone on the team can reset all dev ports before starting work with a single command.

kport reset # Instantly frees frontend, backend, postgres & redis
kport status # Displays UP/DOWN status for all configured services
# kport.toml
[services]
frontend = 3000
backend = 8000
database = 5432
redis = 6379
storybook = 6006