{"id":17919382,"url":"https://github.com/eliben/static-server","last_synced_at":"2025-08-10T04:06:07.272Z","repository":{"id":191461233,"uuid":"684706823","full_name":"eliben/static-server","owner":"eliben","description":"A simple, zero-configuration HTTP server CLI for serving static files","archived":false,"fork":false,"pushed_at":"2024-10-15T17:14:26.000Z","size":27,"stargazers_count":214,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-07T00:36:41.127Z","etag":null,"topics":["go","http","http-server","static-server"],"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/eliben.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":"2023-08-29T17:29:03.000Z","updated_at":"2025-07-31T13:21:29.000Z","dependencies_parsed_at":"2024-10-16T20:46:44.733Z","dependency_job_id":null,"html_url":"https://github.com/eliben/static-server","commit_stats":null,"previous_names":["eliben/static-server"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eliben/static-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliben%2Fstatic-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliben%2Fstatic-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliben%2Fstatic-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliben%2Fstatic-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliben","download_url":"https://codeload.github.com/eliben/static-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliben%2Fstatic-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269673660,"owners_count":24457174,"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-10T02:00:08.965Z","response_time":71,"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":["go","http","http-server","static-server"],"created_at":"2024-10-28T20:16:24.915Z","updated_at":"2025-08-10T04:06:07.241Z","avatar_url":"https://github.com/eliben.png","language":"Go","readme":"[![Go](https://github.com/eliben/static-server/actions/workflows/go.yml/badge.svg)](https://github.com/eliben/static-server/actions/workflows/go.yml)\n\n----\n\n# static-server\n\nSimple static file server, with support of HTTP and HTTPS. Useful for local testing of web applications.\n\n\nThere are no configuration files and no dependencies (except one for testing). Serving the current directory on HTTP port 8080 is as simple as invoking:\n\n```\n$ go run github.com/eliben/static-server@latest\n\u003ctimestamp\u003e Serving directory \".\" on http://127.0.0.1:8080\n```\n\nIf you want to install `static-server` locally first, you can run:\n\n```\n$ go install github.com/eliben/static-server@latest\n```\n\nAnd then invoke `static-server` as needed. Command-line flags can be used to\nconfigure the behavior of the server:\n\n```\n$ static-server -h\nUsage: ./static-server [dir]\n\n  [dir] is optional; if not passed, '.' is used.\n\n  By default, the server listens on localhost:8080. Both the\n  host and the port are configurable with flags. Set the host\n  to something else if you want the server to listen on a\n  specific network interface. Setting the port to 0 will\n  instruct the server to pick a random available port.\n\n  -addr string\n    \tfull address (host:port) to listen on; don't use this if 'port' or 'host' are set (default \"localhost:8080\")\n  -certfile string\n    \tTLS certificate file to use with -tls (default \"cert.pem\")\n  -cors\n    \tenable CORS by returning Access-Control-Allow-Origin header\n  -host string\n    \tspecific host to listen on (default \"localhost\")\n  -keyfile string\n    \tTLS key file to use with -tls (default \"key.pem\")\n  -port string\n    \tport to listen on; if 0, a random available port will be used (default \"8080\")\n  -silent\n    \tsuppress messages from output (reporting only errors)\n  -tls\n    \tenable HTTPS serving with TLS\n  -version\n    \tprint version and exit\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliben%2Fstatic-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliben%2Fstatic-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliben%2Fstatic-server/lists"}