{"id":14378855,"url":"https://github.com/morris/s4d","last_synced_at":"2025-10-08T15:05:36.471Z","repository":{"id":245699910,"uuid":"818643181","full_name":"morris/s4d","owner":"morris","description":"Minimal web development server with live reload","archived":false,"fork":false,"pushed_at":"2025-02-15T13:35:47.000Z","size":167,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T07:44:20.085Z","etag":null,"topics":["cli","http","local-development","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morris.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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-06-22T12:30:41.000Z","updated_at":"2025-02-15T13:35:51.000Z","dependencies_parsed_at":"2024-08-23T09:49:48.422Z","dependency_job_id":null,"html_url":"https://github.com/morris/s4d","commit_stats":null,"previous_names":["morris/s4d"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fs4d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fs4d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fs4d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fs4d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morris","download_url":"https://codeload.github.com/morris/s4d/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244434870,"owners_count":20452273,"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":["cli","http","local-development","web"],"created_at":"2024-08-28T11:01:04.010Z","updated_at":"2025-10-08T15:05:31.402Z","avatar_url":"https://github.com/morris.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# s4d\n\nMinimal web development server with live reload.\n\n## Installation\n\n```sh\nnpm install s4d --save-dev # project local installation (preferred)\nnpm install s4d --global # global installation\n```\n\n## Usage\n\n```\ns4d [options] \u003cwebroot\u003e\n\n  --help, -h      Show this help.\n  --host \u003chost\u003e   Set hostname. Default is \"localhost\".\n                  Set \"0.0.0.0\" to expose over network.\n  --port \u003cport\u003e   Set port. Default is 8080.\n  --spa           Single-page application mode.\n                  Serves /index.html for URLs that cannot be resolved to a file.\n```\n\nExamples:\n\n```sh\ns4d public\ns4d --port 3000 public\ns4d --port 3000 --spa public\ns4d --port 3000 --host 0.0.0.0 --spa public # Expose over network\n```\n\nWhen installed locally in a project, run with `npx s4d [args...]`,\nunless running from an npm script.\n\n## Live Reload Behavior\n\nWhen a file under webroot is modified,\nattempts to reload stylesheets and images in-place\nif they match the modified file.\nIn all other cases, a hard page reload is triggered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorris%2Fs4d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorris%2Fs4d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorris%2Fs4d/lists"}