# antfu-collective/vite-ssg

Static site generation for Vue 3 on Vite

Repository: https://github.com/antfu-collective/vite-ssg
Canonical: https://ross.abutalabs.com/products/vite-ssg
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, vite, ssg, ssr
Last push: 2026-03-20T15:19:13+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 69, longevity 100
- inputs: {"age_days": 2081, "days_push": 166, "days_rel": 209, "gap_med": 17, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1572, forks 140 (observed 2026-08-28T04:05:05.567582+00:00)

## What it is
Vite SSG is a library that adds static site generation to Vue 3 apps built with Vite, rendering routes to static HTML at build time. It integrates with vue-router and @unhead/vue, supports single-page mode, ClientOnly components, and critical CSS inlining.

## Use cases
- generate static HTML pages from a Vue 3 Vite app
- pre-render Vue Router routes for SEO
- build a fast static site with Vue 3 without a full SSR server
- inline critical CSS into pre-rendered pages
- manage document head/meta tags during static generation
- create a single-page static build of a Vue app

## When to choose
- you have a Vue 3 + Vite app and want static pre-rendering
- you want SEO-friendly static HTML with client-side hydration
- you prefer a lightweight SSG over Nuxt for simple sites
- you already use vue-router and want route-level static generation

## When to avoid
- you need full server-side rendering at runtime
- your site is built with React or another non-Vue framework
- you need dynamic server-rendered content per request
- you require CJS support since the library is ESM-only

## Facets
- artifact type: library
- maturity: active
- function: ssr, static-site-generator, build-tool, web-framework
- domain: web-development, frontend, developer-tools
- platform: cli
- tags: vue3, vite, ssg, vue-router, unhead, critical-css, nodejs, web-server

## Member repositories
- antfu-collective/vite-ssg (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:05.567582+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-30T03:58:05.646107+00:00, confidence not recorded.
  - readme: https://github.com/antfu-collective/vite-ssg (fetched 2026-08-28T04:05:05.567582+00:00, sha dc3ae8c8f9f4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
