{"id":39584611,"url":"https://github.com/lalinsky/dusty","last_synced_at":"2026-02-09T13:23:51.049Z","repository":{"id":322065465,"uuid":"1088044770","full_name":"lalinsky/dusty","owner":"lalinsky","description":"HTTP client/server library for Zig","archived":false,"fork":false,"pushed_at":"2026-02-01T18:44:39.000Z","size":205,"stargazers_count":55,"open_issues_count":5,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-02T03:09:12.284Z","etag":null,"topics":["zig-package"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lalinsky.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-02T07:22:44.000Z","updated_at":"2026-02-02T01:51:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lalinsky/dusty","commit_stats":null,"previous_names":["lalinsky/dusty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lalinsky/dusty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalinsky%2Fdusty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalinsky%2Fdusty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalinsky%2Fdusty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalinsky%2Fdusty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalinsky","download_url":"https://codeload.github.com/lalinsky/dusty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalinsky%2Fdusty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29266579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T12:53:16.161Z","status":"ssl_error","status_checked_at":"2026-02-09T12:52:30.244Z","response_time":56,"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":["zig-package"],"created_at":"2026-01-18T07:35:27.091Z","updated_at":"2026-02-09T13:23:51.037Z","avatar_url":"https://github.com/lalinsky.png","language":"C","funding_links":[],"categories":["\u003ca name=\"C\"\u003e\u003c/a\u003eC"],"sub_categories":[],"readme":"Dusty is a HTTP client/server library built on top of [zio](https://github.com/lalinsky/zio) (coroutine/async engine) and [llhttp](https://github.com/nodejs/llhttp) (HTTP parser from NodeJS).\nThe server API is inspired by Karl Seguin's [http.zig](https://github.com/karlseguin/http.zig), and tries to be as compatible as possible. By using a coroutine scheduler under the hood, it's very easy to efficiently wait for a HTTP client request in a HTTP server handler, or perhaps have a long-runing WebSocket session and don't worry about state management between callbacks.\n\n## Features\n- Asynchronous I/O for multiple concurrent connections on a single CPU thread\n- Requests handled in lightweight coroutines\n- Router with support for parameters and wildcards\n- Supports HTTP/1.0 and HTTP/1.1\n- Supports chunked transfer encoding in both request/response bodies\n- Server-Sent Events (SSE) for streaming responses\n- WebSocket support (RFC 6455)\n- Request/keepalive timeouts via coroutine auto-cancellation\n- HTTP/HTTPS client with connection pooling\n\n## Server Example\n\n```zig\nconst std = @import(\"std\");\nconst zio = @import(\"zio\");\nconst http = @import(\"dusty\");\n\nfn handleUser(req: *http.Request, res: *http.Response) !void {\n    const user_id = req.params.get(\"id\") orelse \"guest\";\n    try res.json(.{ .id = user_id, .name = \"John Doe\" }, .{});\n}\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var rt = try zio.Runtime.init(allocator, .{});\n    defer rt.deinit();\n\n    var server = http.Server(void).init(allocator, .{}, {});\n    defer server.deinit();\n\n    server.router.get(\"/user/:id\", handleUser);\n\n    const addr = try zio.net.IpAddress.parseIp(\"127.0.0.1\", 8080);\n    try server.listen(addr);\n}\n```\n\n## Client Example\n\n```zig\nconst std = @import(\"std\");\nconst zio = @import(\"zio\");\nconst http = @import(\"dusty\");\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var rt = try zio.Runtime.init(allocator, .{});\n    defer rt.deinit();\n\n    var client = http.Client.init(allocator, .{});\n    defer client.deinit();\n\n    var response = try client.fetch(\"http://httpbin.org/get\", .{});\n    defer response.deinit();\n\n    std.debug.print(\"Status: {t}\\n\", .{response.status()});\n\n    if (try response.body()) |body| {\n        std.debug.print(\"Body: {s}\\n\", .{body});\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalinsky%2Fdusty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalinsky%2Fdusty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalinsky%2Fdusty/lists"}