Updated 23 November 2026
You can look up the versions, files and commands of the Vue + Vite format here. Every page is built to a real HTML file, and Vue then makes it interactive.
Versions
Checked on 23 November 2026.
- Vue 3.5.46
- Vue Router 5.5.1 (
vue-router) @unhead/vue3.5.0 for page metadata@phosphor-icons/vue2.2.1- Vite 8.3.8 with
@vitejs/plugin-vue6.0.11 - Tailwind CSS 4.3.5 through
@tailwindcss/vite - TypeScript 6.0.3 with
vue-tsc3.3.14 - Node.js 24 or newer
GSAP and Three.js are included only in templates that use them, and load on demand.
Files
pages/has one.vuefile per page:index.vue,about.vue, andshop/[slug].vuefor an address with a parameter. Each page sets its own metadata.pages/not-found.vueis the 404 page.layouts/default.vueis the frame around every page. It sets the theme colours on<html>and holds the header and footer slots.components/kit/holds the kit components, one.vuefile each, withindex.ts.components/custom/holds the site's own sections.composables/holds shared logic such asusePathname,useMotion,useReducedMotion,useScrollLockanduseFocusTrap.content/holdssite.ts(words and theme),owner.ts(logo, favicon,noindex,aiCrawlers, verification codes and the forms endpoint) andseo.ts.lib/holds helpers, including the one that writes page metadata.assets/globals.cssis the Tailwind source with the colour tokens and dark mode.public/holds images and fonts.src/main.tsmakes the prerendered page interactive in the browser.src/entry-server.tsrenders a page to HTML.src/App.vueis the root component. The routes are written frompages/.scripts/holdsdev.mjsandprerender.mjs.vite.config.tsholds the Vite settings.
Typefaces are self-hosted from Fontsource packages, with their CSS in assets/fonts.generated.css.
Commands
npm installinstalls the packages.pnpmandyarnwork too.npm run devstarts the dev server athttp://localhost:5173. Every page renders as it does on the live site and updates when you save.npm run buildbuilds the browser files and a server bundle, then writes every page as HTML intodist/.npm run previewservesdist/so you can check the build.npm run typecheckchecks types withvue-tsc.npm run formatformats the code with Prettier.
New page
Add pages/<name>.vue, give it its metadata and add it to the navigation in content/site.ts. The routes and the sitemap follow pages/ automatically after a rebuild.
Prerendered pages
npm run build writes dist/index.html, dist/about/index.html and one file for each further page, plus 404.html, sitemap.xml and robots.txt. Search engines and AI crawlers read the full content of every page. A page with an address parameter, such as /stories/:slug, is written once for each value the page lists in its staticParams export.
SITE_URL sets the address used in the sitemap, the robots file and the canonical links:
SITE_URL=https://your-domain.com npm run build
Without it they use https://example.com.
AI crawlers
robots.txt always allows search engines. AI crawlers are disallowed unless aiCrawlers: true is set in content/owner.ts.
Forms
Set owner.forms.endpoint in content/owner.ts to the address of your form service. See Forms. The submit code is in components/kit/Form.vue.
Static hosting
Upload dist/ to any static host, such as Netlify, Vercel, Cloudflare Pages or Workers static assets, GitHub Pages or nginx. Set the build command to npm run build and the output folder to dist. See Deploy a static site. Links are root-relative, so a site served from a sub-folder, such as a GitHub Pages project site, needs Vite's base setting in vite.config.ts. A custom domain or a site at the root needs no setting.
Server build
7 templates have accounts and a database: bookshop, immigration-counsel, restaurant-stock-dashboard, solar-installation, tattoo-studio, vet-practice-dashboard and yacht-brokerage. They run on a Node host. server.ts is one Node server (Hono). It serves the built pages from dist/ and answers /api/* with the template's API (api/index.ts) on the same address, so sign-in cookies work. Only dist/ is served as files. The code, the database and .env are never served.
They use Hono 4.13.20, Drizzle ORM 0.45.4 and Better Auth 1.7.27. The database is a SQLite file by default (DATABASE_URL=file:./data/site.db), Turso or PostgreSQL.
npm install, thencp .env.example .envand fill it in.npm run db:migratecreates the tables.npm run db:seedadds sample records (optional).npm run devstarts the dev server athttp://localhost:5173. It renders the pages and answers/apifrom the same.env.npm run build, thennpm startserves the site athttp://localhost:3000.PORTchanges it.npm run db:generatewrites migrations for SQLite and PostgreSQL after you changedb/schema.ts.
The first admin signs in at /admin/sign-in with ADMIN_EMAIL and ADMIN_PASSWORD (at least 10 characters), then changes the password. The pages cannot go on a static host alone, because the accounts and records need the API. Use a Node 24 or newer host with persistent storage for FILES_DIR. See Deploy a Node site.
Other formats
The package also includes Tailwind HTML, Tailwind + Vite, Next.js, React + Vite and Astro.
