cross-fetch
Universal WHATWG Fetch API implementation for Node, browsers and React Native.
HTTP clients and networking npm MIT
Used in agent projects
36
0.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#21 of 29
by use in those projects
Downloads
38M
npm, last 7 days, cross-fetch
GitHub stars
1,694
last push Apr 15, 2025
How cross-fetch is used
cross-fetch is a dependency in 36 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #21 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Solana Web3.js (66.7%), dotenv (58.3%), Axios (47.2%).
Often used with cross-fetch
| Solana Web3.js | 66.7% of cross-fetch projects · 4.0× more than average |
|---|---|
| dotenv | 58.3% of cross-fetch projects · 3.7× more than average |
| Axios | 47.2% of cross-fetch projects · 4.7× more than average |
| Solana SPL Token | 36.1% of cross-fetch projects · 5.0× more than average |
| Express | 33.3% of cross-fetch projects · 5.1× more than average |
| Jest | 22.2% of cross-fetch projects · 4.0× more than average |
| chalk | 19.4% of cross-fetch projects · 11.1× more than average |
| cors | 19.4% of cross-fetch projects · 5.9× more than average |
By coding agent
| GitHub Copilot | 0.2% of projects set up for it |
|---|---|
| Claude Code | 0.1% of projects set up for it |
Share of public repos configured for each agent that list cross-fetch as a dependency.
Install
| Package | npm install cross-fetch |
|---|---|
| Main stacks | TypeScript / JavaScript (28), Next.js (5), Python (2), Rust (1) |
| Example projects | blockworks-foundation/mango-v4, zdenham/ethscriber, nirholas/universal-crypto-mcp, JesusFilm/core, SurfSolana/SolSurfer |
Alternatives to cross-fetch
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |