{"id":51691411,"url":"https://github.com/ericsssan/zhttp3","last_synced_at":"2026-07-16T02:34:00.856Z","repository":{"id":340415305,"uuid":"1165951556","full_name":"ericsssan/zhttp3","owner":"ericsssan","description":"HTTP/3 framing, QPACK header compression, and an opinionated server layer in Zig","archived":false,"fork":false,"pushed_at":"2026-02-25T02:52:03.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-16T02:33:59.923Z","etag":null,"topics":["http3","networking","qpack","quic","server","zig"],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/ericsssan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-02-24T18:09:20.000Z","updated_at":"2026-06-14T14:37:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ericsssan/zhttp3","commit_stats":null,"previous_names":["ericsssan/zhttp3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericsssan/zhttp3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsssan%2Fzhttp3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsssan%2Fzhttp3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsssan%2Fzhttp3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsssan%2Fzhttp3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericsssan","download_url":"https://codeload.github.com/ericsssan/zhttp3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsssan%2Fzhttp3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35528482,"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-07-16T02:00:06.687Z","response_time":83,"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":["http3","networking","qpack","quic","server","zig"],"created_at":"2026-07-16T02:34:00.246Z","updated_at":"2026-07-16T02:34:00.849Z","avatar_url":"https://github.com/ericsssan.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zhttp3\n\nHTTP/3 framing, QPACK header compression, and an opinionated server layer,\nbuilt on [zquic](https://github.com/ericsssan/zquic).\n\n\u003e **Status: pre-release / active development.** Phases 1–5 complete.\n\u003e Not ready for production use.\n\n---\n\n## Overview\n\nzhttp3 implements the application layer of the HTTP/3 stack:\n\n```\n┌──────────────────────────────────────────────────────┐\n│  src/server/   Handler(Request, Response)            │  ← protocol-agnostic\n│                comptime router, middleware, C API    │\n├──────────────────────────────────────────────────────┤\n│  src/http3/    HTTP/3 framing          RFC 9114      │  ← translates between\n│  src/qpack/    QPACK                   RFC 9204      │    wire and HTTP types\n├──────────────────────────────────────────────────────┤\n│  zquic         QUIC transport          RFC 9000      │  ← separate library\n└──────────────────────────────────────────────────────┘\n```\n\nHandlers are protocol-agnostic — they only see `Request` and `Response`.\nNo frame types, stream IDs, or QPACK state ever reaches handler code.\n\n---\n\n## Goals\n\n- RFC-correct QPACK (RFC 9204) and HTTP/3 (RFC 9114) implementation in pure Zig\n- Zero allocation in the hot path (pre-allocated buffers throughout)\n- Comptime router with perfect hash — no runtime dispatch\n- Pluggable handler ABI: Zig native, C/C++/Rust via `.so`, or WASM via wasmtime\n- Designed for modern hardware (AES-NI, io_uring) via the underlying zquic transport\n\n---\n\n## Usage\n\n### Zig\n\n`build.zig.zon`:\n```zig\n.dependencies = .{\n    .zhttp3 = .{\n        .url = \"https://github.com/ericsssan/zhttp3/archive/refs/tags/v0.1.0.tar.gz\",\n        .hash = \"...\",\n    },\n},\n```\n\n`build.zig`:\n```zig\n// Full server\nexe.root_module.addImport(\"zhttp3\", b.dependency(\"zhttp3\", .{}).module(\"server\"));\n\n// HTTP/3 framing + QPACK only\nexe.root_module.addImport(\"http3\", b.dependency(\"zhttp3\", .{}).module(\"http3\"));\n```\n\n### C / C++\n\n```sh\n# Build produces libzhttp3.a and libzhttp3.so\n# Include: include/zhttp3.h\n# Link: -lzhttp3 -lzquic\n```\n\n---\n\n## Roadmap\n\n| Phase | Scope | Status |\n|-------|-------|--------|\n| 1 | QPACK — static table, Huffman, integer/string encoding, encoder/decoder | ✅ Done |\n| 2 | HTTP/3 framing — DATA, HEADERS, SETTINGS, GOAWAY, control streams | ✅ Done |\n| 3 | Server layer — comptime router, handler interface, middleware | ✅ Done |\n| 4 | Server push + graceful shutdown — PUSH_PROMISE, push streams, GOAWAY state machine | ✅ Done |\n| 5 | Connection layer — QPACK + framing + server dispatch wired into a single Connection type | ✅ Done |\n\n---\n\n## Development\n\nRequirements: Zig master (`0.16.0-dev` or later).\n\n```sh\ngit clone https://github.com/ericsssan/zhttp3.git\ncd zhttp3\nzig build test\n```\n\n---\n\n## Architecture\n\nSee [DESIGN.md](DESIGN.md) for the full design document.\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsssan%2Fzhttp3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsssan%2Fzhttp3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsssan%2Fzhttp3/lists"}