{
 "kind": "tool",
 "slug": "vite",
 "path": "tools/vite/",
 "name": "Vite",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Build tools and bundlers",
   "tools/build-tools/"
  ]
 ],
 "lead": "Run and build web apps while you code.",
 "chips": [
  {
   "label": "Build tools and bundlers",
   "path": "tools/build-tools/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install vite"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/vitejs/vite"
  },
  {
   "label": "Website",
   "href": "https://vite.dev"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,",
   "note": "MIT allows use in paid and closed-source products; the built files are your code.",
   "src": "https://github.com/vitejs/vite/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 11, 2026. ",
   "src": "https://github.com/vitejs/vite"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1,238 projects",
   "status": "info",
   "sub": "#1 of 185 in its category",
   "note": "Dependency in 1,238 public GitHub projects set up for AI coding agents that we scanned (19.8%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "http://vite.dev/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Vite does",
   "parts": [
    {
     "t": "prose",
     "text": "Vite is a free tool that runs your web app on your own computer while you build it, and packs it into fast files when you publish. Each time you save, the change shows in the browser at once. It comes with starter templates for React, Vue, Svelte and others."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Start a new app from a template",
       "text": "Your assistant creates a ready React, Vue, Svelte or plain TypeScript project in one command and starts it.",
       "idea": false
      },
      {
       "title": "See changes the moment you save",
       "text": "While you or your assistant edit a page, the open browser tab updates on save, without a full reload in most cases.",
       "idea": false
      },
      {
       "title": "Publish as plain files",
       "text": "One command makes a dist folder of small files you can upload to any static host, and a second one lets you check them first.",
       "idea": false
      },
      {
       "title": "Settings that may reach the browser",
       "text": "Public settings like a site name go into .env with a VITE_ prefix; anything without the prefix stays out of the browser.",
       "idea": false
      },
      {
       "title": "A site that lives in a sub-folder",
       "text": "When the app runs at example.com/shop/ instead of the main address, all links to scripts, styles and pictures are fixed for that folder.",
       "idea": false
      },
      {
       "title": "Modern front-end for a Laravel or Rails site",
       "text": "Keep pages made by your existing server and let Vite handle the scripts and styles, with instant updates while you work.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Vite popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "92",
       "of": "/ 100",
       "l": "Gid Score, #7 overall"
      },
      {
       "n": "288M",
       "l": "downloads a week, npm"
      },
      {
       "n": "84.1K",
       "l": "GitHub stars"
      },
      {
       "n": "1,238",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Vite is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Vite is a dependency in 1,238 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (25.4% of the 4,867 JavaScript/TypeScript ones), #1 of 185 in build tools and bundlers.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 4,635; those are left out of every share on this page.",
      "The most used alternative in our scan is SWC (110 projects).",
      "Projects that use it most often also use Tailwind CSS (72.4%), Vitest (53.5%), React (66.7%).",
      "It is more common in projects set up for Junie (68.9%) than for GitHub Copilot (18.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "736 projects, 22.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "618 projects, 25.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "548 projects, 18.1%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "144 projects, 30.7%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "134 projects, 28.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "107 projects, 31.2%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "70 projects, 25.1%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "51 projects, 68.9%",
       "v": "Junie",
       "path": "agents/junie/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 72.4% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 53.5% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 83.5% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 34.1% of its projects",
       "v": "jsdom",
       "path": "tools/jsdom/"
      },
      {
       "l": "In 34.1% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 62.0% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 41.6% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Vite in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Dev server only transforms what the page asks for",
       "v": "Source files are served over native ESM, and the browser loads only what the current page needs. The Why Vite page says that when Vite was first created, this split made dev server startup \"nearly instant, regardless of application size\". On edit, HMR updates just the changed module without a full page reload."
      },
      {
       "l": "Rolldown unified the esbuild and Rollup pair",
       "v": "Vite used to run esbuild in dev and Rollup in build. The maintainers write that the two pipelines behaved differently and needed glue code. Rolldown is written in Rust and uses Oxc. It was built to unify both into a single bundler with the same plugin API."
      },
      {
       "l": "Plugins follow Rollup's interface",
       "v": "The site says Vite plugins extend Rollup's plugin interface with a few Vite-specific options. It also says the API is fully typed and \"Designed to be built on top of.\""
      },
      {
       "l": "Downstream projects are tested on every change",
       "v": "The team runs vite-ecosystem-ci, which tests major ecosystem projects against each Vite change. The maintainers call ecosystem health \"part of the release process\"."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Dev mode assumes a modern browser",
       "v": "Vite sets <code>esnext</code> as the dev transform target and does no syntax lowering. Production builds target Baseline Widely Available browsers, which for this major means browser versions released around mid-2023. Older browsers need a lowered target or <code>@vitejs/plugin-legacy</code>."
      },
      {
       "l": "Node.js version floor",
       "v": "The docs require Node.js 20.19+ or 22.12+. Some templates need a newer version than that."
      },
      {
       "l": "Unbundled dev can slow very large apps",
       "v": "The maintainers write that exceptionally large codebases can see slow page loads because of the number of unbundled requests. A full bundle mode for the dev server is described as something the team is exploring."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Default npm scripts in a scaffolded project"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Json",
       "code": "{\n  \"scripts\" : {\n    \"dev\" : \"vite\" , // start dev server, aliases: `vite dev`, `vite serve`\n    \"build\" : \"vite build\" , // build for production\n    \"preview\" : \"vite preview\" // locally preview production build\n  }\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Vite",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/vitejs",
        "Open Collective: https://opencollective.com/vite",
        "Own page: https://github.com/vitejs/vite?sponsor=1",
        "44 GitHub sponsors"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "vite: Expert guidance for Vite development with modern build tooling, HMR, framework integrations, and performance optimization",
        "vite: Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plu",
        "vite: Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plu"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Vite vs webpack",
         "note": "used together in 13 projects",
         "path": "tools/compare/vite-vs-webpack/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "@vitejs/plugin-react: Official React plugin",
        "@vitejs/plugin-react-swc: React plugin using SWC",
        "@vitejs/plugin-vue: Official Vue SFC plugin",
        "@vitejs/plugin-vue-jsx: Vue JSX support",
        "@vitejs/plugin-basic-ssl: Self-signed HTTPS for dev",
        "@vitejs/plugin-legacy: Legacy browser support"
       ]
      },
      {
       "title": "More in Build tools and bundlers",
       "path": "tools/build-tools/",
       "items": [
        {
         "text": "Turborepo",
         "path": "tools/turbo/"
        },
        {
         "text": "esbuild",
         "path": "tools/esbuild/"
        },
        {
         "text": "Babel (JavaScript)",
         "path": "tools/babel-npm/"
        },
        {
         "text": "Laravel Vite Plugin",
         "path": "tools/laravel-vite-plugin/"
        },
        {
         "text": "React Compiler Babel Plugin",
         "path": "tools/babel-plugin-react-compiler/"
        },
        {
         "text": "Nx",
         "path": "tools/nx/"
        },
        {
         "text": "vite-tsconfig-paths",
         "path": "tools/vite-tsconfig-paths/"
        },
        {
         "text": "Nx JS Plugin",
         "path": "tools/nx-js/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Vite",
       "me": true,
       "facts": [
        "MIT",
        "Gid 92",
        "288M/wk"
       ]
      },
      {
       "name": "esbuild",
       "why": "Pick esbuild when you only need a fast bundling or minify step for scripts, not a whole dev setup.",
       "path": "tools/esbuild/",
       "facts": []
      },
      {
       "name": "webpack",
       "why": "Pick webpack when a project already relies on its configuration and loaders.",
       "path": "tools/webpack/",
       "facts": [
        "MIT",
        "Gid 83",
        "76.9M/wk"
       ]
      },
      {
       "name": "Parcel",
       "why": "Pick Parcel when you want a bundler that works with no configuration file at all.",
       "path": "tools/parcel/",
       "facts": []
      },
      {
       "name": "SWC",
       "why": "Super-fast Rust-based JavaScript compiler and bundler alternative to Babel.",
       "path": "tools/swc-core/",
       "facts": [
        "Apache-2.0",
        "Gid 78",
        "61.9M/wk"
       ]
      }
     ],
     "more": "Compare Vite with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Create a React + TypeScript app with Vite 8 (vite 8.3.7, Node 20.19+ or 22.12+), keep secrets out of VITE_ variables, and add a type check (tsc --noEmit) before vite build."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create a project from a template and follow the prompts.",
       "code": "npm create vite@latest",
       "src": "https://vite.dev/guide/"
      },
      {
       "text": "Or add Vite to an existing folder that has an index.html and run it.",
       "code": "npm install -D vite\nnpx vite\n",
       "src": "https://vite.dev/guide/"
      },
      {
       "text": "Build the files for publishing.",
       "code": "npx vite build",
       "src": "https://vite.dev/guide/build"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Vite\n- Scaffold with `npm create vite@latest my-app -- --template <name>`. With npm 7+, the extra `--` is needed. Add `--no-interactive` to skip the prompts.\n- Use the standard scripts: `vite` for dev, `vite build` for production, and `vite preview` to check the build locally.\n- Keep `vite.config.js` in the project root. If you change the root with `vite serve some/sub/dir`, move the config file there too.\n- Write explicit import paths such as `import './Component.jsx'`. With TypeScript, set `\"moduleResolution\": \"bundler\"` and `\"allowImportingTsExtensions\": true`.\n- Avoid barrel files. Import directly instead, for example `import { slash } from './utils/slash.js'`.\n- Only add files to `server.warmup` if they are frequently used. Keep the `buildStart`, `config` and `configResolved` plugin hooks short.\n- For older browsers, lower the build target or add `@vitejs/plugin-legacy`. To replace the Vite version used by dependencies, use npm or pnpm overrides.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "VITE_STRIPE_SECRET_KEY=... in .env, read in front-end code",
       "fix": "Keep secrets in variables without the VITE_ prefix and use them only in server or serverless code",
       "why": "Every VITE_ value is copied into the public JavaScript files at build time."
      },
      {
       "dont": "Running vite preview on the server as the live site",
       "fix": "Upload dist/ to a static host, or serve it with a real web server",
       "why": "vite preview is only for checking the build on your own machine."
      },
      {
       "dont": "Treating a successful vite build as proof the TypeScript has no errors",
       "fix": "Run tsc --noEmit before vite build, or add vite-plugin-checker to see type errors during development",
       "why": "Vite strips types file by file and never checks them."
      },
      {
       "dont": "New esbuild or optimizeDeps.esbuildOptions settings in a Vite 8 config",
       "fix": "Use the oxc and optimizeDeps.rolldownOptions settings",
       "why": "In Vite 8 the esbuild options are only converted for backward compatibility and are deprecated."
      },
      {
       "dont": "Editing .env while npm run dev is running and expecting the new value",
       "fix": "Stop and restart the dev server after changing .env files",
       "why": "Vite reads .env files once, at start."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I use it for a paid product?",
       "a": "Yes. Vite is MIT-licensed.",
       "evidence": {
        "url": "https://github.com/vitejs/vite/blob/main/LICENSE",
        "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy"
       }
      },
      {
       "q": "Can I put my secret keys in .env?",
       "a": "Yes, but never with the VITE_ prefix. VITE_ values are written into the public files; keep secrets on a server.",
       "evidence": {
        "url": "https://vite.dev/guide/env-and-mode",
        "quote": "The values of these variables are bundled into your source code at build time."
       }
      },
      {
       "q": "Is vite preview a production server?",
       "a": "No. It only lets you look at the built files on your own computer. Upload dist/ to a host instead.",
       "evidence": {
        "url": "https://vite.dev/guide/static-deploy",
        "quote": "It is important to note that vite preview is intended for previewing the build locally and not meant as a production server."
       }
      },
      {
       "q": "What changed in Vite 8?",
       "a": "It now uses Rolldown and Oxc instead of esbuild and Rollup. Old esbuild settings still work for now but are deprecated.",
       "evidence": {
        "url": "https://vite.dev/guide/migration",
        "quote": "Vite 8 uses Rolldown and Oxc based tools instead of esbuild and Rollup"
       }
      },
      {
       "q": "I changed .env and nothing happened. Why?",
       "a": "Vite reads .env files only when it starts. Restart the dev server.",
       "evidence": {
        "url": "https://vite.dev/guide/env-and-mode",
        "quote": ".env files are loaded at the start of Vite. Restart the server after making changes."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm vite"
  ],
  [
   "Category",
   "Build tools and bundlers"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v8.3.4, October 8, 2026"
  ],
  [
   "On GitHub since",
   "April 2020"
  ],
  [
   "Gid Score",
   "92.0"
  ],
  [
   "Rank in category",
   "#1 of 185"
  ],
  [
   "GitHub",
   "vitejs/vite"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "It needs Node.js 20.19 or newer, or 22.12 or newer, on the computer that runs it.",
  "By default the published files target browsers from around mid-2023; an official add-on makes extra files for older browsers.",
  "It does not check TypeScript types; it only turns them into plain JavaScript. Your editor or a separate check has to catch type mistakes."
 ],
 "checked_line": "Read by AgentGid from 12 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/vitejs.png"
}