Welcome to Nuxt 3

Rate this content
Bookmark

Explain about NuxtJS codebase refactor and challenges facing to implement Vue 3, Vite and other packages.

This talk has been presented at Vue.js London Live 2021, check out the latest edition of this JavaScript Conference.

FAQ

Nux3 is the latest version of the Nuxt framework, built from scratch starting in July 2020. It incorporates improvements such as TypeScript support, Webpack 5, Vue 3, and a new engine called Nuxt Nitro.

Nuxt Nitro is a new engine introduced with Nux3 that optimizes the output directory for cross-platform hosting, improves call start performance, and supports serverless platforms. It also features automatic replacements for API routes and isomorphic fetch.

Nuxt Bridge is a package designed to help users transition from Nuxt 2 to Nuxt 3. It incorporates the Nitro engine to enhance performance and adds support for ESM, TypeScript, and Vue 3's Composition API.

The development of Nux3 started in July 2020.

Some new features in Nux3 include TypeScript by default, Webpack 5 support, Vue 3 support, Nuxt Nitro engine, cross-platform output optimization, and improved serverless support.

While there are no specific recommendations for debugging a Nuxt project in VS Code, it is suggested to ask for help on the Nuxt Discord channel or GitHub Discussions for community-driven solutions.

If you need stability and all existing features, it is recommended to start with Nuxt 2 and migrate to Nuxt 3 when it becomes stable. Nuxt Bridge can help facilitate this migration.

DOCUS is a new software built on top of Nuxt to create modern websites. It includes features like content modules, automation, and an admin panel. It will be open source soon.

The best place to learn about Nuxt is through its official documentation, which is regularly updated. You can also find helpful videos from Nuxt ambassadors on YouTube.

Yes, Nuxt is suitable for building social network websites as it is designed for large-scale modern web applications.

Alexandre Chopin
Alexandre Chopin
29 min
20 Oct, 2021

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Nux3 has made significant improvements in performance, output optimization, and serverless support. Nuxt Bridge brings the Nitro engine for enhanced performance and easier transition between Nuxt 2 and Nuxt Read. Nuxt 3 supports Webpack 5, Bytes, and Vue 3. NextLab has developed brand new websites using Docus technology. Nuxt.js is recommended for building apps faster and simpler, and Nuxt 2 should be used before migrating to Nuxt 3 for stability. DOCUS is a new project that combines Nuxt with additional features like content modules and an admin panel.
Available in Español: Bienvenido a Nuxt 3

1. Introduction to Nux3 and its Journey

Short description:

Today I'm excited to talk about Nux3 and its journey. We start from scratch in July 2020. In September we start to create the most famous features in Nux, which is the page routing. In October, we also worked a lot to get view-free support with the bundle renderer. In February, we make Nitro works on major serverless platform. In March, we create this new organization on GitHub called NGS. In May, we decide to use these famous features, the PySystem Routing and Page Optional. In August, the Global Imports, Auto-Global Imports. NUXT Bridge comes with a new engine called NUXT Nitro. Let's first of all talk about the output. The output directory is super important for us and we want to highly optimize this directory because that brings a lot of capacity to NUXT. This output is by default cross-platform.

♪♪ Hello, everyone. Today I'm excited to talk about Nux3 and its journey. It has been a long development process. There has been so much going on and so many improvements in Fragments.

Today I'm going to do my best to explain what we have done with the team for almost two years now. So let's talk about the journey and first come into Nux3. We start from scratch in July 2020. We decide to go with TypeScript for the rewrites. And obviously, as most of you are using Webpack with Nux2, we put a lot of effort to add Webpack 5 support.

In September we start to create the most famous features in Nux, which is the page routing, which is based on the Fire System. In October, we also worked a lot to get view-free support with the bundle renderer. Moving forward with November and Nux Nitro, you might have heard about it, and I will explain a little bit more in this talk. In January of this year we start to work on byte support. In February, we make Nitro works on major serverless platform, which is a huge, huge win for us. And by the way, with all this work we have made, we create this new organization on GitHub called NGS, or Universal JavaScripts, in March.

