// the find
fastify/fastify-vite
Fastify plugin for Vite integration
Official Fastify plugin that embeds Vite's dev server as middleware and handles production bundle serving. Ships with `@fastify/vue` and `@fastify/react` sub-packages that add file-based routing and SSR conventions similar to Nuxt/Next, but built on Fastify instead of a dedicated meta-framework.
The core plugin is genuinely thin — it just wires Vite into Fastify's middleware chain and handles dev/prod switching, so you're not locked into opinionated conventions if you don't want them. The `@fastify/vue` and `@fastify/react` layers are opt-in on top of that. Solid e2e test coverage across hydration, streaming, and SPA modes for both React and Vue. Official org ownership under `fastify/` means it tracks Fastify and Vite releases rather than rotting as a third-party afterthought. The virtual module approach for routing and context is the right call — avoids filesystem coupling at the plugin level.
The `@fastify/react` and `@fastify/vue` packages are essentially mini-frameworks with their own conventions (route modules, layouts, route context) layered on top — the conceptual surface area is large and the docs don't always make clear when you need the sub-package vs. rolling your own renderer. Svelte and Solid appear in the topics but there are no `@fastify/svelte` or `@fastify/solid` packages — just the low-level examples, so SSR support for those frameworks means writing your own renderer from scratch. 1100 stars for an official Fastify org plugin is low, which suggests limited production adoption and thin community Q&A. There's a `TODO.md` in the root, which usually means there are known gaps the maintainers haven't publicly prioritized yet.