mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Implements a lightweight process manager for managing background processes
within a workspace. Each workspace (cwd) gets its own daemon that manages
processes via Unix socket IPC.
Commands:
- bun start [script] - Start a process in the background
- bun stop [name] - Stop a running process
- bun list - List all running processes in this workspace
- bun logs [name] [-f] - View process logs (with optional follow mode)
Implementation details:
- Uses uSockets for efficient Unix socket IPC between client and daemon
- Daemon auto-spawns on first command and runs in the background
- Processes are workspace-isolated based on cwd hash
- Logs are captured to /tmp/bun-logs/{workspace-hash}/
- Simple process supervision with pid tracking
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>