Also in March, we start work on NUXT Kites and NUXT CLI. In May, we decide to use these famous features, the PySystem Routing and Page Optional, that's gonna bring you a new experience to create NUXT projects by creating a Landing Page without any routing support. In June, we start to work on the Layout support. In July, we put MXScript support. In August, the Global Imports, Auto-Global Imports. And in September, we start to work on NUXT Bridge. And we finally get, last month, the support for these build and production. That means, in more than 400 days, and more than 300 pull requests, and about 700 commitments and 200 issues, we have updated a lot about NUXT Bridge and its vision. In addition to that, we created over 40 repositories on a new organization called NGS.

NUXT Bridge comes with a new engine called NUXT Nitro. Let's start with NUXT Nitro because that's what we bring NUXT to the future. Let's first of all talk about the output. The output directory is super important for us and we want to highly optimize this directory because that brings a lot of capacity to NUXT. This output is by default cross-platform. That's mean you can host it on nodes like you do for NUXT, but also on dno and workers like you can have on cluster and workers, for example.

2. Nuxt 3 Improvements and Nuxt Bridge

Short description:

We made a huge improvement on the call start performance and like you used to do on NUXT for the client-side routes, we get the API routes right now with automatic replacements, but also an isomorphic fetch. The highly optimized output is a key for us because when you want to create a modern website, you need to have multiple performances and packages. We track dependencies for Node.js. The server bundle size is now under one megabyte and brings us to a call start, which is 75 to 100 times faster than before. We are targeting the serverless-based and hybrid renderers on the JAMstack. Nuxt Bridge brings the Nitro engine to enhance performances and provide serverless support. Nuxt 3 will be lighter, with a smaller client bundle and deployment bundle. It will be faster with optimized code starts and dynamic server-side rendering cost splitting.

We made a huge improvement on the call start performance and like you used to do on NUXT for the client-side routes, we get the API routes right now with automatic replacements, but also an isomorphic fetch. So, the highly optimized output is a key for us because right now when you want to create a modern website, you need to have multiple performances and packages.

We track dependencies for Node.js. We also do the code splitting, but on the server bundle. That means that the server bundle size now is under one megabyte and brings us to a call start, which is 75 to 100 faster than before. So, the cross-platform output brings us to another level, not only on Node.js environments, we are also marking Node.js packages for Workhorse reports. We get an ultra lightweight qualifying Node.js built-in. By default, because we like optimization, we get an auto-detection platform. We are able to render right now your Node.js website on browser-service worker. It's still experimental, but we're counting on you and the community to improve this innovation.

