{"_id":"@adamhancock/lasso","_rev":"6-b33bfdb015a68cc6ee5c97276d0fec2e","name":"@adamhancock/lasso","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@adamhancock/lasso","version":"1.0.0","keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","_id":"@adamhancock/lasso@1.0.0","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"homepage":"https://github.com/ahancock1/cli#readme","bugs":{"url":"https://github.com/ahancock1/cli/issues"},"bin":{"lasso":"dist/index.js"},"dist":{"shasum":"8bb5bfd4141d56648c07fa23150f1fdb806500b1","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.0.tgz","fileCount":6,"integrity":"sha512-q0jmKB7hjS0vlg7japNo5uh8eZo/5RqifsVl84NwkVOec2YkunG3/vT7G+3M3kaFgTGtgiOoKZfg+frDLx6Hpg==","signatures":[{"sig":"MEYCIQCgIKHbLcrMTUHZoQdY4kd12Exg/0k6mNUT9OZ3i1DlqQIhAIbfCm0FM85kGYHO8n0pSrgwHhKyMB6kEd47BzxHR/5D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50516},"main":"dist/index.js","_from":"file:adamhancock-lasso-1.0.0.tgz","types":"./dist/index.d.ts","scripts":{"dev":"tsx src/index.ts","build":"tsc"},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"_resolved":"/tmp/56c489bc9b6ce83fee455e784c69a2d4/adamhancock-lasso-1.0.0.tgz","_integrity":"sha512-q0jmKB7hjS0vlg7japNo5uh8eZo/5RqifsVl84NwkVOec2YkunG3/vT7G+3M3kaFgTGtgiOoKZfg+frDLx6Hpg==","repository":{"url":"git+https://github.com/ahancock1/cli.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI tool to read Caddy API and interactively open configured hosts","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ora":"^8.0.1","open":"^10.1.0","axios":"^1.7.2","chalk":"^5.3.0","inquirer":"^9.2.15","commander":"^12.0.0","inquirer-autocomplete-prompt":"^3.0.1","@types/inquirer-autocomplete-prompt":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.1","typescript":"^5.3.3","@types/node":"^20.11.24","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/lasso_1.0.0_1755784300079_0.7392147588372289","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@adamhancock/lasso","version":"1.0.1","keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","_id":"@adamhancock/lasso@1.0.1","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"homepage":"https://github.com/adamhancock/cli#readme","bugs":{"url":"https://github.com/adamhancock/cli/issues"},"bin":{"lasso":"dist/index.js"},"dist":{"shasum":"bb41ad8688c17cec6fcd46587976a11a2a8230ac","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.1.tgz","fileCount":6,"integrity":"sha512-gUWy+HGcuQ8kPxiY5lREyRJnoYebdN4q1pxNTwuihCF4xKtd4LP/in/jmUtRHkit9AwwQ398zuxnR3ODMz3+ZQ==","signatures":[{"sig":"MEUCIQDHfXvMaXZCSI0QNJfKkg3dD11R5jzdZcbMA5GFFOB/dAIgdSfoU2d9eAyQn5NelX4Ra4Q1kg8U0nwcZ/Kr0txwKC8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50518},"main":"dist/index.js","_from":"file:adamhancock-lasso-1.0.1.tgz","types":"./dist/index.d.ts","scripts":{"dev":"tsx src/index.ts","build":"tsc"},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"_resolved":"/tmp/7e3b9c67580320ae300f6ba8114a61a4/adamhancock-lasso-1.0.1.tgz","_integrity":"sha512-gUWy+HGcuQ8kPxiY5lREyRJnoYebdN4q1pxNTwuihCF4xKtd4LP/in/jmUtRHkit9AwwQ398zuxnR3ODMz3+ZQ==","repository":{"url":"git+https://github.com/adamhancock/cli.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI tool to read Caddy API and interactively open configured hosts","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ora":"^8.0.1","open":"^10.1.0","axios":"^1.7.2","chalk":"^5.3.0","inquirer":"^9.2.15","commander":"^12.0.0","inquirer-autocomplete-prompt":"^3.0.1","@types/inquirer-autocomplete-prompt":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.1","typescript":"^5.3.3","@types/node":"^20.11.24","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/lasso_1.0.1_1755784411520_0.6246613600659774","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@adamhancock/lasso","version":"1.0.2","keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","_id":"@adamhancock/lasso@1.0.2","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"homepage":"https://github.com/adamhancock/cli#readme","bugs":{"url":"https://github.com/adamhancock/cli/issues"},"bin":{"lasso":"dist/index.js"},"dist":{"shasum":"367dba818c2a4cd0d843948f2a953fb9e779ade3","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.2.tgz","fileCount":6,"integrity":"sha512-Fo3WfbUDp2XPRqnm3yiIiH5nKWlqb6vP3ItcGqRvig+m3ZDbvbWOgTd5B7X/oFq1vdhiJRcab+RDDw03dN+QSw==","signatures":[{"sig":"MEUCIHxS+Q13acCNuvAwDQhP+7L7nCws8qiRhmVPnJc9Q76sAiEAmYFw8+RkdBvDzdxfx0uq8QhUDGsL1lunhhQxQPj+i0A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98039},"main":"dist/index.js","_from":"file:adamhancock-lasso-1.0.2.tgz","types":"./dist/index.d.ts","scripts":{"dev":"tsx src/index.ts","build":"tsc"},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"_resolved":"/tmp/329f6560f9cfd61867837de02090033e/adamhancock-lasso-1.0.2.tgz","_integrity":"sha512-Fo3WfbUDp2XPRqnm3yiIiH5nKWlqb6vP3ItcGqRvig+m3ZDbvbWOgTd5B7X/oFq1vdhiJRcab+RDDw03dN+QSw==","repository":{"url":"git+https://github.com/adamhancock/cli.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI tool to read Caddy API and interactively open configured hosts","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ora":"^8.0.1","open":"^10.1.0","axios":"^1.7.2","chalk":"^5.3.0","inquirer":"^9.2.15","commander":"^12.0.0","inquirer-autocomplete-prompt":"^3.0.1","@types/inquirer-autocomplete-prompt":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.1","typescript":"^5.3.3","@types/node":"^20.11.24","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/lasso_1.0.2_1755789683889_0.6589201750148335","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@adamhancock/lasso","version":"1.0.3","keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","_id":"@adamhancock/lasso@1.0.3","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"homepage":"https://github.com/adamhancock/cli#readme","bugs":{"url":"https://github.com/adamhancock/cli/issues"},"bin":{"lasso":"dist/index.js"},"dist":{"shasum":"db8c47df0fdb60f82fdb1dfd20b3229015034a23","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.3.tgz","fileCount":6,"integrity":"sha512-v8/w9R2jY2q0j54N5OR+Y0TW/aAyNyi3N+v0q9yAkMUNP2bXlKzYQpxs7K2l0iI6ODLOOufRc+dYv29BprTPjw==","signatures":[{"sig":"MEYCIQCVHo8kKuuKAfBzrh6Efro4vwYik7sDjALf6VlUEOMmHAIhAJz49g/XgdYZLBqu1N9HJ/epZ3GgOnTwkIn7dZYMT2d0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97949},"main":"dist/index.js","_from":"file:adamhancock-lasso-1.0.3.tgz","types":"./dist/index.d.ts","scripts":{"dev":"tsx src/index.ts","build":"tsc"},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"_resolved":"/tmp/fe5a11b116e1c93b5ebc1213193e74cb/adamhancock-lasso-1.0.3.tgz","_integrity":"sha512-v8/w9R2jY2q0j54N5OR+Y0TW/aAyNyi3N+v0q9yAkMUNP2bXlKzYQpxs7K2l0iI6ODLOOufRc+dYv29BprTPjw==","repository":{"url":"git+https://github.com/adamhancock/cli.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI tool to read Caddy API and interactively open configured hosts","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ora":"^8.0.1","open":"^10.1.0","axios":"^1.7.2","chalk":"^5.3.0","inquirer":"^9.2.15","commander":"^12.0.0","inquirer-autocomplete-prompt":"^3.0.1","@types/inquirer-autocomplete-prompt":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.1","typescript":"^5.3.3","@types/node":"^20.11.24","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/lasso_1.0.3_1755863654816_0.27264119736951886","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@adamhancock/lasso","version":"1.0.4","keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","_id":"@adamhancock/lasso@1.0.4","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"homepage":"https://github.com/adamhancock/cli#readme","bugs":{"url":"https://github.com/adamhancock/cli/issues"},"bin":{"lasso":"dist/index.js"},"dist":{"shasum":"02f9396074b0ce9af53e60c557e637855d2acf12","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.4.tgz","fileCount":6,"integrity":"sha512-qIhHzU9UhKiDsQn5lUfZ0v+I+uwE7IpMSj5xypZTESmGJPZZqJ1lQUd0bbvfqX4W8r8DwrYAT4wkagRbcLyp0A==","signatures":[{"sig":"MEUCIQD3vnpO8YLDcVq04acK5DOFFdez44gPzIQuhSBxKvZtSwIgH8gFIafTKJ4CfTq+JE8nZMRsBzc0N4iNcCqLE+fyw40=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":112692},"main":"dist/index.js","_from":"file:adamhancock-lasso-1.0.4.tgz","types":"./dist/index.d.ts","scripts":{"dev":"tsx src/index.ts","build":"tsc"},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"_resolved":"/tmp/6da9f060e1876060a24ae9da027fa277/adamhancock-lasso-1.0.4.tgz","_integrity":"sha512-qIhHzU9UhKiDsQn5lUfZ0v+I+uwE7IpMSj5xypZTESmGJPZZqJ1lQUd0bbvfqX4W8r8DwrYAT4wkagRbcLyp0A==","repository":{"url":"git+https://github.com/adamhancock/cli.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI tool to read Caddy API and interactively open configured hosts","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ora":"^8.0.1","open":"^10.1.0","axios":"^1.7.2","chalk":"^5.3.0","inquirer":"^9.2.15","commander":"^12.0.0","inquirer-autocomplete-prompt":"^3.0.1","@types/inquirer-autocomplete-prompt":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.1","typescript":"^5.3.3","@types/node":"^20.11.24","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/lasso_1.0.4_1755864565487_0.2882229814308561","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@adamhancock/lasso","version":"1.0.5","description":"CLI tool to read Caddy API and interactively open configured hosts","main":"dist/index.js","bin":{"lasso":"dist/index.js"},"keywords":["caddy","api","hosts","cli","interactive"],"author":{"name":"Adam Hancock"},"license":"MIT","dependencies":{"@types/inquirer-autocomplete-prompt":"^3.0.3","axios":"^1.7.2","chalk":"^5.3.0","commander":"^12.0.0","inquirer":"^9.2.15","inquirer-autocomplete-prompt":"^3.0.1","open":"^10.1.0","ora":"^8.0.1"},"devDependencies":{"@types/inquirer":"^9.0.7","@types/node":"^20.11.24","tsx":"^4.7.1","typescript":"^5.3.3"},"repository":{"type":"git","url":"git+https://github.com/adamhancock/cli.git"},"scripts":{"build":"tsc","dev":"tsx src/index.ts"},"_id":"@adamhancock/lasso@1.0.5","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/adamhancock/cli/issues"},"homepage":"https://github.com/adamhancock/cli#readme","_integrity":"sha512-0H4bzViBhnTAkWycwbRnRNJiyx2r5Ojh/aWbt4fddczUUZbtpDovPzeIdhhCC8eVqBa9BeR62D64nMFZW4MMfA==","_resolved":"/tmp/38b7c58d2a4740cc52508d7315f9a261/adamhancock-lasso-1.0.5.tgz","_from":"file:adamhancock-lasso-1.0.5.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-0H4bzViBhnTAkWycwbRnRNJiyx2r5Ojh/aWbt4fddczUUZbtpDovPzeIdhhCC8eVqBa9BeR62D64nMFZW4MMfA==","shasum":"e76c50c7338e7129efd00661cd691b81c6d01679","tarball":"https://registry.npmjs.org/@adamhancock/lasso/-/lasso-1.0.5.tgz","fileCount":6,"unpackedSize":124986,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGdiP6EvEoBI1GVPQnPlJKh9A81CD6oxnVzAoAdELK5gAiEA/IiS7avDPTQCDsAuQLFQHe87tlcNoyP89fJfGAveMQ0="}]},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"directories":{},"maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lasso_1.0.5_1758636841855_0.1823555686102729"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-21T13:51:39.988Z","modified":"2025-09-23T14:14:02.247Z","1.0.0":"2025-08-21T13:51:40.257Z","1.0.1":"2025-08-21T13:53:31.811Z","1.0.2":"2025-08-21T15:21:24.101Z","1.0.3":"2025-08-22T11:54:15.018Z","1.0.4":"2025-08-22T12:09:25.673Z","1.0.5":"2025-09-23T14:14:02.047Z"},"bugs":{"url":"https://github.com/adamhancock/cli/issues"},"author":{"name":"Adam Hancock"},"license":"MIT","homepage":"https://github.com/adamhancock/cli#readme","keywords":["caddy","api","hosts","cli","interactive"],"repository":{"type":"git","url":"git+https://github.com/adamhancock/cli.git"},"description":"CLI tool to read Caddy API and interactively open configured hosts","maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"readme":"# Lasso\n\nA CLI tool to read the Caddy API and interactively open configured hosts in your browser. It also checks backend health and can clean up offline hosts.\n\n## Installation\n\n```bash\nnpm install -g @adamhancock/lasso\n```\n\n## Usage\n\n### Interactive Mode (Default)\n```bash\nlasso\n```\n\nThis will fetch all hosts from your Caddy server, check their backend health, and present an interactive searchable menu. Features:\n- Type to filter hosts in real-time\n- Hosts starting with your search term appear first\n- Select hosts to open in browser or VSCode\n- Auto-refreshes every 30 seconds\n- Quick access to refresh (r) and cleanup (c) actions\n- ESC key support to go back from detailed views\n\n### List Mode\n```bash\nlasso --list\n# or\nlasso -l\n```\n\nThis will list all configured hosts with their backend status. Active hosts with running backends are shown in green, offline hosts in red.\n\n### Cleanup Offline Hosts\n```bash\nlasso --cleanup\n# or\nlasso -c\n```\n\nThis will check backend health for all hosts and offer to remove offline hosts from your Caddy configuration. You'll be prompted to confirm before any changes are made.\n\n### Cleanup Merged PR Hosts\n```bash\nlasso --cleanup-merged\n# or\nlasso -m\n```\n\nThis will check git status for all hosts and offer to remove hosts that have merged pull requests from your Caddy configuration. This is useful for cleaning up development environments after PRs are merged. You'll be prompted to confirm before any changes are made.\n\n### Skip Health Checks\n```bash\nlasso --skip-health\n# or\nlasso -s\n```\n\nSkip backend health checks for faster listing (only works with `--list`).\n\n### Custom Port\n```bash\nlasso --port 3000\n# or\nlasso -p 3000\n```\n\nBy default, lasso connects to the Caddy API on port 2019. Use this option to specify a different port.\n\n## Features\n\n- 🔍 Automatically discovers all configured hosts from Caddy API\n- 🏥 Checks backend/upstream server health (not just the proxy)\n- ✅ Shows active hosts first with response times\n- 🧹 Cleanup command to remove offline hosts from Caddy\n- 🔵 Cleanup merged PR environments to keep your dev setup tidy\n- 🎯 Interactive menu with searchable/filterable host selection\n- 🔤 Type-to-filter hosts with smart sorting (matches starting with search term appear first)\n- 🚀 Opens selected host in browser or VSCode (when worktree path is available)\n- 🔄 Auto-refresh every 30 seconds with countdown timer\n- 📋 List mode for quick overview of all hosts\n- 🎨 Colorized output for better readability\n- 📍 Shows upstream/backend servers for each host\n- 🌿 Git integration with branch and worktree support\n- 🔗 GitHub Pull Request integration with status and check details\n- ⚡ Individual PR check status with detailed breakdown\n- 🗑️ Delete development environments (Caddy route + tmux session)\n- ⌨️ ESC key navigation support\n- 🖥️ Tmux session integration:\n  - Automatically detects tmux sessions (using tmuxdev naming convention)\n  - View last 25 lines of tmux session output\n  - Create new tmux sessions with `npm run dev`\n  - Shows session status in host listings\n  - Auto-cleanup of tmux sessions when deleting hosts\n- 💡 Works with offline backends - can still open in VSCode and view details\n\n## Requirements\n\n- Caddy server running with API enabled (default port 2019)\n- Node.js 18 or higher\n- GitHub CLI (`gh`) for Pull Request integration (optional)\n- Git repositories with worktree paths for git integration (optional)\n- Tmux for session management features (optional)\n\n## License\n\nMIT","readmeFilename":"README.md"}