{"id":22709572,"url":"https://github.com/lavigneer/browser-autorefresh","last_synced_at":"2025-03-29T21:22:08.171Z","repository":{"id":260979323,"uuid":"882803209","full_name":"lavigneer/browser-autorefresh","owner":"lavigneer","description":"A Golang utility that facilitates browser auto-refresh when the server is restarted","archived":false,"fork":false,"pushed_at":"2024-11-23T13:29:45.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T22:14:35.130Z","etag":null,"topics":["autorefresh","developer-tools","go","golang","web","webserver"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lavigneer.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}},"created_at":"2024-11-03T19:52:05.000Z","updated_at":"2024-11-23T13:29:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"21701443-4e22-4bc9-bfea-62869fa50f29","html_url":"https://github.com/lavigneer/browser-autorefresh","commit_stats":null,"previous_names":["lavigneer/browser-autorefresh"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavigneer%2Fbrowser-autorefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavigneer%2Fbrowser-autorefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavigneer%2Fbrowser-autorefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavigneer%2Fbrowser-autorefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavigneer","download_url":"https://codeload.github.com/lavigneer/browser-autorefresh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246244434,"owners_count":20746439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["autorefresh","developer-tools","go","golang","web","webserver"],"created_at":"2024-12-10T11:10:29.667Z","updated_at":"2025-03-29T21:22:08.147Z","avatar_url":"https://github.com/lavigneer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/lavigneer/browser-autorefresh.svg)](https://pkg.go.dev/github.com/lavigneer/browser-autorefresh)\n\n# browser-autorefresh\nThis is a small Golang utility that can be installed as part of a web server that facilitates browser page auto-refresh when the service is restarted via some live-relaod function\n\nThere are two components this utility provides:\n\n1. An http handler for a websocket endpoint\n2. A template that provides a JS script to include in a page's html that uses the websocket endpoint to detect when the server is operational.\n\nWhen the websocket connection is lost, a retry on the client-side occurs until it is able to reconnect, at which point it reloads the page to pull in the latest changes.\n\nThis is most useful when combined with a server live reload tool (e.g., [air](https://github.com/air-verse/air)).\n\n# Installation\n\n```bash\ngo get github.com/lavigneer/browser-autorefresh\n```\n\n# Example\n\nSee [examples/std](examples/std)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavigneer%2Fbrowser-autorefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavigneer%2Fbrowser-autorefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavigneer%2Fbrowser-autorefresh/lists"}