Designed for developers building Node servers, Bun scripts, Deno apps, Cloudflare Workers, and Edge runtimes.
fetch-hooks-core brings the ergonomics of React hooks to any JavaScript environment — no framework required.
If you use fetch() often, this library gives you reactive data, retry logic, polling, and concurrency tools that feel instantly familiar.
fetch hooks, TypeScript fetch library, universal fetch utilities, Node fetch wrapper, Bun fetch, Deno fetch, fetch concurrency, fetch retry
| Feature | fetch-hooks-core | Ky | Axios |
|---|---|---|---|
| Universal runtime support | ✅ | ❌ | ❌ |
| Hook-style API | ✅ | ❌ | ❌ |
| Zero dependencies | ✅ | ❌ | ❌ |
| Concurrency control | ✅ | ❌ | ❌ |
| Polling helper | ✅ | ❌ | ❌ |
| Retry with exponential backoff | ✅ | ||
| TypeScript-first | ✅ |
npm install fetch-hooks-coreimport { useFetch } from 'fetch-hooks-core';
const { data, loading, error } = await useFetch('https://example.com');Reactive data wrapper for fetch.
Retries any async function automatically.
Polling with auto-stop.
Parallel queue processor.
import { useFetch, useRetry, useConcurrent } from 'fetch-hooks-core';
const api = await useFetch('https://api.example.com/data');
const retryFetch = useRetry(() => fetch('https://api.com/retry'), { retries: 5 });
const { results } = await useConcurrent([() => fetch('/a'), () => fetch('/b')], { concurrency: 2 });If you find this useful, star the repo and share it.
GitHub: https://github.com/felaur/fetch-hooks-core
npm: https://npmjs.com/package/fetch-hooks-core