Skip to main content
Frontend tutorial

1. Explain the tool set

Let me show you the tools we use. This is our tool set in 2026. It will probably keep working for a while, but new tools arrive and change how we work, so keep an eye on State of JavaScript to see which ones are on top.

Node.js: engine for tools​

Most tools we use to build web apps are written in JavaScript, and Node.js runs them. It isn't the best runtime, but it is the most popular. There are alternatives like Deno and Bun, but our tools didn't migrate to them.

Don't install Node from its website. With one project that's fine. But once you start new projects and still support old ones, you'll have trouble, because old projects won't run on a newer Node. Use a version manager. I used nodenv: it's light and fast, and a project only needs a .node-version file. For my newest projects I let pnpm do it: pnpm runtime set node 24 writes the version into package.json, and pnpm downloads it in the background.

pnpm: package manager​

The big advantage of JavaScript is the npm registry: a huge amount of packages you can use in your project in minutes. That's what package managers are for. The default one is npm. It's stable and it works, but it has problems with node_modules, like every project keeping its own copy of the same libraries. For my newest projects I use pnpm, because it solves them (pnpm motivation) and adds features that help during development, like managing Node versions or patching a dependency.

Vite: frontend tool​

Vite serves your code during development and bundles JavaScript, CSS and other assets for production. You can learn more from the video Vite in 100 Seconds. Remember one thing: Vite removes TypeScript types, but it doesn't check them.

TypeScript: language​

TypeScript is JavaScript with syntax for types.

When I started working in my team, our first frontend projects were written in JavaScript. At first we didn't see the problems. They showed up over the next years, and TypeScript shows you these errors during development:

  • Fancy code. Strange code that doesn't explain itself. You can type any fancy code you write in JavaScript, but when something is difficult to type, a red flag should go up in your mind: rewrite it.
  • What do I have here? You need to display a new piece of information and don't know if it's already there, so you debug just to add a small thing.
  • Typos. Information was missing because a field in a class had a different name.
  • Autocomplete. In JavaScript it's more like guessing. In TypeScript it's real.

All this has a cost. You need to learn how to type, and at the beginning you'll be much slower. (In my case, I typed too much.)

React and MobX​

React: the library for web and native user interfaces.

MobX: simple, scalable state management.

You'll meet them properly in chapters 3 and 4.

Lessons​

  1. Describe a shipment with types: a warm-up in the browser. Add a typed field, then see what the preview does with a typo.

01 / Explain the tool set

Who does what in the tool set

Who does what in the tool setOne typo, expres, and what each tool does with it. Node.js runs the tools. pnpm installs the packages. Vite serves the app and strips the TypeScript types without checking them, so the browser shows S-101 expres anyway. tsc checks the types: pnpm build runs it and fails. VS Code uses the same checks and underlines expres as you type.BrowserS-101 · expresS-102 · standardS-103 · standardVS Codeexpresunderlined as you typepnpminstallsViteserves the app,strips the typestscchecks the typesbuild failsNode.js runs the toolsJavaScriptsame checks

Node runs the tools and pnpm installs them. Vite serves the app and strips the types; VS Code and tsc check them.