{"id":21614591,"url":"https://github.com/rhardih/serve","last_synced_at":"2025-04-11T06:52:18.803Z","repository":{"id":8170307,"uuid":"57096859","full_name":"rhardih/serve","owner":"rhardih","description":"Simple http server for localhost development with flags for enabling gzip and http2","archived":false,"fork":false,"pushed_at":"2024-05-02T19:01:08.000Z","size":18,"stargazers_count":102,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T04:41:51.118Z","etag":null,"topics":["golang","gzip","http","http2","https","localhost"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhardih.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":"2016-04-26T04:05:54.000Z","updated_at":"2024-07-09T09:49:28.000Z","dependencies_parsed_at":"2024-05-02T20:25:30.779Z","dependency_job_id":"b6f4e58b-5ab1-41ad-8915-9220b4df9b7d","html_url":"https://github.com/rhardih/serve","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":0.24,"last_synced_commit":"7e129438649dd86ac28ae92bf32966cf183d249a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhardih%2Fserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhardih%2Fserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhardih%2Fserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhardih%2Fserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhardih","download_url":"https://codeload.github.com/rhardih/serve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358548,"owners_count":21090401,"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":["golang","gzip","http","http2","https","localhost"],"created_at":"2024-11-24T22:08:32.695Z","updated_at":"2025-04-11T06:52:18.781Z","avatar_url":"https://github.com/rhardih.png","language":"Go","readme":"# serve\nSimple http server for localhost development.\n\nIt's like `python -m SimpleHTTPServer`, but with support for gzip and HTTP/2.\n\n## Installation\n\n```bash\ngo install github.com/rhardih/serve/v3@latest\n```\n\n## Usage\n\nIf $GOPATH/bin is in your $PATH, simply:\n\n\n```\n$ serve -h\nNAME:\n   serve - deliver content of current directory via http/https\n\nUSAGE:\n   serve [global options] command [command options] [arguments...]\n\nVERSION:\n   2.0.0\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --gzip, -g                    enable gzip encoding (default: false)\n   --port value, -p value        specify port for listening (default: 8080)\n   --logging, -l                 enable logging output (default: false)\n   --http2, -2                   enable http2, this generates a self signed certificate, if one isn't already present; cert.pem, key.pem (default: false)\n   --header value, -H value      custom header(s) to add to the response (can be repeated multiple times)\n   --cert-save, --sc             whether to save the generated self-signed certificates to disk (default: false)\n   --cert-dir value, --cd value  location to save certificate at if saving to disk (default: \"/Users/rene/.serve\")\n   --help, -h                    show help (default: false)\n   --version, -v                 print the version (default: false)\n\n```\n\n## Note\n\nCode for generating self-signed certificate for HTTP/2 was taken from example code in `src/crypto/tls/generate_cert.go`, available at [https://golang.org/src/crypto/tls/generate_cert.go](https://golang.org/src/crypto/tls/generate_cert.go).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhardih%2Fserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhardih%2Fserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhardih%2Fserve/lists"}