Back to stack index

Tool

Vite

Front-end dev server and bundler for modern AI dashboards.

Short answer

Vite is an open-source build tool and development server for web front ends, released under the MIT license. It starts a dev server almost instantly, updates the page as you edit, and bundles the app for production. Many self-hosted AI apps build their interfaces with it, including Open WebUI, Langflow, AnythingLLM and LibreChat in our directory. The latest release is Vite 8.3.5, from October 21, 2026. Vite 8, released March 12, 2026, replaced the previous pair of esbuild and Rollup with Rolldown, a single bundler written in Rust, with builds reported to be 10 to 30 times faster while keeping plugin compatibility. Vite 8.1, on June 23, added an experimental bundled dev mode and chunk import maps. In June 2026, Vite's team announced investment from Cloudflare, while keeping the project vendor-neutral and MIT-licensed. Vite is free; it works with React, Vue, Svelte, Solid and plain TypeScript.

Latest release
Vite 8.3.5, October 21, 2026
Vite GitHub releases
Vite 8
March 12, 2026; Rolldown as single bundler
vite.dev blog
License
MIT
vite.dev
Directory projects
Open WebUI, Langflow, AnythingLLM, LibreChat
Project repositories

Updated October 21, 2026How we evaluate tools

Official site

Directory projects (4)

  • Open WebUI

    Full-featured web UI for Ollama and OpenAI-compatible backends.

  • Langflow

    Node editor for LangChain-style flows exportable as Python or API.

  • AnythingLLM

    Document chat and workspaces with optional vector DB and multi-user mode.

  • LibreChat

    Multi-model chat UI with plugins, agents, and self-hosted deployment.

Vite for AI front ends: how Open WebUI, Langflow, AnythingLLM and LibreChat build their interfaces in 2026

What Vite does

Vite, French for "quick", was created by Evan You, the author of Vue, in 2020. Before Vite, tools such as webpack bundled the whole app before the dev server could start, which took tens of seconds for large projects. Vite serves source files to the browser as native ES modules on demand, so the server starts in milliseconds and edits show up almost instantly through hot module replacement. For production, it bundles the app into optimized files with code splitting and minification.

Vite is now maintained by a team that includes VoidZero, the company Evan You founded in 2024 to build Rust-based JavaScript tooling, including Rolldown and the Oxc parser and linter.

Which directory projects use Vite

ProjectFront-end stackBack end
Open WebUISvelteKit on VitePython with FastAPI
LangflowReact on VitePython with FastAPI
AnythingLLMReact on ViteNode.js server and collector
LibreChatReact on ViteNode.js with Express and MongoDB

The pattern is common in self-hosted AI apps: a Vite-built single-page app talks to a Python or Node.js API that handles models, retrieval and storage. Python back ends are covered on the FastAPI stack page.

Vite 8 and Rolldown

Earlier Vite versions used two tools: esbuild for fast dependency pre-bundling during development and Rollup for production builds. That worked, but the two behaved slightly differently, so some bugs appeared only in production.

Vite 8, released on March 12, 2026, replaced both with Rolldown, a Rust bundler compatible with Rollup's plugin interface. The announcement reported production builds 10 to 30 times faster in many projects. Vite 8 also added:

AdditionEffect
Integrated DevtoolsInspect modules, plugins and build output
tsconfig paths (opt-in)Resolve TypeScript path aliases without a plugin
emitDecoratorMetadata supportHelps frameworks that rely on decorators
Wasm in server-side renderingLoad WebAssembly modules in SSR
Browser console forwardingSend browser logs to the terminal, useful for AI coding agents reading errors

Console forwarding deserves a note: coding agents such as Claude Code and Cursor read terminal output, so seeing browser errors there lets them fix front-end bugs without a separate browser tool.

Vite 8.1 and later

Vite 8.1, released June 23, 2026, added two experimental features:

  • Bundled dev mode. Very large apps with thousands of modules can load slowly in development, because the browser fetches each module separately. Bundled dev mode bundles during development too, using Rolldown's speed, to cut page load times.
  • Chunk import maps. Uses browser import maps so changing one module does not change the hashed file names of every chunk that imports it, improving long-term caching.

It also added WebAssembly ESM integration. The 8.2 and 8.3 lines continued with fixes and improvements; 8.3.5 shipped on October 21, 2026.

The Cloudflare investment

In June 2026, Vite's team announced investment from Cloudflare. The announcement said Vite remains vendor-agnostic, keeps its own governance and stays under the MIT license. Cloudflare already maintains a Vite plugin that runs apps in its Workers runtime during development. For users, nothing changes in how Vite is licensed or which hosts it supports.

