{"id":17086556,"url":"https://github.com/arl/serve","last_synced_at":"2025-07-23T07:05:53.307Z","repository":{"id":57705761,"uuid":"291514878","full_name":"arl/serve","owner":"arl","description":"Serves the content of a directory as HTTP.","archived":false,"fork":false,"pushed_at":"2023-12-07T18:06:00.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T14:42:12.083Z","etag":null,"topics":["fileserver","go","golang","http","serve","server","simple","simplehttpserver"],"latest_commit_sha":null,"homepage":"","language":"Go","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/arl.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":"2020-08-30T17:06:45.000Z","updated_at":"2022-06-07T14:10:02.000Z","dependencies_parsed_at":"2023-12-07T19:24:57.017Z","dependency_job_id":"5b5a6d45-7f90-4bca-aa1c-bd32a79536ef","html_url":"https://github.com/arl/serve","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/arl/serve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arl","download_url":"https://codeload.github.com/arl/serve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fserve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266633426,"owners_count":23959548,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["fileserver","go","golang","http","serve","server","simple","simplehttpserver"],"created_at":"2024-10-14T13:28:56.295Z","updated_at":"2025-07-23T07:05:53.286Z","avatar_url":"https://github.com/arl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serve\n\nLike `python -m SimpleHTTPServer` but even _simpler_!\n\n## Installation\n\n    go install github.com/arl/serve@latest\n\n\n## Usage\n\n    $ serve -h\n    Serves the content of a directory as HTTP\n    usage: serve [-h] [addr] [dir]\n    options:\n        addr        Address to listen on. Defaults to \"localhost:8000\"\n                    Format is host:port where \"host\" can be omitted to listen on all\n                    network interfaces.\n        dir         File server root directory, defaults to current directory\n        -h/--help   Show this message\n\nOnce started, `serve` logs HTTP requests as follows:\n\n    $ serve\n    [serve] serving . on http://localhost:8000/\n    [serve] \"GET / HTTP/1.1\" 0 7 58.398µs\n    [serve] \"GET /index.html HTTP/1.1\" 200 1592 3.958531ms\n    [serve] \"GET /main.css HTTP/1.1\" 200 821 109.286µs\n\nFor example, the last line indicates that an `HTTP/1.1` request to `main.css` has been served, it ended with a 200 status, 821 bytes were served and that took 109µs.\n\n\n## Examples\n\n* Serves current directory on defaut address `http://localhost:8000`\n\n```\nserve\n```\n\n* Serves current directory on `http://*:80` (all network interfaces)\n\n```\nserve :80\n```\n\n* Serves `/foo/bar` directory on `http://*:7777` (all network interfaces)\n\n```\nserve :7777 /foo/bar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farl%2Fserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fserve/lists"}