Turbopack
Turbopack is a tool that assembles the program code of a website for the browser. It is written in the language Rust and is meant primarily to shorten developers' waiting time when trying out changes.
A modern website does not consist of a single file. It often consists of thousands of small text files containing program code, plus images, fonts, and styling rules. A browser could only load this quantity individually very slowly. That’s why there are programs that pack everything together beforehand into a few compact files. Turbopack is such a program, developed by the company Vercel. It belongs to the web toolkit Next.js, with which very many well-known websites are built.
Why developers care about seconds
Anyone programming a website changes a line and wants to see immediately how it looks. For large projects, this reloading used to take several seconds, sometimes considerably longer. That sounds harmless, but it happens hundreds of times per workday. A few seconds thus quickly turn into hours per week.
Even more important is the break in concentration. Anyone who has to wait with every change loses their train of thought and switches windows in the meantime. Fast tools keep the workflow going. That is exactly what Turbopack aims for: it is meant to make changes visible almost immediately.
Behind this is also a competition between providers. Tools such as Webpack, Vite, or esbuild compete for the same users. A toolkit like Next.js becomes more attractive when working with it is pleasant. Speed has therefore become a tangible selling point.
Rust, caches, and the trick with requests
Turbopack is written in Rust. Rust is a programming language that is translated directly into machine instructions and therefore runs very fast. Older tools like Webpack, by contrast, are written in JavaScript, which is only translated at runtime. This difference alone brings a noticeable boost in speed.
The second building block is a very precise cache. Turbopack remembers the result of every single work step. If you change a file, only the steps that actually depend on it are recalculated. Everything else comes back unchanged from storage.
There is also a third trick: while developing, Turbopack does not build the entire project. It only builds the page that is currently open in the browser. If you call up another page, it is delivered afterward. For a project with a thousand subpages, this saves an enormous amount of work. For the finished, published version, however, everything is built completely.
Turbopack in real projects and in the news
Turbopack is not directly visible to ordinary users. It runs on the developer’s machine, not in the visitor’s browser. Anyone who visits a website only sees the result: finished, packed-together files that load quickly. So one encounters the name mainly in trade news and in the documentation of Next.js.
In practice, Turbopack shows up as soon as someone starts a Next.js project. Since version 15, it has been the default there for the development environment; support for the finished build was added later. Anyone learning to program themselves and trying out Next.js may therefore be using Turbopack without having consciously chosen it.
A common misconception: Turbopack does not automatically make websites faster for visitors. It primarily speeds up the building process. Whether a page loads quickly additionally depends on images, servers, and the scope of the code. Turbopack is a tool for the workshop, not a turbo for the finished car.