{"id":28628236,"url":"https://github.com/fgeller/serve","last_synced_at":"2025-06-12T10:11:48.717Z","repository":{"id":57518965,"uuid":"44928371","full_name":"fgeller/serve","owner":"fgeller","description":"Tiny app to serve current directory via HTTP","archived":false,"fork":false,"pushed_at":"2020-12-15T12:03:48.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T15:41:24.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fgeller.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}},"created_at":"2015-10-25T20:30:16.000Z","updated_at":"2020-12-15T12:03:51.000Z","dependencies_parsed_at":"2022-09-26T18:00:47.942Z","dependency_job_id":null,"html_url":"https://github.com/fgeller/serve","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fgeller/serve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgeller","download_url":"https://codeload.github.com/fgeller/serve/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgeller%2Fserve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259444983,"owners_count":22858553,"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":[],"created_at":"2025-06-12T10:11:47.756Z","updated_at":"2025-06-12T10:11:48.699Z","avatar_url":"https://github.com/fgeller.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serve\n\nTiny app to serve the current directory via HTTP. Attempts to open the default browser \nat the served location for Linux, OSX and Windows.\n\nInstall via\n\n    go get github.com/fgeller/serve\n\nMake sure `$GOPATH/bin` is part of your `$PATH`.\n\nOr grab a pre-built binary from the [release section](https://github.com/fgeller/serve/releases) and place it in a location on your `$PATH`.\n\nSimply start via `serve` which will choose a random port:\n\n    $ serve\n    2015/10/26 09:26:05 Serving at http://0.0.0.0:60794.\n    2015/10/26 09:26:05 Opening...\n\nOr specify a port:\n\n    $ serve 3022\n    2015/10/26 09:43:36 Serving at http://0.0.0.0:3022\n    2015/10/26 09:43:36 Opening...\n\nVery similar to Python's `SimpleHTTPServer` module, which I had wrapped in the\nfollowing bash function:\n\n    function serve {\n        python -m SimpleHTTPServer \"$@\"\n    }\n\nTurns out it's not straight-forward to detect the port on which the server is\nlistening, so I couldn't simply add a step to open my browser at a newly served\nlocation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgeller%2Fserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgeller%2Fserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgeller%2Fserve/lists"}