{"id":37828717,"url":"https://github.com/divyam234/feaxios","last_synced_at":"2026-01-16T15:47:22.445Z","repository":{"id":222517427,"uuid":"757120678","full_name":"divyam234/feaxios","owner":"divyam234","description":"feaxios tiny  2KB fetch wrapper of  axios","archived":false,"fork":false,"pushed_at":"2024-10-06T21:17:13.000Z","size":240,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-09T06:16:04.212Z","etag":null,"topics":["axios","cloudflare-workers","fetch","fetch-api","nextjs","serverless"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divyam234.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}},"created_at":"2024-02-13T21:03:55.000Z","updated_at":"2025-08-01T23:32:34.000Z","dependencies_parsed_at":"2024-04-01T22:25:05.626Z","dependency_job_id":null,"html_url":"https://github.com/divyam234/feaxios","commit_stats":null,"previous_names":["divyam234/feaxios"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divyam234/feaxios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyam234%2Ffeaxios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyam234%2Ffeaxios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyam234%2Ffeaxios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyam234%2Ffeaxios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyam234","download_url":"https://codeload.github.com/divyam234/feaxios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyam234%2Ffeaxios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["axios","cloudflare-workers","fetch","fetch-api","nextjs","serverless"],"created_at":"2026-01-16T15:47:22.255Z","updated_at":"2026-01-16T15:47:22.422Z","avatar_url":"https://github.com/divyam234.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feaxios\n![bundlejs](https://deno.bundlejs.com/badge?q=feaxios)\n\n`feaxios` is a lightweight alternative to **Axios**, providing the same familiar API with a significantly reduced footprint of **2KB**. It leverages the native `fetch()` API supported in all modern browsers, delivering a performant and minimalistic solution. This makes it an ideal choice for projects where minimizing bundle size is a priority.\n\n### Key Features\n\n- **Lightweight:** With a size of less than 1/5th of Axios, `feaxios` is an efficient choice for projects with strict size constraints.\n\n- **Native Fetch API:** Utilizes the browser's native fetch, ensuring broad compatibility and seamless integration with modern web development tools.\n\n- **Interceptor Support:** `feaxios` supports interceptors, allowing you to customize and augment the request and response handling process.\n\n- **Timeouts:** Easily configure timeouts for requests, ensuring your application remains responsive and resilient.\n\n- **Retries:** Axios retry package is integrated with feaxios.\n\n\n### When to Use feaxios\n\nWhile [Axios] remains an excellent module, `feaxios` provides a compelling option in scenarios where minimizing dependencies is crucial. By offering a similar API to Axios, `feaxios` bridges the gap between Axios and the native `fetch()` API.\n\n```sh\nnpm install feaxios\n```\n\n**_Request Config_**\n\n```ts\n{\n\nurl: '/user',\n\nmethod: 'get', // default\n\nbaseURL: 'https://some-domain.com/api/',\n\ntransformRequest: [function (data, headers) {\n  return data;\n}],\n\ntransformResponse: [function (data) {\n\n    return data;\n}],\n\nheaders: {'test': 'test'},\n\nparams: {\n    ID: 12345\n},\n\n paramsSerializer: {\n\n    encode?: (param: string): string =\u003e {},\n\n    serialize?: (params: Record\u003cstring, any\u003e, options?: ParamsSerializerOptions ),\n\n    indexes: false\n  },\n\n  data: {},\n\n  timeout: 1000, // default is 0ms\n\n  withCredentials: false,\n\n  responseType: 'json', // default\n\n  validateStatus: function (status) {\n    return status \u003e= 200 \u0026\u0026 status \u003c 300;\n  },\n\n  signal: new AbortController().signal,\n\n  fetchOptions:  {\n     redirect: \"follow\"\n  },\n retry: { retries: 3 }\n```\n\n**In fetchOptions you can pass custom options like proxy , agents etc supported on nodejs**\n\n### Usage\n\n```js\nimport axios from \"feaxios\";\n\naxios\n  .get(\"https://api.example.com/data\")\n  .then((response) =\u003e {\n    // Handle the response\n    console.log(response.data);\n  })\n  .catch((error) =\u003e {\n    // Handle errors\n    console.error(error);\n  });\n```\n\n**_With Interceptors_**\n\n```js\nimport axios from \"feaxios\";\n\naxios.interceptors.request.use((config) =\u003e {\n  config.headers.set(\"Authorization\", \"Bearer *\");\n  return config;\n});\naxios.interceptors.response.use(\n  function (response) {\n    return response;\n  },\n  function (error) {\n    //do something with error\n    return Promise.reject(error);\n  },\n);\n```\n**Axios Retry Package is also ported to feaxios**\n\n```ts\nimport axios from \"feaxios\"\nimport axiosRetry from \"feaxios/retry\"\n\nconst http = axios.create({\n  timeout: 3 * 1000 * 60,\n})\n\naxiosRetry(http, { retryDelay: axiosRetry.exponentialDelay })\n```\nVisit: https://github.com/softonic/axios-retry to see more options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyam234%2Ffeaxios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyam234%2Ffeaxios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyam234%2Ffeaxios/lists"}