{"id":9243505,"url":"https://github.com/rowtype-yoga/purescript-fetch","last_synced_at":"2026-01-18T17:33:56.144Z","repository":{"id":57149915,"uuid":"524208317","full_name":"rowtype-yoga/purescript-fetch","owner":"rowtype-yoga","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-13T02:42:48.000Z","size":83,"stargazers_count":26,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-17T07:32:21.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rowtype-yoga.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2022-08-12T19:52:07.000Z","updated_at":"2025-07-03T06:28:41.000Z","dependencies_parsed_at":"2023-11-16T13:46:33.250Z","dependency_job_id":"1e996580-4594-4855-983e-f3958d928fc0","html_url":"https://github.com/rowtype-yoga/purescript-fetch","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/rowtype-yoga/purescript-fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rowtype-yoga","download_url":"https://codeload.github.com/rowtype-yoga/purescript-fetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28544925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"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":[],"created_at":"2024-05-08T00:09:42.397Z","updated_at":"2026-01-18T17:33:56.127Z","avatar_url":"https://github.com/rowtype-yoga.png","language":"PureScript","funding_links":[],"categories":["PureScript","Http"],"sub_categories":["Http client"],"readme":"# purescript-fetch\n\nHigh-level library for the [WHATWG Fetch Living Standard](https://fetch.spec.whatwg.org/).\n\n`purescript-fetch` works on browser and Node.js. \nRunning on Node.js requires version `\u003e17.5`, see [# Usage](#usage).\n\n## Installation\n\n```bash\nspago install fetch\n```\n\n## Usage\n\n**Note:** \nNode.js `\u003c17.5` is not supported.\nNode.js `\u003e=17.5` and `\u003c18.0` requires the `--experimental-fetch` node options:\n```bash\nNODE_OPTIONS=--experimental-fetch spago run\n```\nNode.js `\u003e=18.0` you don't need to set the `--experimental-fetch` node option.\n\nPerform a simple `GET` request:\n```purescript\nfetch \"https://httpbin.org/get\" {} \u003e\u003e= _.text\n```\n\nPerform a `POST` request:\n```purescript\ndo\n    { status, text } \u003c- fetch \"https://httpbin.org/post\"\n        { method: POST\n        , body: \"\"\"{\"hello\":\"world\"}\"\"\"\n        , headers: { \"Content-Type\": \"application/json\" }\n        }\n    responseText \u003c- text\n```\n\n### Json parsing\n\n`fetch` works well with `yoga-json` and `argonaut`, use our little helper libraries.\n\n\n### yoga-json\n\n```bash\nspago install fetch-yoga-json\n```\n\n```purescript\ntype HttpBinResponse = { json :: { hello :: String } }\n\nmain :: Effect Unit\nmain = launchAff_ do\n  { json } \u003c- fetch \"https://httpbin.org/post\"\n    { method: POST\n    , body: writeJSON { hello: \"world\" }\n    , headers: { \"Content-Type\": \"application/json\" }\n    }\n  { json: { hello: world } } :: HttpBinResponse \u003c- fromJSON json\n  log world\n```\n\n### argonaut\n\n```bash\nspago install fetch-argonaut\n```\n\n```purescript\ntype HttpBinResponse = { json :: { hello :: String } }\n\ndo\n  { json } \u003c- fetch \"https://httpbin.org/post\"\n    { method: POST\n    , body: toJsonString { hello: \"world\" }\n    , headers: { \"Content-Type\": \"application/json\" }\n    }\n  { json: { hello: world } } :: HttpBinResponse \u003c- fromJson json\n  log world\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frowtype-yoga%2Fpurescript-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frowtype-yoga%2Fpurescript-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frowtype-yoga%2Fpurescript-fetch/lists"}