undici-fetch
undici
undici-fetch | undici | |
---|---|---|
1 | 18 | |
244 | 5,815 | |
- | 2.6% | |
6.7 | 9.8 | |
almost 3 years ago | 1 day ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
undici-fetch
-
How to securely call an authenticated API from your front end
In these cases you might want to consider creating your own API endpoints which then make requests to an upstream API. The node-fetch library is a popular choice for making requests from Node.js. However, if you are interested in the features offered by undici, I recommend keeping an eye on the undici-fetch library. It is being developed as a WHATWG Fetch implementation based on undici.
undici
-
When LIMIT 9 works but LIMIT 10 hangs: A short debugging story
Yeah: interestingly, they had a test for the biggest category of frame, but not for the two other categories: https://github.com/nodejs/undici/blob/main/test/websocket/se...
The test I contributed is very specific to the frame fix I made, but I should probably go back and contribute more tests in send.js that test other lengths too.
-
Is native fetch in v18 faster than dedicated libraries?
The native fetch in Node.js 18 is based on undici.
-
Quickest/fastest http package
Sadly, Undici's slow. Reference issue.
-
Are all fetch API's for Nodejs inefficient in terms of latency ? Cant go lower than 4ms on localhost
Did you try just using the http lib, or even axios/node-fetch? The fetch API in node is very new and looks like there have been concerns about its performance: https://github.com/nodejs/undici/issues/1203
-
I made an Express-like framework for IPC communication
A library that can be handy is Undici - a great HTTP/1.1 client, see here where they apparently added unix:// support: https://github.com/nodejs/undici/pull/226
-
Pull Congressional Data via SMS with the Congress API and JavaScript
Afterwards, create your new project and install our lone requirement [undici](https://github.com/nodejs/undici) to make HTTP requests in Node.js by running:
-
Node JS 18.12.0 goes LTS
Test coverage currently sits at 89%, hopefully will be stable soon.
-
Animal Crossing Simulator Discord Bot
undici
-
Fetch API has finally landed Node v18.0
We implemented fetch API operation with Node without the need for any library imports. The thing to note that under the hood that the fetch implementation is done based on another HTTP client, undici, which is actually a HTTP client written specifically for Node.js. It is an HTTP 1.1 only client.
-
Deno 1.20
> ...enough insights of how much better/faster Deno is
We moved our Deno project to Node because of lack of lower-level APIs on their Conn interfaces [0][1], but otherwise for our use-case (lots of tiny HTTPS connections) Deno absolutely blew Node out-of-the-water. Even at p50 (100tps) Deno (v1.18) was 10x faster than Node (v17.x) [2]
RAM wise, I found Deno (v1.18+) use 10M or so higher for the same code-base.
[0] https://github.com/denoland/deno/issues/13636
[1] https://github.com/denoland/deno/issues/9109
[2] https://github.com/nodejs/undici/issues/1203#issuecomment-10...
What are some alternatives?
axios - Promise based HTTP client for the browser and node.js
fastify-http-proxy - Proxy your http requests to another server, with hooks.
node-fetch - A light-weight module that brings the Fetch API to Node.js
example-nodejs-api-proxy-server - Example Node.js API proxy server built with @fastify/fastify-http-proxy
got - 🌐 Human-friendly and powerful HTTP request library for Node.js
fastify-reply-from - fastify plugin to forward the current http request to another server
request - 🏊🏾 Simplified HTTP request client.
30-seconds-of-code - Short code snippets for all your development needs
Nock - HTTP server mocking and expectations library for Node.js