Nuxt
Nuxt is a free and open source full-stack web framework based on Vue.js, Nitro, and Vite. Nuxt is inspired by Next.js, which is a similar framework based on React rather than the Vue JavaScript library. The main advantage of Nuxt over using Vue alone is its universal rendering system. The framework works as both an in-browser single-page application (SPA) as well as a server-rendered static website, by "hydrating" a server-rendered page to a full SPA after it is loaded. This allows websites to have the search engine optimization and performance benefits of a server-rendered site in addition to the interactivity of a client-rendered application. Nuxt largely abstracts the server-rendering features from the developer, and it's therefore able to have a similar development experience to a traditional SPA using Vue's single-file component (SFC) system. In addition to its universal rendering mechanism, Nuxt also provides many other benefits and quality-of-life features, such as...
Nuxt is a free and open source full-stack web framework based on Vue.js, Nitro, and Vite. Nuxt is inspired by Next.js, which is a similar framework based on React rather than the Vue JavaScript library. The main advantage of Nuxt over using Vue alone is its universal rendering system. The framework works as both an in-browser single-page application (SPA) as well as a server-rendered static website, by "hydrating" a server-rendered page to a full SPA after it is loaded. This allows websites to have the search engine optimization and performance benefits of a server-rendered site in addition to the interactivity of a client-rendered application. Nuxt largely abstracts the server-rendering features from the developer, and it's therefore able to have a similar development experience to a traditional SPA using Vue's single-file component (SFC) system. In addition to its universal rendering mechanism, Nuxt also provides many other benefits and quality-of-life features, such as path-based routing, hot module replacement (HMR), TypeScript support out of the box, and middleware and server logic. Nuxt automatically imports most Vue composition API functions, and any helper functions from the composables/ and utils/ folders. // ref is automatically imported const count = ref(0); // useRoute is also automatically imported const route = useRoute(); To enable layouts in a Nuxt project, the entry point of the application, app.vue , must include a NuxtLayout component to toggle between layouts for each page. The default layout is located at layouts/default.vue , and must include a slot for the page content. A page can use a custom layout by using the definePageMeta helper in a setup function or block. definePageMeta({ layout: "custom", }); export default defineNuxtMiddleware((to, from) => { // navigation logic if (to.params.id === "0") return abortNavigation(); return navigateTo(`/users/${to.params.id}`); }); Nuxt can also generate server API routes and handlers, using the server/ folder. Any file placed in server/api will become an API route, and any file placed in server/routes will become a route file, the difference being the final file location ( server/api adds an api prefix to the path). // server/api/hello.ts export default defineEventHandler((event) => { return { some: "data here", }; }); This can now be called from components using the useFetch composable. const { data } = await useFetch('/api/hello')
References
- ^ "Nuxt First Public Release" . Npm . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1794956400.0
- ^ "pages/ · Nuxt Directory Structure" . Nuxt . Archived from the original on 2023-08-19 . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "Auto-imports · Nuxt Concepts" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "Views · Get Started with Nuxt" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "layouts/ · Nuxt Directory Structure" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "middleware/ · Nuxt Directory Structure" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "abortNavigation · Nuxt Utils" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "navigateTo · Nuxt Utils" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "server/ · Nuxt Directory Structure" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "Nuxt First Public Release" . Npm . Retrieved March 23, 2017 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1794956400.0
- ^ Omole, Olayinka (March 18, 2019). "Nuxt: A Universal Vue.js Application Framework" . Sitepoint . Retrieved June 18, 2020 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1794956400.0
- ^ Berning, Dave (2018-04-16). "Getting Started with Server-Side Rendering Using Nuxt" . Alligator.io . Retrieved 2018-07-02 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1530486000.0
- ^ "Vue.js Development · Nuxt Concepts" . Nuxt . Retrieved 2025-02-09 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1739055600.0
- ^ "Introduction · Get Started with Nuxt" . Nuxt . Retrieved 2025-02-09 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1739055600.0
- ^ "Routing · Get Started with Nuxt" . Nuxt . Retrieved 2025-03-06 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1741215600.0
- ^ "Nuxt/LICENSE" . GitHub . Retrieved 2023-12-19 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1702940400.0
- ^ "Release 4.6.4" . 2 November 2026 . Retrieved 3 November 2026 . Wikipedia revision 1337808011, retrieved 2026-11-18 · 1794956400.0
Cite this
"Nuxt". 1770820839. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1337808011 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy