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

React + Vite format

Reference for the Briks React + 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 React + Vite format here. Every page is built to a real HTML file, and React then makes it interactive.

Versions

Checked on 23 November 2026.

  • React 19.3.1
  • React Router 8.5.2 (react-router)
  • Vite 8.3.8 with @vitejs/plugin-react 6.3.0
  • Tailwind CSS 4.3.5 through @tailwindcss/vite
  • TypeScript 7.0.2
  • Node.js 24 or newer

Files

  • app/ has one folder per page with a page.tsx. app/layout.tsx wraps every page and exports the site's metadata. app/not-found.tsx is the 404 page. app/globals.css holds the colour tokens and Tailwind.
  • components/ holds the kit components. components/custom/ holds the site's own sections.
  • content/ holds site.ts (words and theme), owner.ts (logo, favicon, noindex, aiCrawlers, verification codes and the forms endpoint) and seo.ts.
  • public/ holds images and fonts.
  • src/routes.ts lists every page with its address and module. A new page is a new app/<route>/page.tsx plus one line in src/routes.ts.
  • src/App.tsx renders the layout around the page for the address.
  • src/entry-client.tsx makes the prerendered page interactive in the browser. src/entry-server.tsx renders a page to HTML.
  • lib/router.ts provides usePathname and notFound on React Router. lib/link.tsx is a plain <a>.
  • lib/metadata.tsx has the Metadata type and <Head>. It writes the title, description, canonical link, social cards, robots and icons from the page's metadata or generateMetadata export, merged with the layout's.
  • vite.config.ts holds the Vite settings.

Typefaces are self-hosted from Fontsource packages. They are imported in app/fonts.generated.ts, with their CSS variables in app/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. PORT changes it. 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.

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 returned by generateStaticParams.

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

app/robots.ts 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/form.tsx.

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, Astro and Vue + Vite.

Next · 06 FormatsAstro formatReference for the Briks Astro format: package versions, file layout, pages, components, behaviours, commands, the dist build and static hosting.

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