{"id":50381926,"url":"https://github.com/benoitc/livery","last_synced_at":"2026-05-30T12:30:36.919Z","repository":{"id":359524241,"uuid":"1165718710","full_name":"benoitc/livery","owner":"benoitc","description":"High-performance HTTP/1.1, HTTP/2, HTTP/3 server for Erlang/OTP 27+","archived":false,"fork":false,"pushed_at":"2026-05-29T23:12:51.000Z","size":735,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T01:06:35.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benoitc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-24T13:22:59.000Z","updated_at":"2026-05-29T17:16:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/benoitc/livery","commit_stats":null,"previous_names":["benoitc/livery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benoitc/livery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Flivery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Flivery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Flivery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Flivery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benoitc","download_url":"https://codeload.github.com/benoitc/livery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitc%2Flivery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33692997,"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-05-30T02:00:06.278Z","response_time":92,"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":[],"created_at":"2026-05-30T12:30:36.337Z","updated_at":"2026-05-30T12:30:36.897Z","avatar_url":"https://github.com/benoitc.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"site/assets/livery-mark.svg\" alt=\"Livery\" width=\"96\" height=\"96\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eLivery\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  One handler set. Every version of HTTP.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://benoitc.github.io/livery/\"\u003eWebsite\u003c/a\u003e ·\n  \u003ca href=\"https://benoitc.github.io/livery/api/index.html\"\u003eDocs\u003c/a\u003e ·\n  \u003ca href=\"docs/design.md\"\u003eDesign\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nLivery is a BEAM-native web framework that serves the same router and\nmiddleware over **HTTP/1.1, HTTP/2, and HTTP/3** from a single\nruntime. WebSocket, WebTransport, Server-Sent Events, OpenAPI, MCP,\nand OpenTelemetry-style observability are built-in modules. It is\nwritten in the spirit of Axum + Tower + Hyper, on Erlang/OTP.\n\n```erlang\nRouter = livery_router:compile([\n    {\u003c\u003c\"GET\"\u003e\u003e, \u003c\u003c\"/\"\u003e\u003e, fun(_Req) -\u003e\n        livery_resp:text(200, \u003c\u003c\"hello from livery\"\u003e\u003e)\n    end},\n    {\u003c\u003c\"GET\"\u003e\u003e, \u003c\u003c\"/users/:id\"\u003e\u003e, {users, show}}\n]),\n\nlivery:start_service(#{\n    http  =\u003e #{port =\u003e 80, redirect =\u003e https},\n    https =\u003e #{port =\u003e 443, cert =\u003e Cert, key =\u003e Key, alpn =\u003e [h2, http1]},\n    http3 =\u003e #{port =\u003e 443, cert =\u003e Cert, key =\u003e Key},\n    router =\u003e Router,\n    middleware =\u003e [{livery_request_id, undefined}, {livery_access_log, #{}}],\n    alt_svc =\u003e advertise\n}).\n```\n\n## Install\n\n```erlang\n%% rebar.config\n{deps, [{livery, {git, \"https://github.com/benoitc/livery.git\", {branch, \"main\"}}}]}.\n```\n\n## Features\n\n- **One handler, three wires** — write a handler once; serve it over\n  H1, H2, and H3 with shared routing, middleware, and Alt-Svc upgrade.\n- **Tower-style middleware** — value-based `call(Req, Next, State)`\n  pipelines, composable per service or per route.\n- **Streaming** — chunked, SSE, NDJSON, WebSocket and WebTransport\n  over H2/H3, and file responses with byte ranges.\n- **OpenAPI** — generate a 3.1 document from routes, serve Redoc or\n  Swagger UI, and validate request bodies against a JSON-Schema subset.\n- **MCP** — serve the Model Context Protocol Streamable HTTP transport\n  on the main listener.\n- **Observability \u0026 auth** — OpenTelemetry-style traces/metrics,\n  trace-correlated logs, JWT/JWKS/OIDC, signed sessions, introspection.\n\n## Documentation\n\nFull guides, tutorials, and the generated API reference live at\n**\u003chttps://benoitc.github.io/livery/\u003e**. For contributors, see\n[AGENTS.md](AGENTS.md).\n\n## License\n\nApache-2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitc%2Flivery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitc%2Flivery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitc%2Flivery/lists"}