# fastify/fastify-vite

Fastify plugin for Vite integration

Repository: https://github.com/fastify/fastify-vite
Canonical: https://ross.abutalabs.com/products/fastify-vite
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, vue3, ssr, server-rendering, fastify, universal, isomorphic, fastify-plugin, react, server-side-rendering, solid, solidjs, svelte, sveltejs
Last push: 2026-09-02T09:02:56+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 95, longevity 100
- inputs: {"age_days": 2006, "days_push": 0, "days_rel": 34, "gap_med": 0, "n_releases_24m": 58}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1125, forks 102 (observed 2026-09-03T02:15:11.866732+00:00)

## What it is
A Fastify plugin that integrates Vite into Fastify applications, running Vite's dev server as middleware and serving production bundles with SSR support. It also hosts @fastify/vue and @fastify/react, which provide Nuxt/Next.js-like functionality.

## Use cases
- serve a Vite app with server-side rendering from Fastify
- run Vite dev server as middleware in a Fastify backend
- build a Nuxt-like Vue app on Fastify
- build a Next.js-like React app on Fastify
- integrate Vite production bundles with a Fastify API server

## When to choose
- you want Fastify as your backend with Vite-powered SSR frontend
- you want Nuxt/Next-style DX without leaving the Fastify ecosystem
- you need fine-grained control over router integration between Vite and Fastify

## When to avoid
- you use Express or another non-Fastify server
- you want a fully batteries-included framework like Next.js or Nuxt itself
- your app is purely static with no server logic

## Facets
- artifact type: plugin
- maturity: active
- function: ssr, middleware, web-framework, routing, static-site-generator
- domain: web-development, frontend, backend
- platform: -
- tags: fastify, vite, server-side-rendering, vue, react, svelte, solidjs, isomorphic, nodejs, web-server

## Member repositories
- fastify/fastify-vite (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:11.866732+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:31.409674+00:00, confidence not recorded.
  - readme: https://github.com/fastify/fastify-vite (fetched 2026-09-03T02:15:11.866732+00:00, sha dc178decb104)
  - registry_npm: https://registry.npmjs.org/fastify-vite (fetched 2026-08-29T12:43:54.533617+00:00, sha 3ddb49b04c98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
