{"id":15664794,"url":"https://github.com/erfanium/fastify-web-response","last_synced_at":"2025-10-10T05:46:56.312Z","repository":{"id":65490432,"uuid":"588445960","full_name":"erfanium/fastify-web-response","owner":"erfanium","description":"enables returning Response and ReadableStream as a result value in fastify routes","archived":false,"fork":false,"pushed_at":"2023-12-04T18:22:33.000Z","size":73,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T04:14:41.269Z","etag":null,"topics":["fastify","fastify-plugin","fetch-api","node"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/erfanium.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":"2023-01-13T06:12:13.000Z","updated_at":"2024-03-24T13:57:30.000Z","dependencies_parsed_at":"2023-12-04T19:53:22.667Z","dependency_job_id":null,"html_url":"https://github.com/erfanium/fastify-web-response","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"5de77b3750e37bf62a5ee54207d3f2b687367c89"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/erfanium/fastify-web-response","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-web-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-web-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-web-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-web-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erfanium","download_url":"https://codeload.github.com/erfanium/fastify-web-response/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-web-response/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002889,"owners_count":26083468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["fastify","fastify-plugin","fetch-api","node"],"created_at":"2024-10-03T13:44:10.803Z","updated_at":"2025-10-10T05:46:56.259Z","avatar_url":"https://github.com/erfanium.png","language":"TypeScript","readme":"# fastify-web-response\n\nenables returning `Response` and `ReadableStream` as a result value in fastify routes.  \nso this code will be work:\n\n```js\nimport fastify from \"fastify\"\nimport fastifyWebResponse from \"fastify-web-response\"\n\nconst app = fastify();\n\napp.register(fastifyWebResponse)\n\napp.route({\n  method: \"GET\",\n  url: \"/\",\n  handler() {\n    return fetch(\"https://example-api.com\");\n  }\n})\n\napp.listen({\n  port: 3000\n})\n```\n\nyou can also return ReadableStream\n\n```js\napp.route({\n  method: \"GET\",\n  url: \"/\",\n  async handler() {\n    const response = await fetch(\"https://example-api.com\");\n    return response.body;\n  }\n})\n```\n\n\n## Installation\n```sh\nnpm i fastify-web-response\n```\n\n## Experimental\n`fetch` api is experimental. I'll release the v1.0.0 of this module when it's stable\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-web-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfanium%2Ffastify-web-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-web-response/lists"}