With this innovation, right now, you can deploy the Nuxt projects everywhere. That means we are targeting the serverless-based and the hybrid renderers on the JAMstack. So that's... was a huge work we've made since two years on the server part of Nuxt, which is Nuxt Nitro. But it's not only for Nuxt 2. It's also for Nuxt 3. It's also for Nuxt 2. And all these Nuxt 3 improvements, we want to bring it to our current users that are using Nuxt 2 to have a better transition for the future. And that's this package called Nuxt Bridge. You see the bridge between Vue 2 and Nuxt 2 obviously, and Vue 3 and Nuxt 3. So Nuxt Bridge, we obviously bring with it its Nitro engine to enhance your performances and get the serverless support. That's means right now, you can start to upgrade your projects to go with Nuxt 3 and Vue 3. In Nuxt Bridge, you also get the XMAS supports, ESM supports, with no more module.export on the same task. We got a built-in Type-C support by default and the brand new Nuxt 3 competition API with an import box. Thanks to the manual, we get also the great byte performances inside Nuxt Bridge, so you don't need to stick with Webpack or Bits. You can simply toggle which one you want to pick up for your projects. So to recap with Nuxt 3, it's gonna be lighter. Nuxt 3 will provide up to five times smaller modern client bundle and 100 times smaller deployment bundle. It's going to be faster obviously with an optimized code starts with dynamic server-side rendering cost splitting. In Nuxt 2, you used to choose between server-side rendering or static site generation.

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Vite: Rethinking Frontend Tooling
JSNation Live 2021JSNation Live 2021
31 min
Vite: Rethinking Frontend Tooling
Top Content
Vite is a next-generation build tool that leverages native ES modules for improved performance. It eliminates the need for bundling and improves hot module replacement. Vite provides an opinionated default configuration while still allowing advanced customization through plugins. It is framework agnostic and can be used for React and other applications. Vite is being adopted by Next.js and Create React App, and integration with Nuxt 3 offers significant speed improvements.
Everything Beyond State Management in Stores with Pinia
Vue.js London Live 2021Vue.js London Live 2021
34 min
Everything Beyond State Management in Stores with Pinia
Top Content
State management is not limited to complex applications and transitioning to a store offers significant benefits. Pinia is a centralized state management solution compatible with Vue 2 and Vue 3, providing advanced devtools support and extensibility with plugins. The core API of Pinia is similar to Vuex, but with a less verbose version of stores and powerful plugins. Pinia allows for easy state inspection, error handling, and testing. It is recommended to create one file per store for better organization and Pinia offers a more efficient performance compared to V-rex.
One Year Into Vue 3
Vue.js London Live 2021Vue.js London Live 2021
20 min
One Year Into Vue 3
Top Content
Vue 3 has seen significant adoption and improvements in performance, bundle size, architecture, and TypeScript integration. The ecosystem around Vue 3 is catching up, with new tools and frameworks being developed. The Vue.js.org documentation is undergoing a complete overhaul. PNIA is emerging as the go-to state management solution for Vue 3. The options API and composition API are both viable options in Vue 3, with the choice depending on factors such as complexity and familiarity with TypeScript. Vue 3 continues to support CDN installation and is recommended for new projects.
Utilising Rust from Vue with WebAssembly
Vue.js London Live 2021Vue.js London Live 2021
8 min
Utilising Rust from Vue with WebAssembly
Top Content
In this Talk, the speaker demonstrates how to use Rust with WebAssembly in a Vue.js project. They explain that WebAssembly is a binary format that allows for high-performance code and less memory usage in the browser. The speaker shows how to build a Rust example using the WasmPack tool and integrate it into a Vue template. They also demonstrate how to call Rust code from a Vue component and deploy the resulting package to npm for easy sharing and consumption.
Vue: Feature Updates
Vue.js London 2023Vue.js London 2023
44 min
Vue: Feature Updates
Top Content
Watch video: Vue: Feature Updates
The Talk discusses the recent feature updates in Vue 3.3, focusing on script setup and TypeScript support. It covers improvements in defining props using imported types and complex types support. The introduction of generic components and reworked signatures for defined components provides more flexibility and better type support. Other features include automatic inference of runtime props, improved define emits and defined slots, and experimental features like reactive props destructure and define model. The Talk also mentions future plans for Vue, including stabilizing suspense and enhancing computer invalidations.
Local State and Server Cache: Finding a Balance
Vue.js London Live 2021Vue.js London Live 2021
24 min
Local State and Server Cache: Finding a Balance
Top Content
This Talk discusses handling local state in software development, particularly when dealing with asynchronous behavior and API requests. It explores the challenges of managing global state and the need for actions when handling server data. The Talk also highlights the issue of fetching data not in Vuex and the challenges of keeping data up-to-date in Vuex. It mentions alternative tools like Apollo Client and React Query for handling local state. The Talk concludes with a discussion on GitLab going public and the celebration that followed.

Workshops on related topic

Vue3: Modern Frontend App Development
Vue.js London Live 2021Vue.js London Live 2021
169 min
Vue3: Modern Frontend App Development
Top Content
Featured WorkshopFree
Mikhail Kuznetsov
Mikhail Kuznetsov
The Vue3 has been released in mid-2020. Besides many improvements and optimizations, the main feature of Vue3 brings is the Composition API – a new way to write and reuse reactive code. Let's learn more about how to use Composition API efficiently.

Besides core Vue3 features we'll explain examples of how to use popular libraries with Vue3.

Table of contents:
- Introduction to Vue3
- Composition API
- Core libraries
- Vue3 ecosystem

Prerequisites:
IDE of choice (Inellij or VSC) installed
Nodejs + NPM
Monitoring 101 for React Developers
React Summit US 2023React Summit US 2023
107 min
Monitoring 101 for React Developers
Top Content
WorkshopFree
Lazar Nikolov
Sarah Guthals
2 authors
If finding errors in your frontend project is like searching for a needle in a code haystack, then Sentry error monitoring can be your metal detector. Learn the basics of error monitoring with Sentry. Whether you are running a React, Angular, Vue, or just “vanilla” JavaScript, see how Sentry can help you find the who, what, when and where behind errors in your frontend project. 
Workshop level: Intermediate
Using Nitro – Building an App with the Latest Nuxt Rendering Engine
Vue.js London Live 2021Vue.js London Live 2021
117 min
Using Nitro – Building an App with the Latest Nuxt Rendering Engine
Top Content
Workshop
Daniel Roe
Daniel Roe
We'll build a Nuxt project together from scratch using Nitro, the new Nuxt rendering engine, and Nuxt Bridge. We'll explore some of the ways that you can use and deploy Nitro, whilst building a application together with some of the real-world constraints you'd face when deploying an app for your enterprise. Along the way, fire your questions at me and I'll do my best to answer them.
Going on an adventure with Nuxt 3, Motion UI and Azure
JSNation 2022JSNation 2022
141 min
Going on an adventure with Nuxt 3, Motion UI and Azure
WorkshopFree
Melanie de Leeuw
Melanie de Leeuw
We love easily created and deployed web applications! So, let’s see what a very current tech stack like Nuxt 3, Motion UI and Azure Static Web Apps can do for us. It could very well be a golden trio in modern day web development. Or it could be a fire pit of bugs and errors. Either way it will be a learning adventure for us all. Nuxt 3 has been released just a few months ago, and we cannot wait any longer to explore its new features like its acceptance of Vue 3 and the Nitro Engine. We add a bit of pizzazz to our application with the Sass library Motion UI, because static design is out, and animations are in again.Our driving power of the stack will be Azure. Azure static web apps are new, close to production and a nifty and quick way for developers to deploy their websites. So of course, we must try this out.With some sprinkled Azure Functions on top, we will explore what web development in 2022 can do.
TresJS create 3D experiences declaratively with Vue Components
Vue.js London 2023Vue.js London 2023
137 min
TresJS create 3D experiences declaratively with Vue Components
Workshop
Alvaro Saburido
Alvaro Saburido
- Intro 3D - Intro WebGL- ThreeJS- Why TresJS- Installation or Stackblitz setup - Core Basics- Setting up the Canvas- Scene- Camera- Adding an object- Geometries- Arguments- Props- Slots- The Loop- UseRenderLoop composable- Before and After rendering callbacks- Basic Animations- Materials- Basic Material- Normal Material- Toon Material- Lambert Material- Standard and Physical Material- Metalness, roughness - Lights- AmbientLight- DirectionalLight- PointLights- Shadows- Textures- Loading textures with useTextures- Tips and tricks- Misc- Orbit Controls- Loading models with Cientos- Debugging your scene- Performance
Building Vue forms with VeeValidate
Vue.js London Live 2021Vue.js London Live 2021
176 min
Building Vue forms with VeeValidate
Workshop
Abdelrahman Awad
Abdelrahman Awad
In this workshop, you will learn how to use vee-validate to handle form validation, manage form values and handle submissions effectively. We will start from the basics with a simple login form all the way to using the composition API and building repeatable and multistep forms.

Table of contents:
- Introduction to vee-validate
- Building a basic form with vee-validate components
- Handling validation and form submissions
- Building validatable input components with the composition API
- Field Arrays and repeatable inputs
- Building a multistep form
Prerequisites:
VSCode setup and an empty Vite + Vue project.