{"id":15388661,"url":"https://github.com/petermikitsh/http-stream-examples","last_synced_at":"2026-05-18T00:04:47.875Z","repository":{"id":150553061,"uuid":"172434508","full_name":"petermikitsh/http-stream-examples","owner":"petermikitsh","description":"Examples demonstrating the use of NodeJS streams with HTTP","archived":false,"fork":false,"pushed_at":"2019-02-25T08:27:15.000Z","size":382,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T11:52:12.772Z","etag":null,"topics":["http","nodejs","stream"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/petermikitsh.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}},"created_at":"2019-02-25T04:32:03.000Z","updated_at":"2019-02-25T08:27:17.000Z","dependencies_parsed_at":"2023-04-30T23:03:10.042Z","dependency_job_id":null,"html_url":"https://github.com/petermikitsh/http-stream-examples","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"b807349f59cb11cec2e4f8e59c0e0a0101a76469"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petermikitsh/http-stream-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fhttp-stream-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fhttp-stream-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fhttp-stream-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fhttp-stream-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petermikitsh","download_url":"https://codeload.github.com/petermikitsh/http-stream-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fhttp-stream-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"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":["http","nodejs","stream"],"created_at":"2024-10-01T14:57:55.775Z","updated_at":"2026-05-18T00:04:42.868Z","avatar_url":"https://github.com/petermikitsh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-stream\n\nExamples demonstrating the use of NodeJS streams with HTTP.\n\n## Why streams?\n\nStreams are useful when dealing with large quantities of data and properly managing an application's memory footprint.\n\n## Examples\n\n`GET /ttfb`\n\nThis shows how streams and TTFB (time to first byte) / TTLB (time to last byte) are related.\n\nAfter ~1000ms, the first byte is sent. And at ~5000ms, the last byte is sent.\n\n![HTTP GET /ttfb](ttfb.gif)\n\n![HTTP GET /ttfb](ttfb.png)\n\n`GET /html`\n\nThis shows how browsers handles a streaming DOM. Notice how the `title`, `body` and end of the document are progressively displayed. (Note: this browser behavior varies).\n\n![HTTP GET /html](html.gif)\n\n`GET /users`\n\nThis endpoint demonstrates how to consume a paginated JSON api and convert it to CSV using streams and piping.\n\nView the comments in the code for more details on how it works.\n\n![HTTP GET /users](users.gif)\n\n## Developing\n\n```\nnpm install\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermikitsh%2Fhttp-stream-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermikitsh%2Fhttp-stream-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermikitsh%2Fhttp-stream-examples/lists"}