$ show antfu-collective/vitesse
Vitesse is an opinionated Vue 3 + Vite starter template created by Anthony Fu. It provides a pre-configured development environment with file-based routing, auto-importing of components and APIs, state management via Pinia, internationalization (i18n) with lazy-loaded locale files, PWA support, Markdown-as-Vue-components, and utility-first CSS via UnoCSS. The template uses static site generation (SSG) via vite-ssg and includes critical CSS extraction. It is designed to accelerate the setup of modern Vue applications by integrating a curated set of plugins and tools. The codebase is well-structured, with clear separation of concerns: pages, layouts, composables, stores, and modules. The i18n module demonstrates a reusable pattern for lazy-loading translations using Vite's glob imports. While the template is primarily a collection of configurations and boilerplate, it exhibits high craftsmanship in its integration choices and adherence to Vue 3 best practices.
The LLM identified 1 files worth highlighting for reuse:
This module sets up Vue I18n with lazy-loaded locale files using Vite's glob import. It dynamically imports YAML locale files, caches loaded languages, and provides a function to switch locales asynchronously. The pattern is self-contained and can be extracted to any Vue project that needs i18n with code-splitting. It demonstrates non-obvious use of Vite's import.meta.glob for resource loading and is a clean example of a user module in the Vitesse architecture.