agentch v0.5.2 is a lightweight HTTP request agent built on the Fetch API, written in TypeScript. It provides a minimal abstraction over fetch for making requests with support for interceptors, timeouts, and custom headers. Released under an MIT license, it is intended primarily for Node.js environments but can work in browsers that support fetch. The library is still in early development (0.x) with an unstable API and known missing features like race condition handling, caching, and retry logic. It differentiates from axios and superagent by relying entirely on the native fetch, thus having no dependencies, but this also means it lacks Node.js-specific features like HTTP/2 or agent handling currently. With weekly updates, it targets developers needing a tiny, typed fetch wrapper.
npm install agentchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an Agent instance with base URL, timeout, and custom headers, then performs a GET request with query parameters.
Pin to exact version in package.json (e.g., "agentch": "0.5.2") and review changelog before upgrading.
Use Node's undici or node-fetch polyfill and configure via fetch options if needed. The library does not expose a way to pass custom fetch implementation yet.
Currently no replacement; consider wrapping agent calls with retry logic from a library like 'p-retry' or 'retry-axios' and treat as temporary.
Always verify type assertions manually or use 'as' casts for response data if needed.
Run `npm install agentch` or ensure package.json includes "agentch": "^0.5.2" and run `npm install`.
Ensure you are using v0.5.2 and import correctly: `import { Agent } from 'agentch'`. Check your agentch version: `npm ls agentch`.Always provide a valid string for baseURL or omit it and pass full URLs in request methods.
No dependency data recorded yet.