{"id":15780449,"url":"https://github.com/balazs4/servus","last_synced_at":"2026-02-08T04:31:16.115Z","repository":{"id":232693457,"uuid":"778186388","full_name":"balazs4/servus","owner":"balazs4","description":"http server with built-in auto refresh on file changes","archived":false,"fork":false,"pushed_at":"2025-07-15T08:09:14.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-25T05:27:16.361Z","etag":null,"topics":["development","html","http-server","live-reload"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balazs4.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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}},"created_at":"2024-03-27T08:45:21.000Z","updated_at":"2025-07-22T22:04:33.000Z","dependencies_parsed_at":"2025-05-08T03:06:05.533Z","dependency_job_id":"9338ff5b-dbd0-4da4-a3f1-b0a8e9c1d3a6","html_url":"https://github.com/balazs4/servus","commit_stats":null,"previous_names":["balazs4/servus"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/balazs4/servus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fservus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fservus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fservus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fservus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balazs4","download_url":"https://codeload.github.com/balazs4/servus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fservus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29220428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"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":["development","html","http-server","live-reload"],"created_at":"2024-10-04T18:41:36.305Z","updated_at":"2026-02-08T04:31:16.082Z","avatar_url":"https://github.com/balazs4.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servus\n\n\u003e HTTP server with built-in automatic refresh feature on file changes for developers.\n\n## Features\n\n- Serves static files from the current directory or specified files\n- Automatic browser refresh on file changes (live reload)\n- Watches files/directories for changes using [fsnotify](https://github.com/fsnotify/fsnotify)\n- Injects a live reload script into served HTML files\n- Customizable port via the `PORT` environment variable (default: 3000)\n- Simple logging with version info\n\n## How it works\n\nWhen you run `servus`, it starts an HTTP server and watches the current directory (or specified files/directories) for changes. When a file changes, connected browsers are notified via a Server-Sent Events (SSE) endpoint (`/.servus`). A small script is injected into served HTML files, which listens for these events and reloads the page automatically.\n\n## Usage\n\n```sh\nservus                # watches current directory (non-recursive)\nservus `git ls-files` # watches all files in git repository\nPORT=4269 servus      # set custom port number\n```\n\n## Endpoints\n\n- `GET /` — Redirects to `/index.html`\n- `GET /{file}` — Serves the requested file from the current directory\n- `GET /.servus` — Server-Sent Events endpoint for live reload notifications\n\n## Install\n\n```sh\ngo install github.com/balazs4/servus\n```\n\nOr download a [pre-built binary](https://github.com/balazs4/servus/releases).\n\n## Example\n\nStart the server:\n\n```sh\nservus\n```\n\nOpen your browser to [http://localhost:3000](http://localhost:3000). When you edit and save an HTML file, the page will automatically reload.\n\n## License\n\nSee [license](./license)\n\n## Author\n\nbalazs4\n\n\u003e **Note:** This readme.md was generated by AI ([opencode](https://github.com/sst/opencode) v0.3.5, model: github-copilot/gpt-4.1), but all code is **100% manually written**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalazs4%2Fservus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalazs4%2Fservus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalazs4%2Fservus/lists"}