To build modern sites and applications, it seems we have entered the era of the meta frameworks: Next.js, Nuxt, SvelteKit... and the promising newcomer Remix.
Famous members of the JavaScript community joined tech companies to work on these solutions:
- Kent C. Dodds joined the Remix team and speaks highly about how it enables him to "build amazing user experiences and still be happy with the code".
- It seems Vercel hired everyone else: Rich Harris, the creator of Svelte, Sebastian Markbåge from the React core team and Jared Palmer and its now open source solution to manage monorepos (Turborepo)... it looks like a Dream Team!
About the tooling, the need for speed led to a shift towards languages like Rust and Go instead of JavaScript.
Lee Robinson made a strong statement: Rust Is The Future of JavaScript Infrastructure and we mentioned the rise of Rust language several times:
SWC is also used by Deno, the server-side runtime that was the winner in 2020. And we can tell that Deno is still a thing! It keeps receiving enhancements and Deno Deploy was made public: it's a solution to build and deploy serverless functions that run at the "edge", close to the users.
Speaking of serverless functions, edge computing was also an important theme in 2021. We have solutions like Vercel Edge Functions, CloudFlare Workers or Netlify Edge to run backend code close to the users. Meta frameworks like Next.js or Remix take advantage of edge computing, making the integration of backend code in React applications a breeze.
Are we going to enter the Golden Age of JavaScript full-stack applications in 2022?
The TOP 3
The trendiest project of the year is zx, a brand new tool by Google to write simple Command Line scripts in JavaScript or TypeScript.
Basically it lets you embed any bash expression (
ls
,cat
,git
... anything!) in your code andawait
for the result using JavaScript template literals.It includes utilities provided by several popular packages:
fetch
in the browserIn second, Vite is a building tool that uses esbuild compiler to provide great performance. At the beginning it was linked to the Vue.js community but now it has setups for the main UI frameworks: React, Svelte, Lit.
Coming in third, Next.js keeps its position of leading "meta framework" for the React world.
Tauri
For fifth place, Tauri is a solution to build desktop applications using web technologies.
Compared to Electron it's written in Rust and it doesn't ship the Node.js runtime with every application. Version 1.0 was released in beta in May.
Special pick
It's not in the TOP 10 but Astro is one of the most notable projects of the year. Astro is a tool to build web sites that load faster because they ship less JavaScript.
The concept is close to static site generation (SSG) but the key difference is that Astro lets you include dynamic pieces of interactivity in your pages called "islands".
Different strategies can be applied to render dynamic components on the client-side:
One of best parts is that Astro pages can be built with a combination of HTML and components written with any framework: React, Vue.js or Svelte...