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-react6.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 apage.tsx.app/layout.tsxwraps every page and exports the site's metadata.app/not-found.tsxis the 404 page.app/globals.cssholds the colour tokens and Tailwind.components/holds the kit components.components/custom/holds the site's own sections.content/holdssite.ts(words and theme),owner.ts(logo, favicon,noindex,aiCrawlers, verification codes and the forms endpoint) andseo.ts.public/holds images and fonts.src/routes.tslists every page with its address and module. A new page is a newapp/<route>/page.tsxplus one line insrc/routes.ts.src/App.tsxrenders the layout around the page for the address.src/entry-client.tsxmakes the prerendered page interactive in the browser.src/entry-server.tsxrenders a page to HTML.lib/router.tsprovidesusePathnameandnotFoundon React Router.lib/link.tsxis a plain<a>.lib/metadata.tsxhas theMetadatatype and<Head>. It writes the title, description, canonical link, social cards, robots and icons from the page'smetadataorgenerateMetadataexport, merged with the layout's.vite.config.tsholds 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 installinstalls the packages.pnpmandyarnwork too.npm run devstarts the dev server athttp://localhost:5173.PORTchanges it. 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.
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, 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, Astro and Vue + Vite.
