With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →
Top 23 JavaScript HTTP Projects
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
superagent
Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
artillery
Load testing at cloud-scale. Serverless & distributed out-of-the-box. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module. Never fail to scale with Artillery!
-
Primus
:zap: Primus, the creator god of the transformers & an abstraction layer for real-time to prevent module lock-in.
-
http-decision-diagram
An activity diagram to describe the resolution of HTTP response status codes, given various headers.
-
hyper-express
High performance Node.js webserver with a simple-to-use API powered by uWebsockets.js under the hood.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Project mention: API Handling: Utilizing the Facade Pattern with Axios in Frontend Development | dev.to | 2024-04-25Typically, there are various ways to choose an HTTP client, and for this example, I've chosen axios.
Project mention: How do I detect requests initiated by the new fetch standard? How should I detect an AJAX request in general? | /r/codehunter | 2023-07-02Most js libraries use XMLHttpRequest and so provide HTTP_X_REQUESTED_WITH: XMLHttpRequest, but neither Chrome's implementation nor Github's polyfill of the new fetch uses a similar header. So how can one detect that the request is AJAX?
request for HTTP requests outside of the browser.
SuperAgent is a lightweight and flexible HTTP client that supports promises and callback-style syntax. It is known for its simplicity and ease of use.
Project mention: Ask HN: Is Express still "de-facto" for building Node back ends? | news.ycombinator.com | 2023-10-29I tend to use hapi (https://hapi.dev) instead of Express if I need to write a quick backend for something these days.
Fastify looks nice too but I haven't used it.
Been burnt by full-stack frameworks in the past (e.g. Meteor) but they can be a good option for some.
Project mention: Need help setting up a remote depository using GitHub and VCS | /r/webdev | 2023-05-03Do you run a Webserver during development, even if it is a simple dev-server like https://www.npmjs.com/package/http-server ?
So, why would you want a REAL server to mock request/reponses? You have a lot of intercepts today that sit on the network layer and you can define things like "If you send request to that endpoint, with that json, please return that Status" (for NodeJS example, Nock - https://github.com/nock/nock)
To execute the algorithm, we will use Node.js (for the JavaScript runtime) and node-fetch (for network requests). This means we will run the code locally from the command line. For this project, we will have an output folder to store all the README data, as well as a list (queue) of repository URLs to visit. Before diving into the code, it is important to plan the input and output of the algorithm. For this web crawler, we will start at a valid GitHub repository page, which would be one URL string. After visiting each page with a README, we will export the data into a new file. Now lets cover the process of requesting a repository page from a URL. For this, we only care about saving the README file that is displayed, and we will ignore any other links that GitHub displays (such as the navbar). We will send a URL request with node-fetch, and retrieve the result of a HTML string. If we convert the HTML string to a DOM Tree, we can search for a specific element. GitHub stores the README file under a div with the class "markdown-body". We can use a library called 'jsdom' to use Browser API methods, and return a specific node.
Usually, I would let organic users be my load test. However, I am working on a project that has an anticipated load on a new-to-my-team stack, so I'm looking into ways to load test.
I've seen tools like k6 (https://k6.io/), Artillery (https://www.artillery.io), and JMeter (https://jmeter.apache.org/).
I've been using Artillery, but it's hard to visualize the results.
What do you use?
Project mention: When LIMIT 9 works but LIMIT 10 hangs: A short debugging story | news.ycombinator.com | 2023-05-31Yeah: 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.
Project mention: Cloudflare is slow and Cloudflare cant do much about it | news.ycombinator.com | 2023-05-11Russia has blocked Cloudflare too too. You can see it in the issues for jsDelivr (which apparently handles a lot of traffic for TASS, since they use the CDN and browsers don't share caches for privacy reasons). https://github.com/jsdelivr/jsdelivr/issues/762
Project mention: Technologies to create a chat application with different channels like Slack? | /r/node | 2023-05-06Socket.io would work, but I'd recommend using primus with uws https://github.com/primus/primus
Dredd: used to test APIs based on the API blueprint or OpenAPI specification, to ensure implementation matches the specification.
Project mention: HyperExpress: High Performance Node.js Webserver | news.ycombinator.com | 2023-06-25
JavaScript HTTP related posts
- API Handling: Utilizing the Facade Pattern with Axios in Frontend Development
- How to Build an AI FAQ System with Strapi, LangChain & OpenAI
- Building a README Crawler With Node.js
- ManyShiba - The World's Greatest Twitter Bot
- The Developer's Guide to OWASP API Security
- OAuth 2.0 implementation in Node.js
- HTTP Requests in JavaScript: Popular Libraries for Web Developers
-
A note from our sponsor - SurveyJS
surveyjs.io | 26 Apr 2024
Index
What are some of the best open-source HTTP projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | axios | 103,985 |
2 | window.fetch polyfill | 25,806 |
3 | request | 25,672 |
4 | superagent | 16,539 |
5 | Hapi | 14,499 |
6 | http-proxy | 13,736 |
7 | http-server | 13,313 |
8 | Nock | 12,527 |
9 | node-fetch | 8,642 |
10 | artillery | 7,477 |
11 | isomorphic-fetch | 6,961 |
12 | undici | 5,750 |
13 | jsdelivr | 5,374 |
14 | Primus | 4,461 |
15 | dredd | 4,125 |
16 | http-decision-diagram | 3,541 |
17 | spdy | 2,801 |
18 | broken-link-checker | 1,873 |
19 | cross-fetch | 1,650 |
20 | find-my-way | 1,418 |
21 | hyper-express | 1,431 |
22 | download | 1,274 |
23 | cookie | 1,271 |
Sponsored