{"id":17091268,"url":"https://github.com/kachayev/nasus","last_synced_at":"2025-04-07T06:12:56.630Z","repository":{"id":45241703,"uuid":"173746896","full_name":"kachayev/nasus","owner":"kachayev","description":"Zero-configuration command-line async HTTP files server in Clojure. Like Python's SimpleHTTPServer but scalable.","archived":false,"fork":false,"pushed_at":"2021-12-28T17:26:30.000Z","size":86,"stargazers_count":166,"open_issues_count":5,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-14T20:04:54.599Z","etag":null,"topics":["async","clojure","http","http-server","netty","static-server"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/kachayev.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}},"created_at":"2019-03-04T13:09:08.000Z","updated_at":"2024-01-17T17:49:28.000Z","dependencies_parsed_at":"2022-08-28T13:21:28.271Z","dependency_job_id":null,"html_url":"https://github.com/kachayev/nasus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachayev%2Fnasus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachayev%2Fnasus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachayev%2Fnasus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachayev%2Fnasus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kachayev","download_url":"https://codeload.github.com/kachayev/nasus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601449,"owners_count":20964864,"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":["async","clojure","http","http-server","netty","static-server"],"created_at":"2024-10-14T13:58:07.163Z","updated_at":"2025-04-07T06:12:56.606Z","avatar_url":"https://github.com/kachayev.png","language":"Clojure","readme":"# Nasus HTTP Server\n\nA simple zero-configuration command-line HTTP files server. Like Python's `SimpleHTTPServer` but scalable. Сan easily handle thousands of simultaneous connections.\n\nImplemented in `Clojure` with [`Aleph`](https://github.com/ztellman/aleph) and [`Netty`](https://github.com/netty/netty). Mostly as an example. It's still skillful and handy tho'. There's even nothing wrong with putting it to production.\n\n## Usage\n\nRun in the directory you want to serve:\n\n```shell\nclj -Sdeps '{:deps {nasus {:mvn/version \"0.1.7\"}}}' -m http.server\n```\n\nOr specify custom port:\n\n```shell\nclj -Sdeps '{:deps {nasus {:mvn/version \"0.1.7\"}}}' -m http.server 8001\n```\n\n## Features\n\n* Plain text \u0026 HTML directory listings based on \"Accept\" header\n* Automatic mime-type detection\n* Streaming and chunked encoding for large files\n* Keep-alive and slow requests handling\n* Transparent content compression (gzip, deflate)\n* Cache control and \"Last-Modified\"\n* CORS headers\n\nIn development:\n\n* Range queries support\n* SSL/TLS\n* List of files \u0026 directories to exclude from serving\n\n## Flags\n\n```\n  -p, --port \u003cPORT\u003e         8000        Port number\n  -b, --bind \u003cIP\u003e           0.0.0.0     Address to bind to\n      --dir \u003cPATH\u003e          ./          Directory to serve files\n      --auth \u003cUSER[:PASSWORD]\u003e          Basic auth\n      --no-index                        Disable directory listings\n      --no-cache                        Disable cache headers\n      --no-compression                  Disable deflate and gzip compression\n      --follow-symlink                  Enable symbolic links support\n      --include-hidden                  Process hidden files as normal\n      --cors                            Support Acccess-Control-* headers, see --cors-* options for more fine-grained control\n      --cors-origin                     Acccess-Control-Allow-Origin response header value\n      --cors-methods                    Acccess-Control-Allow-Methods response header value\n      --cors-allow-headers              Acccess-Control-Allow-Headers response header value\n      --index-document-path \u003cPATH\u003e      When requesting \"dir/\", respond with \"dir/\u003cPATH\u003e\" instead of a listing\n  -h, --help\n```\n\n## License\n\nCopyright © 2020 Nasus\n\nNasus is licensed under the MIT license, available at MIT and also in the LICENSE file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachayev%2Fnasus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkachayev%2Fnasus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachayev%2Fnasus/lists"}