{"id":47728295,"url":"https://github.com/bjesus/baywatch","last_synced_at":"2026-04-02T21:02:34.523Z","repository":{"id":338630602,"uuid":"1158019528","full_name":"bjesus/baywatch","owner":"bjesus","description":"All the webapps you ever needed to run locally, now just a browse away","archived":false,"fork":false,"pushed_at":"2026-03-28T15:50:44.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T17:54:43.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjesus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-14T17:08:05.000Z","updated_at":"2026-03-28T15:50:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bjesus/baywatch","commit_stats":null,"previous_names":["bjesus/baywatch"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bjesus/baywatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fbaywatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fbaywatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fbaywatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fbaywatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjesus","download_url":"https://codeload.github.com/bjesus/baywatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fbaywatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-02T21:02:31.548Z","updated_at":"2026-04-02T21:02:34.516Z","avatar_url":"https://github.com/bjesus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nBaywatch\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"300\" alt=\"baywatch\" src=\"https://github.com/user-attachments/assets/3daf2140-1ffa-41c1-8bb4-7a9d35e3083e\" /\u003e\n\u003c/p\u003e\n\nBaywatch runs webapps on-demand, and reverse-proxy them so they're available at `http://example.localhost/`.\n\nNo need to run `npm run dev`, `docker-compose up` etc. Your apps will spin up when you make an HTTP request, and shut down after your configured inactivity period.\nConfigure as many apps as you want - they take zero resources unless you use them, and you'll never need to remember a port number again.\n\n## Configuration\n\nBaywatch looks for its config at `~/.config/baywatch/config.yaml`, falling back to `/etc/baywatch/config.yaml`. You can override this with `--config \u003cpath\u003e`.\n\n```yaml\nbind: 0.0.0.0\nport: 80\ndomain: localhost\nidle_timeout: 900\n\nservices:\n  myapp:\n    port: 3000\n    command: npm start\n    pwd: ~/projects/myapp\n    idle_timeout: 300\n\n  api:\n    port: 8000\n    command: cargo run --release\n    pwd: ~/projects/api\n\n  dashboard:\n    port: 8787\n    command: 'parallel ::: \"pnpm run dev-server\" \"pnpm run dev-client\"'\n    pwd: ~/projects/dash\n\n  freetar:\n    port: 22001\n    command: uvx freetar\n    idle_timeout: 60\n    env:\n      FREETAR_PORT: \"22001\"\n```\n\nEach service is accessible at `\u003cname\u003e.\u003cdomain\u003e` - with the config above, `http://myapp.localhost` proxies to port 3000. \n\nBaywatch auto-reloads services configuration.\n\n### Service options\n\n| Field | Required | Default | Description |\n|---|---|---|---|\n| `port` | yes | | Port the service listens on |\n| `command` | yes | | Shell command to start the service |\n| `pwd` | no | cwd | Working directory (supports `~`) |\n| `idle_timeout` | no | 600 | Seconds of inactivity before shutdown (overrides global) |\n| `env` | no | | Environment variables for the command |\n\n### Global options\n\n| Field | Default | Description |\n|---|---|---|\n| `bind` | 0.0.0.0 | Address to listen on |\n| `port` | 80 | Port to listen on |\n| `domain` | localhost | Base domain for routing |\n| `idle_timeout` | 600 | Default seconds of inactivity before shutdown |\n| `shutdown_grace` | 5 | Seconds between SIGTERM and SIGKILL |\n| `startup_timeout` | 30 | Seconds to wait for a service to respond |\n\n## Running\n\nStart directly:\n\n```\nbaywatch\n```\n\nOr as a systemd user service:\n\n```\nsystemctl --user enable --now baywatch\n```\n\nUse `baywatch tail SERVICE` for following the stdout and stderr of a service, and `baywatch restart SERVICE` to force-reload a service.\n\nSet `RUST_LOG=debug` for verbose output.\n\n## Installing\n\n### Arch Linux (AUR)\n\n```\n# Using an AUR helper\nyay -S baywatch\n```\n\n### Debian/Ubuntu\n\nDownload the `.deb` from [Releases](https://github.com/bjesus/baywatch/releases):\n\n```\nsudo dpkg -i baywatch_0.2.1_amd64.deb\n```\n\n### NixOS\n\nAdd the flake to your inputs and use the provided NixOS module or package.\n\n### Static binary\n\nDownload a static musl binary from [Releases](https://github.com/bjesus/baywatch/releases) and put it in your `PATH`. Run `sudo setcap cap_net_bind_service=+ep /usr/local/bin/baywatch` to allow binding port 80 without root.\n\n### From source\n\n```\ncargo install baywatch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Fbaywatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjesus%2Fbaywatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Fbaywatch/lists"}