How antfu/vitesse works
Vitesse is a Vue-based starter template. The principal runtime path is a visitor entering the SSG-created Vue app, which presents file-based pages through layouts; the app also installs feature modules for localization, Pinia state, and PWA registration. The README documents additional template capabilities such as Markdown pages, component/API auto-imports, and styling. Some page-to-component and state-consumer links are omitted because those source excerpts were not provided.
Main entry points: main.ts App bootstrap · App.vue Root app · components Auto-imported components · TheFooter.vue Footer controls
Components 21
App runtime
- App bootstrap
src/main.ts - Root app
src/App.vue
App features
- Dark mode
src/composables/dark.ts - Localization
src/modules/i18n.ts - Locale messages
locales - State integration
src/modules/pinia.ts - User state
src/stores/user.ts - PWA registration
src/modules/pwa.ts - Route progress
src/modules/nprogress.ts - Auto-imported APIs
src
UI and content
- File-based pages
src/pages - Page layouts
src/layouts - Markdown pages
src/pages/about.md - Counter UI
src/components/TheCounter.vue - Input UI
src/components/TheInput.vue - Footer controls
src/components/TheFooter.vue - Auto-imported components
src/components - UnoCSS and icons
uno.config.ts - Component preview
src
Rendered output
- Static rendering
src/main.ts
Other components
- Visitor
Connections 22
- Visitor → Root app: opens
README.md - App bootstrap → Root app: creates app
src/main.ts - App bootstrap → File-based pages: loads routes
src/main.ts - App bootstrap → Page layouts: sets up
src/main.ts - Root app → File-based pages: renders route
src/App.vue - File-based pages → Markdown pages: includes
README.md - App bootstrap → Static rendering: renders statically
src/main.ts - App bootstrap → Localization: installs
src/main.ts - App bootstrap → State integration: installs
src/main.ts - App bootstrap → PWA registration: installs
src/main.ts - App bootstrap → Route progress: installs
- Localization → Locale messages: loads messages
src/modules/i18n.ts - Footer controls → Localization: changes locale
src/components/TheFooter.vue - Root app → Dark mode: reads theme
src/App.vue - Footer controls → Dark mode: toggles theme
src/components/TheFooter.vue - Auto-imported components → Counter UI: provides
README.md - Auto-imported components → Input UI: provides
README.md - Auto-imported components → Footer controls: provides
README.md - State integration → User state: hosts store
README.md - Auto-imported APIs → Counter UI: supports auto-imports
README.md - UnoCSS and icons → Root app: styles interface
README.md - Component preview → Auto-imported components: previews
README.md