Auto-serve dev previews for default branches and open GitHub PRs. Zero dependencies, single Node.js file.
- Registers local repos and watches them for changes
- Spins up dev servers for the default branch and every open PR
- Polls GitHub for new/updated/closed PRs and updates automatically
- Provides a polished dark dashboard to manage everything
node shipyard.js
# or with a custom port
node shipyard.js --port 9000Then open http://localhost:8090 and click Add Repo.
- Config stored at
~/.shipyard/config.json - State tracked at
~/.shipyard/state.json - Workspaces cloned to
~/.shipyard/workspaces/ - Logs written to
~/.shipyard/logs/
basePort + 0→ default branchbasePort + PR_number→ PR preview
Use {{port}} as the port placeholder in your dev command:
npx vite --port {{port}} --host
- Node.js 18+
gitCLIghCLI (for PR detection)
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Dashboard |
| GET | /api/status |
Full state JSON |
| POST | /api/repos |
Add repo |
| PUT | /api/repos/:name |
Update repo |
| DELETE | /api/repos/:name |
Delete repo |
| POST | /api/repos/:name/restart |
Restart servers |
| POST | /api/poll |
Trigger immediate poll |
MIT