v1.0.0Version 1.0: 122 business website templates in Tailwind HTML, Tailwind + Vite, Next.js, React, Astro, Vue, Nuxt, SvelteKit and Laravel.

Docs/06 Formats

Vue + Vite format

Reference for the Briks Vue + Vite format: package versions, file layout, routes, commands, the prerendered dist build and static hosting.

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/vue 3.5.0 for page metadata
  • @phosphor-icons/vue 2.2.1
  • Vite 8.3.8 with @vitejs/plugin-vue 6.0.11
  • Tailwind CSS 4.3.5 through @tailwindcss/vite
  • TypeScript 6.0.3 with vue-tsc 3.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 .vue file per page: index.vue, about.vue, and shop/[slug].vue for an address with a parameter. Each page sets its own metadata. pages/not-found.vue is the 404 page.
  • layouts/default.vue is 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 .vue file each, with index.ts. components/custom/ holds the site's own sections.
  • composables/ holds shared logic such as usePathname, useMotion, useReducedMotion, useScrollLock and useFocusTrap.
  • content/ holds site.ts (words and theme), owner.ts (logo, favicon, noindex, aiCrawlers, verification codes and the forms endpoint) and seo.ts.
  • lib/ holds helpers, including the one that writes page metadata.
  • assets/globals.css is the Tailwind source with the colour tokens and dark mode.
  • public/ holds images and fonts.
  • src/main.ts makes the prerendered page interactive in the browser. src/entry-server.ts renders a page to HTML. src/App.vue is the root component. The routes are written from pages/.
  • scripts/ holds dev.mjs and prerender.mjs.
  • vite.config.ts holds the Vite settings.

Typefaces are self-hosted from Fontsource packages, with their CSS in assets/fonts.generated.css.

Commands

  • npm install installs the packages. pnpm and yarn work too.
  • npm run dev starts the dev server at http://localhost:5173. Every page renders as it does on the live site and updates when you save.
  • npm run build builds the browser files and a server bundle, then writes every page as HTML into dist/.
  • npm run preview serves dist/ so you can check the build.
  • npm run typecheck checks types with vue-tsc.
  • npm run format formats 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, then cp .env.example .env and fill it in.
  • npm run db:migrate creates the tables. npm run db:seed adds sample records (optional).
  • npm run dev starts the dev server at http://localhost:5173. It renders the pages and answers /api from the same .env.
  • npm run build, then npm start serves the site at http://localhost:3000. PORT changes it.
  • npm run db:generate writes migrations for SQLite and PostgreSQL after you change db/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.

Next · 07 HelpUpdatesFind the version history, download new Briks versions from your briks.dev account and move your own changes onto a new version.

Your next client site is mostly built.

122 websites, $79 once, for every site you build. New templates and updates are free for life.

Works with any AI agent

  • Claude
  • Claude Code
  • OpenAI
  • Codex
  • Grok
  • Grok Bot
  • OpenClaw
  • Hermes Agent
  • Gemini
  • Antigravity
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Cline
  • Kiro
  • Junie
  • Replit
  • v0
  • Ollama

+ any agent that reads AGENTS.md