ofetch
😱 A better fetch API. Works on node, browser and workers. (by unjs)
h3
⚡️ Minimal H(TTP) framework built for high performance and portability (by unjs)
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.
surveyjs.io
featured
ofetch | h3 | |
---|---|---|
7 | 8 | |
3,440 | 3,120 | |
3.3% | 2.2% | |
8.2 | 9.3 | |
8 days ago | 6 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ofetch
Posts with mentions or reviews of ofetch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-13.
- Axios vs Fetch? or suggest your own
-
nuxt3 + Laravel sanctum
useFetch uses the oFetch client per the documentation
-
i am supposed to film a demo of my website I built that not is not functioning becuase of this. I have a few hours. How long will the repair take??
Create a similar webshits lib
-
On which Nuxt version is your main project?
and rolled my own retry/caching/timeout implementation using https://github.com/unjs/ohmyfetch interceptors
-
Nuxt3 doesn't fetch new data after client-side navigation
It's not entirely clear, I'd agree. It takes some time getting used to the syntax changes from Nuxt 2 > Nuxt 3. All of the above methods are all just Nuxt 3 wrappers for $fetch (https://github.com/unjs/ohmyfetch) with various degrees of flexibility/control.
-
Are you using Axios or Fetch?
As I am using Nuxt 3, I use ohmyfetch https://github.com/unjs/ohmyfetch created by the Nuxt team.
-
a first look at nuxt 3
Nitro allows 'direct' calling of routes via the globally-available $fetch helper. This will make an API call to the server if run on the browser, but will simply call the relevant function if run on the server, saving an additional API call. The $fetch API uses ohmyfetch to:
h3
Posts with mentions or reviews of h3.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-06.
-
Why I keep an eye on the Vue ecosystem and you should too
H3 is a small and delightful webserver. It honestly won me over the second I saw how simple the server side implementation of websockets was. It's actually so good, it even has bindings for uploadthing
-
Hono v4.0.0
Same, I'll probably move to https://github.com/unjs/h3 since it's used anyway in Nuxt (which I use for other projects)
-
File Upload Security and Malware Protection
import formidable from 'formidable'; /* global defineEventHandler, getRequestHeaders, readBody */ /** * @see https://nuxt.com/docs/guide/concepts/server-engine * @see https://github.com/unjs/h3 */ export default defineEventHandler(async (event) => { let body; const headers = getRequestHeaders(event); if (headers['content-type']?.includes('multipart/form-data')) { body = await parseMultipartNodeRequest(event.node.req); } else { body = await readBody(event); } console.log(body); return { ok: true }; });
-
File Uploads for the Web (3): File Uploads in Node & Nuxt
import formidable from 'formidable'; /** * @see https://nuxt.com/docs/guide/concepts/server-engine * @see https://github.com/unjs/h3 */ export default defineEventHandler(async (event) => { let body; const headers = getRequestHeaders(event); if (headers['content-type']?.includes('multipart/form-data')) { body = await parseMultipartNodeRequest(event.node.req); } else { body = await readBody(event); } console.log(body); return { ok: true }; }); /** * @param {import('http').IncomingMessage} req */ function parseMultipartNodeRequest(req) { return new Promise((resolve, reject) => { /** @see https://github.com/node-formidable/formidable/ */ const form = formidable({ multiples: true }) form.parse(req, (error, fields, files) => { if (error) { reject(error); return; } resolve({ ...fields, ...files }); }); }); }
-
How do you implement Middleware using an httpOnly cookie?
You could probably do all that in Nuxt with building a backend in the server folder. (More info here: https://nuxt.com/docs/guide/directory-structure/server) But, I understand that the official Nuxt 3 Auth module is being worked on which should make life a lot easier. For now, there's something new you can look into, namely the session support in the newest Nitro version (which is the backend part of Nuxt 3). There's some info here: https://github.com/unjs/h3/pull/315. I should not that I have not looked at this yet, though.
-
Build a SSR App with React, React Router and Vite
h3 - a minimalistic and simple node.js framework
- How can I use Express JS on Nuxt3
-
a first look at nuxt 3
Nuxt 3 is powered by a new server engine called Nitro. Nitro is used in development and production. It includes cross-platform support for Node.js, Browsers, and service-workers and serverless support out-of-the-box. Other features include API routes, automatic code-splitting, async-loaded chunks, and hybrid static/serverless modes. Server API endpoints and Middleware that internally uses h3 are added by Nitro.
What are some alternatives?
When comparing ofetch and h3 you can also consider the following projects:
Nuxt 3 - Old repo of Nuxt 3 framework, now on nuxt/nuxt
axios - Promise based HTTP client for the browser and node.js
Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]
ajcwebdev-nuxt3 - An example Nuxt 3 application deployed on Netlify and Vercel
Laravel - The Laravel Framework.
core - 🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
vite - Next generation frontend tooling. It's fast!
esbuild - An extremely fast bundler for the web
node - Node.js JavaScript runtime ✨🐢🚀✨