A lightweight Go CLI tool to list all running servers across your repos and worktrees.
Installation
Option 1: Build from source
# Clone the repository
git clone https://github.com/bshakr/lsrv.git
cd lsrv
# Build the binary
go build -o lsrv
# Move to your PATH (optional)
sudo mv lsrv /usr/local/bin/
Option 2: Install with go install
go install github.com/bshakr/lsrv@latest
Usage
Run from anywhere:
lsrv
Show help:
lsrv --help
Output
lsrv displays a beautiful color-coded table showing:
REPO: Repository name (from git remote or directory name)
BRANCH: Current git branch
PROCESS: The process running the server
URL: HTTP URL to access the server
How It Works
Uses lsof to find all processes listening on TCP ports
Filters by common development server port ranges (ports >= 3000)
Checks if the process is running in a git repository