{"id":16717325,"url":"https://github.com/glennsl/rescript-fetch","last_synced_at":"2026-01-27T00:37:15.401Z","repository":{"id":56743545,"uuid":"522043639","full_name":"glennsl/rescript-fetch","owner":"glennsl","description":"Zero-cost rescript bindings to the WHATWG Fetch API","archived":false,"fork":false,"pushed_at":"2024-11-30T08:52:58.000Z","size":39,"stargazers_count":61,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T16:10:06.109Z","etag":null,"topics":["fetch","rescript"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/glennsl.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-08-06T20:08:23.000Z","updated_at":"2025-09-21T16:41:28.000Z","dependencies_parsed_at":"2024-12-14T08:31:50.337Z","dependency_job_id":"a67e4731-5ec8-4074-835c-158d8c52c6a1","html_url":"https://github.com/glennsl/rescript-fetch","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.08823529411764708,"last_synced_commit":"39d7a930120287447fe2e4b1f8bf6159817e270b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/glennsl/rescript-fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennsl%2Frescript-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennsl%2Frescript-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennsl%2Frescript-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennsl%2Frescript-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glennsl","download_url":"https://codeload.github.com/glennsl/rescript-fetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennsl%2Frescript-fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28793857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["fetch","rescript"],"created_at":"2024-10-12T21:31:29.292Z","updated_at":"2026-01-27T00:37:15.387Z","avatar_url":"https://github.com/glennsl.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rescript-fetch\nZero-cost rescript bindings to the WHATWG Fetch API\n\n[![npm](https://img.shields.io/npm/v/@glennsl/rescript-fetch.svg)](https://npmjs.org/@glennsl/rescript-fetch)\n[![Issues](https://img.shields.io/github/issues/glennsl/rescript-fetch.svg)](https://github.com/glennsl/rescript-fetch/issues)\n[![Last Commit](https://img.shields.io/github/last-commit/glennsl/rescript-fetch.svg)](https://github.com/glennsl/rescript-fetch/commits/master)\n\n\n## Example\n\n```rescript\nlet postBanana = async data =\u003e {\n  open Fetch\n\n  let response = await fetch(\n    \"/api/bananas\",\n    {\n      method: #POST,\n      body: data-\u003eJs.Json.stringifyAny-\u003eBelt.Option.getExn-\u003eBody.string,\n      headers: Headers.fromObject({\n        \"Content-type\": \"application/json\",\n      }),\n    },\n  )\n\n  await response-\u003eResponse.json\n}\n```\n\nSee [examples](https://github.com/glennsl/rescript-fetch/blob/master/examples/) for more.\n\n\n## Installation\n\n```sh\nnpm install --save @glennsl/rescript-fetch\n```\n\nThen add `@glennsl/rescript-fetch` to `bs-dependencies` in your `bsconfig.json`:\n\n```diff\n {\n   \"bs-dependencies\": [\n+    \"@glennsl/rescript-fetch\"\n   ]\n }\n```\n\n## Documentation\n\n### API\n\nFor the moment, please see the interface file:\n\n* [Fetch](https://github.com/glennsl/rescript-fetch/blob/master/src/Fetch.res)\n\n\n## Changes\n\n### 0.2.3\n\n* Added `Headers.getSetCookie`\n\n### 0.2.2\n\n* Fixed typo in `Request.credentials` binding.\n\n### 0.2.1\n\n* Fleshed out `AbortSignal` bindings.\n\n### 0.2.0\n\n* [BREAKING] Updated required minimum version of rescript to 10.1.2 in order to use the new promise type alias and async/await.\n* Removed `@ryyppy/rescript-promise` dependency.\n\n### 0.1.0\nInitial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglennsl%2Frescript-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglennsl%2Frescript-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglennsl%2Frescript-fetch/lists"}