{"library":"ofetch","type":"library","category":null,"description":"ofetch is a modern, cross-platform HTTP client that provides a simplified, \"better fetch API\" for Node.js, browsers, and web workers. It intelligently handles request and response parsing, automatically stringifying JSON bodies and parsing responses using `destr` for robustness. Key features include automatic error throwing with detailed `FetchError` objects, built-in retry mechanisms for transient network issues and specific status codes, and seamless handling of binary and stream responses. The current stable version is 1.5.1, with a major v2.0.0 release in alpha that will transition to an ESM-only architecture, remove external dependencies, and further reduce bundle size. ofetch differentiates itself by offering a consistent, feature-rich `fetch` experience across diverse JavaScript environments, abstracting away common boilerplate and error handling patterns.","language":"javascript","status":"active","version":"1.5.1","tags":["javascript","typescript"],"install":[{"cmd":"npm install ofetch","imports":["import { ofetch } from 'ofetch'","import type { FetchError } from 'ofetch'","import { createFetch } from 'ofetch'"]},{"cmd":"yarn add ofetch","imports":[]},{"cmd":"pnpm add ofetch","imports":[]}],"homepage":"https://unjs.io","github":"https://github.com/unjs/ofetch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ofetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ofetch/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}