Vite compared with Next.js for AI front ends

FactorVite single-page appNext.js
RenderingClient-side by default; SSR through frameworksServer components, SSR and static generation built in
Back endSeparate service, often PythonAPI routes and server actions in the same app
HostingAny static host plus your APIVercel or any Node.js host
Best forSelf-hosted tools, dashboards, apps with a Python back endPublic websites, SEO pages, full-stack TypeScript apps
AI streamingRead streams from your API with fetch or the AI SDK's UI hooksAI SDK with server-side streaming in route handlers

For self-hosted AI tools, a Vite front end has one practical advantage: the built files are static, so they can be served by the Python back end itself, giving users a single container to run. See the Next.js stack page for the other approach.

Building an AI chat interface with Vite

A typical setup:

  1. Create the project with npm create vite@latest and choose React, Vue or Svelte with TypeScript.
  2. Use the AI SDK's UI package or a library such as assistant-ui for chat components, or write your own using fetch and a stream reader.
  3. Point requests to your API through Vite's dev server proxy during development to avoid cross-origin issues.
  4. Render streamed Markdown with a sanitizing renderer, and highlight code blocks.
  5. Build with vite build and serve the dist folder from your back end or a CDN.

Never put model API keys in a Vite app. Variables prefixed with VITE_ are embedded in the client bundle and visible to anyone; calls to model providers must go through a server.

Performance tips

  • Use dynamic import() for heavy features such as code editors, PDF viewers and charting libraries so they load only when needed.
  • Check bundle size with Vite's Devtools or a visualizer plugin.
  • Lazy-load Markdown and syntax highlighting languages.
  • Precompress assets with Brotli when serving from your own back end.

Plugins common in AI apps

PluginPurpose
@vitejs/plugin-reactReact fast refresh and JSX
@sveltejs/kit/viteSvelteKit, used by Open WebUI
@vitejs/plugin-vueVue single-file components; see the Vue stack page
@tailwindcss/viteTailwind CSS v4; see the Tailwind stack page
vite-plugin-pwaInstallable app with offline caching
@cloudflare/vite-pluginRun in the Workers runtime during development

Upgrading an older AI front end

Many open-source AI apps started on Vite 4 or 5 and have upgraded in steps. If you maintain a fork, move one major version at a time, read each migration guide, and run the production build after each step, since build-only bugs are the most common problem. With Vite 8, look for plugins that relied on esbuild-only options, and check that custom Rollup options still apply; the compatibility layer handles most of them, but warnings in the build log point to settings to update. Keep Node.js at a supported version, since recent Vite releases require modern Node.

Testing Vite apps

Vitest, a test runner from the same team, reuses Vite's configuration and transforms, so tests understand the same aliases, plugins and TypeScript settings as the app. It runs unit and component tests quickly and supports a browser mode that runs tests in a real browser through Playwright. For full end-to-end tests of chat flows, use Playwright against the built app; see the Playwright stack page.

Related: React stack, Vue stack, TypeScript stack, Next.js stack, Tailwind CSS stack, Stack index.

Frequently asked questions

What is Vite used for?

Developing and building web front ends. During development it serves source files with instant hot updates; for production it bundles, minifies and splits code into optimized files. It is the default build tool for Vue, SvelteKit, SolidStart, Astro, Remix-based React Router apps and new React single-page apps.

What is Rolldown?

A JavaScript bundler written in Rust by the team at VoidZero, designed to be compatible with Rollup's plugin API. Since Vite 8 it is Vite's only bundler, replacing esbuild for development and Rollup for production, which removes differences between the two and speeds up builds.

Should an AI app use Vite or Next.js?

Use Vite for a single-page app that talks to a separate back end, which is how Open WebUI, LibreChat and Langflow are built. Use Next.js when you want server rendering, server-side API routes and one framework for front and back end, especially if you deploy to Vercel. Both are good choices.

Did Cloudflare buy Vite?

No. In June 2026 Vite's team announced an investment from Cloudflare. The announcement stated that Vite stays vendor-agnostic, keeps its independent governance and remains MIT-licensed.

Is Vite 8 hard to upgrade to?

For most apps the upgrade is small, because Rolldown supports Rollup plugins and Vite's configuration stayed largely the same. Apps that used esbuild-specific or Rollup-specific options need to check the migration guide, and a compatibility layer covers many older settings.

Sources

  1. Vite 8 announcement
  2. Vite releases
  3. Vite documentation
  4. Rolldown