{"id":13786650,"url":"https://github.com/janiltonmaciel/statiks","last_synced_at":"2025-09-08T09:47:30.838Z","repository":{"id":57544496,"uuid":"138805485","full_name":"janiltonmaciel/statiks","owner":"janiltonmaciel","description":"Fast, zero-configuration, static HTTP filer server.","archived":false,"fork":false,"pushed_at":"2025-04-16T23:39:49.000Z","size":189,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-11T22:38:49.219Z","etag":null,"topics":["cli","file-server","golang","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janiltonmaciel.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,"zenodo":null}},"created_at":"2018-06-26T23:42:33.000Z","updated_at":"2025-02-27T15:42:23.000Z","dependencies_parsed_at":"2025-05-11T22:32:02.127Z","dependency_job_id":"a355a233-eb1b-48f3-b981-b39d11cdaa37","html_url":"https://github.com/janiltonmaciel/statiks","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/janiltonmaciel/statiks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janiltonmaciel%2Fstatiks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janiltonmaciel%2Fstatiks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janiltonmaciel%2Fstatiks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janiltonmaciel%2Fstatiks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janiltonmaciel","download_url":"https://codeload.github.com/janiltonmaciel/statiks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janiltonmaciel%2Fstatiks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274166955,"owners_count":25233959,"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-09-08T02:00:09.813Z","response_time":121,"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":["cli","file-server","golang","server","static-server"],"created_at":"2024-08-03T19:01:26.992Z","updated_at":"2025-09-08T09:47:30.752Z","avatar_url":"https://github.com/janiltonmaciel.png","language":"Go","funding_links":[],"categories":["Utilities","公用事业公司","工具库","工具库`可以提升效率的通用代码库和工具`","Utility"],"sub_categories":["Utility/Miscellaneous","实用程序/Miscellaneous","Fail injection","查询语","HTTP Clients"],"readme":"# Statiks\nFast, zero-configuration, static HTTP filer server.\nLike Python's `SimpleHTTPServer` but scalable.\n\n[![GitHub Releases](https://img.shields.io/github/release/janiltonmaciel/statiks.svg)](https://github.com/janiltonmaciel/statiks/releases)\n[![GoDoc](https://godoc.org/github.com/janiltonmaciel/statiks?status.svg)](https://pkg.go.dev/github.com/janiltonmaciel/statiks?tab=overview)\n[![Go Report Card](https://goreportcard.com/badge/github.com/janiltonmaciel/statiks)](https://goreportcard.com/report/github.com/janiltonmaciel/statiks)\n[![Build Status](https://travis-ci.org/janiltonmaciel/statiks.svg?branch=master)](https://travis-ci.org/janiltonmaciel/statiks)\n[![codecov](https://codecov.io/gh/janiltonmaciel/statiks/branch/master/graph/badge.svg)](https://codecov.io/gh/janiltonmaciel/statiks)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n\n## Features\n\n* HTTP and HTTPS (TLS/SSL)\n* Support directory list\n* Cache control and \"Last-Modified\"\n* Delay response\n* CORS support\n* Content compression (gzip)\n* Request logging\n\n## Installation\n\n#### Via Binaries\n  - **darwin (macOS)** [amd64](https://github.com/janiltonmaciel/statiks/releases/download/v1.7.0/statiks_v1.7.0_darwin_amd64.tar.gz)\n  - **linux** [amd64](https://github.com/janiltonmaciel/statiks/releases/download/v1.7.0/statiks_v1.7.0_linux_amd64.tar.gz)\n  - **windows** [amd64](https://github.com/janiltonmaciel/statiks/releases/download/v1.7.0/statiks_v1.7.0_windows_amd64.zip)\n\n#### Via Homebrew (macOS)\n\n```bash\nbrew tap janiltonmaciel/homebrew-tap\nbrew install statiks\n```\n\n#### Via Docker\n\nThe official [janilton/statiks](https://hub.docker.com/r/janilton/statiks) image is available on Docker Hub.\n```bash\ndocker container run -p 9080:9080 -v .:/var/www --rm janilton/statiks\n```\n\n\u003e Volume dir: /var/www\n\n\u003e Expose port: 9080\n\n\n## Use\n```bash\nstatiks [options] \u003cpath\u003e\n\nOPTIONS:\n  --host value, -h value  host address to bind to (default: \"0.0.0.0\") [$HOST]\n  --port value, -p value  port number (default: \"9080\") [$PORT]\n  --quiet, -q             enable quiet mode, do not output each incoming request (default: false)\n  --add-delay value       add delay to responses (in milliseconds) (default: 0)\n  --cache value           set cache time (in seconds) for cache-control max-age header (default: 0)\n  --no-index              disable directory listings (default: false)\n  --compression           enable gzip compression (default: false)\n  --include-hidden        enable hidden files as normal (default: false)\n  --cors                  enable CORS allowing all origins with all standard methods with any header and credentials. (default: false)\n  --ssl                   enable https (default: false)\n  --cert value            path to the ssl cert file (default: \"cert.pem\")\n  --key value             path to the ssl key file (default: \"key.pem\")\n  --help                  show help (default: false)\n  --version, -v           print the version (default: false)\n```\n\n\u003e `\u003cpath\u003e` defaults to `.` (relative path to the current directory)\n\n## Examples\n\n  * start server at http://0.0.0.0:9000 serving \".\" current directory\n\n```bash\nstatiks -port 9000\n```\n\n  * start server at http://0.0.0.0:9080 serving \"/home\" with CORS\n\n```bash\nstatiks --cors /home\n```\n\n  * start server at http://192.168.1.100:9080 serving \"/tmp\" with gzip compression\n\n```bash\nstatiks --host 192.168.1.100 --compression /tmp\n```\n\n  * start server at https://0.0.0.0:9080 serving \".\" with HTTPS\n\n```bash\nstatiks --ssl --cert cert.pem --key key.pem\n```\n\n  * start server at http://0.0.0.0:9080 serving \"/tmp\" with delay response 100ms\n\n```bash\nstatiks --add-delay 100 /tmp\n```\n\n## Credits\n\n* Check - [go-check/check](https://github.com/go-check/check) (testing)\n* Cli - [urfave/cli](https://github.com/urfave/cli)\n* Cors - [rs/cors](https://github.com/rs/cors)\n* Httpexpect - [gavv/httpexpect](https://github.com/gavv/httpexpect) (testing)\n* Negroni - [urfave/negroni](https://github.com/urfave/negroni)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaniltonmaciel%2Fstatiks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaniltonmaciel%2Fstatiks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaniltonmaciel%2Fstatiks/lists"}