{"id":20010116,"url":"https://github.com/cxa/live-reload-server","last_synced_at":"2025-06-13T22:38:57.621Z","repository":{"id":241022126,"uuid":"804097042","full_name":"cxa/live-reload-server","owner":"cxa","description":"Ideal static file server for those who prefer a \"no build\" approach for HTML, JS, and CSS","archived":false,"fork":false,"pushed_at":"2024-05-22T03:10:01.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T01:32:39.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cxa.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}},"created_at":"2024-05-22T00:24:08.000Z","updated_at":"2024-05-31T08:43:35.205Z","dependencies_parsed_at":"2024-05-22T01:32:31.616Z","dependency_job_id":"1d9f026e-2ac4-40fb-bfac-ef9162107a38","html_url":"https://github.com/cxa/live-reload-server","commit_stats":null,"previous_names":["cxa/live-reload-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Flive-reload-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Flive-reload-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Flive-reload-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Flive-reload-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxa","download_url":"https://codeload.github.com/cxa/live-reload-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447526,"owners_count":19964314,"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":[],"created_at":"2024-11-13T07:18:29.577Z","updated_at":"2025-03-02T01:44:47.323Z","avatar_url":"https://github.com/cxa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# live-reload-server\n\nIdeal static file server for those who prefer a \"no build\" approach for HTML, JS, and CSS.\n\n## TLDR\n\nIf you need the browser to automatically reload while previewing the HTML you're editing after saving:\n\n``` shell\ncurl -O https://raw.githubusercontent.com/cxa/live-reload-server/main/lrs\nchmod +x lrs\n./lrs\n```\n\n### To quickly scaffold a project\n\n``` shell\ncurl -sSL https://raw.githubusercontent.com/cxa/live-reload-server/main/lrs-scaffold | sh -s -- proj-name\n```\n\n## If You're Still Reading\n\n`lrs`, short for \"live-reload-server\", is a static file server. While it may not be fancier than others, it automatically provides live reload using [live.js](https://livejs.com).\n\nWritten in Python 3 without external dependencies, you can simply download it to the directory you want to serve and run `./lrs`.\n\nRun `./lrs -h` to view more options for setting the port, directory, and monitor mode.\n\n``` shell\nusage: lrs [-h] [--port PORT] [--dir DIR] [--mode MODE]\n\nRun a live reload HTTP server for static files.\n\noptions:\n  -h, --help   show this help message and exit\n  --port PORT  Specify the port number (default: 8000).\n  --dir DIR    Specify the directory to serve (default: current directory).\n  --mode MODE  Specify the mode to monitor changes (options are html, js, css, or a combination such as html,css. Default: empty, to monitor all changes).\n  --verbose    Output verbose message.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Flive-reload-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxa%2Flive-reload-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Flive-reload-server/lists"}