{"id":24784416,"url":"https://github.com/humbertodias/node-http-vs123","last_synced_at":"2026-02-27T06:06:21.969Z","repository":{"id":133698933,"uuid":"61396031","full_name":"humbertodias/node-http-vs123","owner":"humbertodias","description":"Node app to compare http 1 vs 2 vs 3 protocol.","archived":false,"fork":false,"pushed_at":"2025-02-02T20:32:04.000Z","size":5224,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-23T08:59:44.373Z","etag":null,"topics":["http","http2","http3","nodejs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/humbertodias.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}},"created_at":"2016-06-17T19:00:03.000Z","updated_at":"2025-02-02T20:32:07.000Z","dependencies_parsed_at":"2024-02-07T06:31:04.681Z","dependency_job_id":"2afc9664-7075-4f0f-aad1-f2e0955050fd","html_url":"https://github.com/humbertodias/node-http-vs123","commit_stats":null,"previous_names":["humbertodias/node-http-vs123","humbertodias/node-http-1-vs-2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/humbertodias/node-http-vs123","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humbertodias%2Fnode-http-vs123","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humbertodias%2Fnode-http-vs123/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humbertodias%2Fnode-http-vs123/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humbertodias%2Fnode-http-vs123/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humbertodias","download_url":"https://codeload.github.com/humbertodias/node-http-vs123/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humbertodias%2Fnode-http-vs123/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29887018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T05:38:26.446Z","status":"ssl_error","status_checked_at":"2026-02-27T05:38:25.235Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["http","http2","http3","nodejs"],"created_at":"2025-01-29T13:14:29.624Z","updated_at":"2026-02-27T06:06:21.956Z","avatar_url":"https://github.com/humbertodias.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP 1 vs 2 vs 3\n\nNode app to compare http 1 vs 2 vs 3 protocol.\n\n```mermaid\ngraph TD;\n    A[http1] --\u003e|:3001| D{gateway};\n    B[http2] --\u003e|:3002| D;\n    C[http3] --\u003e|:3003| D;\n    D \u003c---\u003e |:3000| E[Browser];\n```\n\n## Prerequisites\n\n1. [Docker](https://www.docker.com) 25+\n2. make\n\n## Running\n\n```shell\nmake run\n```\n\nAccess the gateway: http://localhost:3000\n\n## Result\n\n![](doc/compare.gif)\n\nhttp/2 spent 223/48 = **4.66x** less bytes than http/1 response.\n\n\n| Protocol      | Size          | Time  |\n| ------------- |:-------------:| -----:|\n| http/1        | 223B          | 25ms  |\n| http/2        | 48B           | 21ms  |\n| http/3        | 44B           | 20ms  |\n\n\n\u003e [!NOTE]  \n\u003e The original image [nodejs.png](img/nodejs.png) has 512x512 and each tile was cropped as 16x16\n\n\n## References\n\n1. [Easy HTTP/2 Server with Node.js and Express.js](https://webapplog.com/http2-node/)\n2. [As-fantasticas-novidades-do-http-2-0-e-do-spdy](http://blog.caelum.com.br/as-fantasticas-novidades-do-http-2-0-e-do-spdy/)\n3. [http-2-with-node-js](https://medium.com/@imjacobclark/http-2-with-node-js-85da17322812#.uhmkvr54u)\n4. [http2-curl-macosx](https://simonecarletti.com/blog/2016/01/http2-curl-macosx/)\n5. [h3](https://github.com/unjs/h3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumbertodias%2Fnode-http-vs123","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumbertodias%2Fnode-http-vs123","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumbertodias%2Fnode-http-vs123/lists"}