Skip to content

Vite

A fast frontend build tool with a quick dev server and optimized production builds.

Stars
83.7k
Forks
9.1k
Licence
MIT
Language
TypeScript
Last update
4 days ago
Type
Dev tool

What it is

Vite is a build tool for modern web projects. Its dev server serves your code quickly while you work, using native ES modules and fast hot module replacement so changes appear almost immediately in the browser. For production, its build command bundles your code into optimized static files.

  • Start a new frontend project with the create-vite scaffolding tool
  • Run a local dev server with fast hot module replacement while editing code
  • Produce optimized static assets for deploying a web app to production
  • Extend the build with plugins through the documented Plugin API

Great for

  • Frontend developers starting a new modern web project
  • Teams who want faster local dev server startup and hot reloading
  • Developers who want a plugin system and typed JavaScript APIs

Not ideal for

  • People who only need a finished app and not a development toolchain, since Vite is a tool for building apps
  • Non-developers, because setup and use require JavaScript project knowledge
Step-by-step guide: how to use ViteInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js (version range given by the node compatibility badge; exact version not stated in the README)

    Scaffold a new project (per the create-vite package)

    npm create vite@latest
  2. 2

    Run it

    • Run the scaffolding command to create a project folder
    • Change into the new project folder
    • Install dependencies with your package manager
    • Start the dev server and open the local URL it prints
  3. 3

    Get the most out of it

    • Read the Features guide on vite.dev to learn about HMR and native ES module support
    • Use the Plugin API to add functionality to the build
    • Use the JavaScript API to drive Vite from your own scripts
    • Check the packages list (vite, @vitejs/plugin-legacy, create-vite) to pick what you need

Downloads

Strengths

  • Dev server starts quickly and updates quickly during editing, per the README
  • Production build outputs optimized static assets with little manual configuration
  • Extensible through a plugin API and JavaScript API with full typing support

Trade-offs

  • The README is brief and defers most detail to the external documentation site
  • Its production bundling depends on Rolldown, a separate project, so the README gives limited detail on how that works for users
  • Plugin ecosystem and compatibility details are not covered in the README

How it compares

ProjectStarsTypeLevelUpdatedBest for
vite (this)83.7kDev toolintermediate4 days agoFrontend developers starting a new modern web project
webpack66kDev toolintermediate4 days agoFrontend developers building single-page or multi-page web apps
parcel44kDev toolbeginner4 days agoWeb developers who want a bundler that works without a config file
esbuild40.1kDev toolintermediate3 months agoDevelopers who want fast builds for JavaScript, TypeScript, or CSS projects
rspack13kDev toolintermediate4 days agoTeams with a large webpack project who want faster builds without rewriting their config
wxt10.7kDev toolintermediate4 days agoDevelopers building a browser extension who want a structured project setup

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.