{"id":19673100,"url":"https://github.com/wille-io/deno-srv","last_synced_at":"2026-05-13T11:34:12.287Z","repository":{"id":180950918,"uuid":"665918160","full_name":"wille-io/deno-srv","owner":"wille-io","description":"A Deno web server and / or framework. Use it as a high level web server or build a low-level framework around it.","archived":false,"fork":false,"pushed_at":"2024-09-30T10:46:50.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T05:16:31.477Z","etag":null,"topics":["deno","denoland","https-server","webserver"],"latest_commit_sha":null,"homepage":"https://deno.land/x/srv","language":"TypeScript","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/wille-io.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":"2023-07-13T09:37:58.000Z","updated_at":"2024-09-30T10:45:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f571ea8e-5ffc-4a50-8e8e-221fd08fba31","html_url":"https://github.com/wille-io/deno-srv","commit_stats":null,"previous_names":["wille-io/deno-srv"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wille-io/deno-srv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wille-io%2Fdeno-srv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wille-io%2Fdeno-srv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wille-io%2Fdeno-srv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wille-io%2Fdeno-srv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wille-io","download_url":"https://codeload.github.com/wille-io/deno-srv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wille-io%2Fdeno-srv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32980812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T11:31:52.688Z","status":"ssl_error","status_checked_at":"2026-05-13T11:31:52.072Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","denoland","https-server","webserver"],"created_at":"2024-11-11T17:14:04.415Z","updated_at":"2026-05-13T11:34:12.245Z","avatar_url":"https://github.com/wille-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-srv\n**World's first** Deno web server for multiple hosts.\n\n- Uses Deno's new, yet currently unofficial, sni callback!\n- Comes with automatic tls certificate request! (while auto-renew isn't there, yet - but will be included in the next release!)\n\nConfigure your web server in a language we all know and love: TypeScript.\n\nExample on how to host your own, automatically https secured static website with automatic http-to-https redirect:\n```typescript\nimport * as Srv from \"https://deno.land/x/srv@v0.3.0/srv.ts\"\n\nnew Srv.HttpsListener(\n  {\n    autoRedirectHttps: true,\n    hostHandlers:\n    [\n      new Srv.HostHandler(\"example.com\",\n        {\n          handlers:\n          [\n            new Srv.FileHandler(\"/var/www/\"),\n          ]\n        }\n      ),\n    ]\n  }\n);\n```\n\nWarning: This project is in active development (as of 19-Sep-24) and its api is subject to change at any time without prior warning.\n\n**Update:** Deno v1.45.3 and up do not contain the DoS bug from rustls-tokio-stream anymore!\n\n## Features\n- Automatically get one certificate per host\n- Fileserver\n- Reverse Proxy (socket.io websockets work, pure websockets do not yet)\n- Request Logging\n- Basic Auth\n- Redirect\n- Mark requests as forbidden\n- Add a default response function for unhandeled requests\n- Add default response headers to all responses\n- ... and many more\n\n## For people interested in Deno's new sni callback\n### How to run the sni callback test\n- Use Deno with version \u003e= v1.43.3\n- `deno run -A ./config.ts`\n- Finally visit https://localhost:8008/test.txt\n  - Note: You will receive a warning about an insecure certificate (because the certificate for 'localhost' is obviously self-signed)\n- Now visit https://127.0.0.1:8008/test.txt, which will give you an error as '127.0.0.1' non-sni connections are currently not handled properly and there is no certificate for the host '127.0.0.1'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwille-io%2Fdeno-srv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwille-io%2Fdeno-srv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwille-io%2Fdeno-srv/lists"}