{"id":17288906,"url":"https://github.com/devraymondsh/static-file-http-server","last_synced_at":"2025-08-19T08:07:16.628Z","repository":{"id":65957704,"uuid":"603007442","full_name":"devraymondsh/static-file-http-server","owner":"devraymondsh","description":"A simple and zero-configuration command-line http server for static file hosting","archived":false,"fork":false,"pushed_at":"2023-05-04T20:21:30.000Z","size":2821,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T22:57:09.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devraymondsh.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":"2023-02-17T12:24:23.000Z","updated_at":"2024-02-17T17:10:50.000Z","dependencies_parsed_at":"2024-08-22T23:14:28.136Z","dependency_job_id":"b7d6104e-801a-4734-9eb4-4732a1d60bec","html_url":"https://github.com/devraymondsh/static-file-http-server","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"c7353c4457dc7a6c28a852aa4167a73e3b8f0a94"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/devraymondsh/static-file-http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fstatic-file-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fstatic-file-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fstatic-file-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fstatic-file-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devraymondsh","download_url":"https://codeload.github.com/devraymondsh/static-file-http-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fstatic-file-http-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121168,"owners_count":24702723,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-15T10:32:34.575Z","updated_at":"2025-08-19T08:07:16.605Z","avatar_url":"https://github.com/devraymondsh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# static-file-http-server: a simple static server\n### static-file-http-server is a simple, zero-configuration command-line static server written in Rust. It is powerful enough for production usage, but it's simple and requires not configuration. It can also produce a single binary file that hosts your files independently which is what we recommend for production.\n\n\u003cbr /\u003e\n\n## Installation:\n### Using npm:\n`npm install --global static-file-http-server`\n\n### Using cargo:\n\n`cargo install static-file-http-server`\n\n\u003cbr /\u003e\n\n## How to use:\n`static-file-http-server [OPTIONS] \u003cPATH\u003e`\n\n## Options:\n| Option(short) | Option(long)    | Description                                                                                                                                                                                       | Default      |\n|---------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|\n| -a            | --addr          | Address to bind, for example: 0.0.0.0:80. You may need administrator permissions for binding on port 80 based on your OS.                                                                         | 127.0.0.1:8085 |\n| -r            | --cors          | Controling CORS via the 'Access-Control-Allow-Origin' header.                                                                                                                                     | *            |\n| -c            | --cache         | Set cache time (in seconds) for cache-control max-age header, for eaxmple: -c10 for 10 seconds. Use -c-1 to disable caching.                                                                      | 3600         |\n| -o            | --open          | Open the browser after starting the server.                                                                                                                                                       |              |\n| -p            | --single-binary | Produce a single binary that serves files that get embedded in the binary for better performance. You need to install Rust and Cargo before running this feature. (Recommend  ed for production). |              |\n| -h            | --help          | Print help.                                                                                                                                                                                       |              |\n| -V            | --version       | Print version.                                                                                                                                                                                    |              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Fstatic-file-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevraymondsh%2Fstatic-file-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Fstatic-file-http-server/lists"}