brew tap hundotsh/tap
brew install huna command-line tool for seamless project context switching. manages your dev services, ports, and logs. switches your entire environment in one command.
services
next-dev
say you're working on two projects. letraz, an ai resume builder, runs a next.js frontend on 3000, a thumbnail service on 4000, a backend on 8000, and postgres on 5432. novara, a remote healthcare platform, needs a frontend on 3000, backend on 8000, a node worker, and docker compose running a database, redis, and rabbitmq. now picture yourself ctrl+c-ing through six terminal tabs, killing orphan processes on :3000, restarting docker, and doing this every single time you switch. you lose context, hun preserves it.
run hun init in each project and it detects your services automatically. then hun switch to swap between them, or hun run to run them side by side with automatic port offsets.
a daemon runs in the background. manages process groups, captures all output, detects ports. close your laptop, come back, everything's still there.
not a tmux replacement. tmux does session persistence and terminal multiplexing. hun thinks in projects — which services to start, which ports to free, which logs to capture. use both.
docs · github · built by sourabh rathour