{"id":19381245,"url":"https://github.com/probably-not/servedir","last_synced_at":"2026-06-11T22:31:17.298Z","repository":{"id":57577206,"uuid":"212289870","full_name":"probably-not/servedir","owner":"probably-not","description":"The simple file server command. Why? Because laziness, that's why","archived":false,"fork":false,"pushed_at":"2023-02-25T04:04:50.000Z","size":4683,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T22:41:53.273Z","etag":null,"topics":["fileserver","golang","lazy"],"latest_commit_sha":null,"homepage":null,"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/probably-not.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":"2019-10-02T08:28:11.000Z","updated_at":"2021-04-18T20:34:05.000Z","dependencies_parsed_at":"2024-06-20T15:44:08.166Z","dependency_job_id":"9dc2666b-b5c9-4382-a4ce-6fe49a9d61cc","html_url":"https://github.com/probably-not/servedir","commit_stats":null,"previous_names":["coby-spotim/servedir"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/probably-not/servedir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fservedir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fservedir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fservedir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fservedir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probably-not","download_url":"https://codeload.github.com/probably-not/servedir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fservedir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34221150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["fileserver","golang","lazy"],"created_at":"2024-11-10T09:16:24.992Z","updated_at":"2026-06-11T22:31:17.280Z","avatar_url":"https://github.com/probably-not.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servedir\n\nThe simple file server command.\n\nThis code is literally to simplify my life by making it so that instead of typing a few words in the command line to open a file server, I only have to write one word (not including options like port and directory).\n\nWhy did I do this? Because I'm a lazy guy who would rather make my life easier by writing less in the terminal.\n\n- [servedir](#servedir)\n  - [Installation](#installation)\n  - [Usage](#usage)\n  - [Now With Brotli Compression!!](#now-with-brotli-compression)\n    - [To adjust the settings](#to-adjust-the-settings)\n## Installation\n\n```bash\ngo get github.com/probably-not/servedir\ncd $(go env GOPATH)/src/github.com/probably-not/servedir\ngo install\n```\n\n## Usage\n\nTo serve the current directory on port `8080`:\n```bash\nservedir\n```\n\nTo serve the current directory on a different port:\n```bash\nservedir --port 8000\n```\n\nOr, using the shorthand:\n```bash\nservedir -p 8000\n```\n\nTo serve a different directory on port `8080`:\n```bash\nservedir --dir /some/random/dir\n```\n\nOr, using the shorthand:\n```bash\nservedir -d /some/random/dir\n```\n\n## Now With Brotli Compression!!\n\nWell, some time passed, and then I realized, what if I want to see how my files are compressed? So... I added some brotli compression!\n\nTo serve files with compression, simply run the normal command. Compression and best compression is on by default.\n\n### To adjust the settings\n\nTo turn off compression:\n```bash\nservedir --compression false\n```\n\nOr, using the shorthand:\n```bash\nservedir -c false\n```\n\nTo change the level of compression (can be between 0 and 11):\n```bash\nservedir --level 1\n```\n\nOr, using the shorthand:\n```bash\nservedir -l 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobably-not%2Fservedir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobably-not%2Fservedir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobably-not%2Fservedir/lists"}