{
 "kind": "tool",
 "slug": "ofetch",
 "path": "tools/ofetch/",
 "name": "ofetch",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "HTTP clients and networking",
   "tools/http-clients/"
  ]
 ],
 "lead": "A better fetch for Node.js, browsers and workers, with retries and JSON parsing.",
 "chips": [
  {
   "label": "HTTP clients and networking",
   "path": "tools/http-clients/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install ofetch"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/unjs/ofetch"
  },
  {
   "label": "Website",
   "href": "https://github.com/unjs/ofetch#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/unjs/ofetch"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change today",
   "note": "Latest GitHub release Nov 1, 2025. ",
   "src": "https://github.com/unjs/ofetch"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "11 projects",
   "status": "info",
   "sub": "#30 of 125 in its category",
   "note": "Dependency in 11 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What ofetch does",
   "parts": [
    {
     "t": "prose",
     "text": "A better fetch for Node.js, browsers and workers, with retries and JSON parsing."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "ofetch popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "54",
       "of": "/ 100",
       "l": "Gid Score, #1463 overall"
      },
      {
       "n": "27.3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "5,368",
       "l": "GitHub stars"
      },
      {
       "n": "11",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How ofetch is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "ofetch joined the catalog on its public numbers (27,318,852 downloads a week on npm and 5,368 GitHub stars), not on our project count: it is a dependency in 14 public GitHub projects of our scan, 11 of them set up for AI coding agents.",
      "The most used alternative in our scan is Axios (471 projects).",
      "Projects that use it most often also use Vitest (92.9%), Vite (78.6%), Zod (85.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "7 projects, 0.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "5 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 92.9% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 85.7% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 57.1% of its projects",
       "v": "@antfu/eslint-config",
       "path": "tools/antfu-eslint-config/"
      },
      {
       "l": "In 57.1% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "h3 (JavaScript)",
       "path": "tools/h3-npm/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about ofetch",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in HTTP clients and networking",
       "path": "tools/http-clients/",
       "items": [
        {
         "text": "Requests",
         "path": "tools/requests-py/"
        },
        {
         "text": "httpx",
         "path": "tools/httpx/"
        },
        {
         "text": "ws",
         "path": "tools/ws/"
        },
        {
         "text": "aiohttp",
         "path": "tools/aiohttp/"
        },
        {
         "text": "postgres",
         "path": "tools/postgres/"
        },
        {
         "text": "redis (Python)",
         "path": "tools/redis-pypi/"
        },
        {
         "text": "websockets",
         "path": "tools/websockets/"
        },
        {
         "text": "undici",
         "path": "tools/undici/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "ofetch",
       "me": true,
       "facts": [
        "MIT",
        "Gid 54",
        "27.3M/wk"
       ]
      },
      {
       "name": "Axios",
       "why": "Promise-based HTTP client for browser and Node.js with interceptors.",
       "path": "tools/axios/",
       "facts": [
        "MIT",
        "Gid 89",
        "144M/wk"
       ]
      },
      {
       "name": "node-fetch",
       "why": "Bring the Fetch API to Node.js for making HTTP requests.",
       "path": "tools/node-fetch/",
       "facts": [
        "MIT",
        "Gid 74",
        "28M/wk"
       ]
      }
     ],
     "more": "Compare ofetch with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install ofetch"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for ofetch yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm ofetch"
  ],
  [
   "Category",
   "HTTP clients and networking"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "53.9"
  ],
  [
   "Rank in category",
   "#30 of 125"
  ],
  [
   "GitHub",
   "unjs/ofetch"
  ],
  [
   "Last change",
   "Nov 17, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/unjs.png"
}