bs-fetch

JSON →
library 0.6.2 ·javascript maintenance
verified Jun 7, 2026

Low-level OCaml/ReasonML bindings to the Fetch API for BuckleScript (Belt/bs-platform). Current stable version is 0.6.2, last released in 2019. The package provides thin, type-safe bindings to fetch, Response, Headers, Request, AbortController, and FormData. It targets BuckleScript 5+ and is intended as a foundation for higher-level libraries. Unlike many other fetch bindings, it follows the ML naming conventions (e.g., `Response.type_` instead of `Response._type`) and requires a polyfill in Node.js. The package is no longer actively maintained; users should consider migrating to newer solutions like `promise-fetch` or direct `Js.Promise` + `fetch`.