{"id":33340016,"url":"https://github.com/devforgetech/fetch-hooks-core","last_synced_at":"2025-11-21T12:01:50.015Z","repository":{"id":325435426,"uuid":"1101160558","full_name":"devforgetech/fetch-hooks-core","owner":"devforgetech","description":"Universal React-style hooks for fetch() — works in Node, Bun, Deno, Cloudflare Workers, and edge runtimes. Tiny, dependency-free, TypeScript-first.","archived":false,"fork":false,"pushed_at":"2025-11-21T11:09:57.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T11:23:11.487Z","etag":null,"topics":["bun","cloudflare-workers","deno","edge-runtime","fetch","hooks","http","javascript","nodejs","npm-library","opensource","request","signals","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fetch-hooks-core","language":"TypeScript","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/devforgetech.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-21T09:27:30.000Z","updated_at":"2025-11-21T11:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devforgetech/fetch-hooks-core","commit_stats":null,"previous_names":["devforgetech/fetch-hooks-core"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devforgetech/fetch-hooks-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforgetech%2Ffetch-hooks-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforgetech%2Ffetch-hooks-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforgetech%2Ffetch-hooks-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforgetech%2Ffetch-hooks-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devforgetech","download_url":"https://codeload.github.com/devforgetech/fetch-hooks-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforgetech%2Ffetch-hooks-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285611836,"owners_count":27201484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun","cloudflare-workers","deno","edge-runtime","fetch","hooks","http","javascript","nodejs","npm-library","opensource","request","signals","typescript"],"created_at":"2025-11-21T12:00:28.084Z","updated_at":"2025-11-21T12:01:50.007Z","avatar_url":"https://github.com/devforgetech.png","language":"TypeScript","readme":"# fetch-hooks-core\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./logo.svg\" width=\"65%\"\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003eThe Modern Fetch Utility Library for JavaScript — Tiny, Typed, Universal\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  Designed for developers building \u003cstrong\u003eNode servers\u003c/strong\u003e, \u003cstrong\u003eBun scripts\u003c/strong\u003e, \n  \u003cstrong\u003eDeno apps\u003c/strong\u003e, \u003cstrong\u003eCloudflare Workers\u003c/strong\u003e, and \u003cstrong\u003eEdge runtimes\u003c/strong\u003e.\n\u003c/p\u003e\n\n---\n\n# 🚀 Introduction\n\n`fetch-hooks-core` brings the ergonomics of React hooks to any JavaScript environment — no framework required.  \nIf you use `fetch()` often, this library gives you **reactive data**, **retry logic**, **polling**, and **concurrency tools** that feel instantly familiar.\n\n### SEO Keywords:\n\nfetch hooks, TypeScript fetch library, universal fetch utilities, Node fetch wrapper, Bun fetch, Deno fetch, fetch concurrency, fetch retry\n\n---\n\n# ✨ Feature Matrix\n\n| Feature                        | fetch-hooks-core | Ky         | Axios     |\n| ------------------------------ | ---------------- | ---------- | --------- |\n| Universal runtime support      | ✅               | ❌         | ❌        |\n| Hook-style API                 | ✅               | ❌         | ❌        |\n| Zero dependencies              | ✅               | ❌         | ❌        |\n| Concurrency control            | ✅               | ❌         | ❌        |\n| Polling helper                 | ✅               | ❌         | ❌        |\n| Retry with exponential backoff | ✅               | ⚠️ limited | ⚠️ plugin |\n| TypeScript-first               | ✅               | ⚠️         | ⚠️        |\n\n---\n\n# 📦 Installation\n\n```bash\nnpm install fetch-hooks-core\n```\n\n---\n\n# 🧭 Quick Example\n\n```ts\nimport { useFetch } from 'fetch-hooks-core';\n\nconst { data, loading, error } = await useFetch('https://example.com');\n```\n\n---\n\n# 🧠 API Documentation\n\n## useFetch()\n\nReactive data wrapper for fetch.\n\n## useRetry()\n\nRetries any async function automatically.\n\n## usePoll()\n\nPolling with auto-stop.\n\n## useConcurrent()\n\nParallel queue processor.\n\n---\n\n# 🛠️ Advanced Example (Premium)\n\n```ts\nimport { useFetch, useRetry, useConcurrent } from 'fetch-hooks-core';\n\nconst api = await useFetch('https://api.example.com/data');\nconst retryFetch = useRetry(() =\u003e fetch('https://api.com/retry'), { retries: 5 });\nconst { results } = await useConcurrent([() =\u003e fetch('/a'), () =\u003e fetch('/b')], { concurrency: 2 });\n```\n\n---\n\n# ❤️ Community\n\nIf you find this useful, star the repo and share it.\n\n# 📎 Links\n\nGitHub: https://github.com/devforgetech/fetch-hooks-core  \nnpm: https://npmjs.com/package/fetch-hooks-core\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforgetech%2Ffetch-hooks-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevforgetech%2Ffetch-hooks-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforgetech%2Ffetch-hooks-core/lists"}