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 13 JavaScript HTTP Client Projects
-
insomnia
The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
-
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.
-
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.
-
rock-req
⚡️ Ultra-light (150 LOC, zero dep.) & Ultra-fast NodeJS request library with reliable retry on failure, http/https, redirects, gzip/deflate/brotli, extensible, proxy, streams, JSON mode, forms, timeout
-
react-axios-example
Reactjs Axios example with Hooks and Rest API - React Axios get JSON data from API - React Axios Post with Functional component
-
rest-url-parser
Simplifies managing parameter-inclusive URLs, especially useful for applications handling REST APIs with URL-embedded resource identifiers.
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.
Use tools like Postman or Insomnia to test the API endpoints and ensure they behave as expected.
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.
🐞 Small codebase: Vanilla JS + Only 2 dependencies rock-req as HTTP client (zero deps) and aws4 for signing S3 requests (zero deps too).
Project mention: Discover rest-url-parser: A Powerful Open Source Tool for Parsing REST URLs | /r/programming | 2023-06-06Please take a moment to check it out at https://github.com/nepaul/rest-url-parser. Any feedback, suggestions, or questions are most welcome. Let's make parsing RESTful URLs easier together!
JavaScript HTTP Client related posts
- API Handling: Utilizing the Facade Pattern with Axios in Frontend Development
- ManyShiba - The World's Greatest Twitter Bot
- Ask HN: Alternatives to Postman?
- The Developer's Guide to OWASP API Security
- HTTP Requests in JavaScript: Popular Libraries for Web Developers
- The Collaborative API Development Platform – Insomnia
- 5 Ways to Make HTTP Requests in Node.js
-
A note from our sponsor - SurveyJS
surveyjs.io | 27 Apr 2024
Index
What are some of the best open-source HTTP Client projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | axios | 103,985 |
2 | insomnia | 33,067 |
3 | node-fetch | 8,642 |
4 | cross-fetch | 1,650 |
5 | redux-axios-middleware | 918 |
6 | ky-universal | 667 |
7 | httpie | 575 |
8 | RESTer | 332 |
9 | gh-got | 177 |
10 | rock-req | 80 |
11 | react-axios-example | 27 |
12 | request.js | 9 |
13 | rest-url-parser | 4 |
Sponsored