{"id":37103282,"url":"https://github.com/squizzling/fetch","last_synced_at":"2026-01-14T12:30:32.925Z","repository":{"id":57568114,"uuid":"342173813","full_name":"squizzling/fetch","owner":"squizzling","description":"Basic web assembly wrapper over fetch API for golang","archived":false,"fork":false,"pushed_at":"2021-03-07T02:18:17.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:43:38.910Z","etag":null,"topics":["fetch","go","golang","http","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Go","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/squizzling.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}},"created_at":"2021-02-25T08:27:27.000Z","updated_at":"2021-03-07T02:18:09.000Z","dependencies_parsed_at":"2022-08-28T07:41:26.056Z","dependency_job_id":null,"html_url":"https://github.com/squizzling/fetch","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/squizzling/fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squizzling%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squizzling%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squizzling%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squizzling%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squizzling","download_url":"https://codeload.github.com/squizzling/fetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squizzling%2Ffetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["fetch","go","golang","http","webassembly"],"created_at":"2026-01-14T12:30:32.203Z","updated_at":"2026-01-14T12:30:32.881Z","avatar_url":"https://github.com/squizzling.png","language":"Go","readme":"## What\nThis project essentially rips out the key parts of net/http/roundtrip_js.go and puts\nthem in a dedicated package with a slightly different API.\n\n## Why\nThe purpose of this is a much reduced http client for webassembly.  By switching from\nnet/http to this, the resulting wasm file was approximately 4.2MB smaller.  Probably\nbecause it no longer included an entire TLS stack, along with http 1 and 2 client and\nservers.\n\n## Tests\nTests can be run by running `make test \u0026\u0026 ./testsvr` and opening a browser to port 9997.\n\nAs a non-web developer, I do not have the skill set to properly validate that all fetch\nbehavior works as expected, so the only tests are \"can it get\" and \"can it cancel\".\n\nThe `wasm_exec.js` for tests is badly minified by hand to make the total size of the JS\nsource code less than the total size of the Go source code, so that github won't detect\nthe project as JS.  It should not be used and exists only to support tests.  It may not\nwork in your browser.\n\n## License\nParts of this code are based on the original wasm based round tripper, and the reader\nimplementations are copied directly from the original, and put in their own file.  I\nhave zero interest in understanding what this means the license needs to be, but\nprobably the same as the go language itself?\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquizzling%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquizzling%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquizzling%2Ffetch/lists"}