Documentation
Installation
Install dependencies and run a template locally in any framework.
Prerequisites
- Node.js 22 LTS (Node 20.19 or newer also works). Check with
node -v. Get it from nodejs.org or a version manager such as nvm or fnm. - pnpm. Every template ships with a
pnpm-lock.yaml, so pnpm installs exactly the versions we tested. The easiest way to get it is Corepack, which comes with Node. - Git (optional) if you want to clone the repository and pull updates.
Loading...
npm or yarn?
pnpm-lock.yaml and pnpm-workspace.yaml first and keep the new lockfile they create.Run it locally
Get the code
Download the zip from your account or clone the repository. See Downloads & GitHub Access.
Install dependencies
Open a terminal in the project folder (the one with
package.json) and run:bashLoading...
Start the dev server
bashLoading...
Open
http://localhost:3000. Pages reload as you edit files inapp/andcomponents/.
Available scripts
| Framework | Scripts |
|---|---|
| Next.js | pnpm dev, pnpm build, pnpm start |
| React | pnpm dev, pnpm build (type-checks first), pnpm preview |
| Vue.js | pnpm dev, pnpm build (type-checks first), pnpm preview |
| Svelte | pnpm dev, pnpm build, pnpm preview, pnpm check (svelte-check) |
Environment variables
Templates run without any environment variables. The only optional one is a Google Analytics measurement ID. If it is missing, analytics simply stays off.
| Framework | Variable | File |
|---|---|---|
| Next.js | NEXT_PUBLIC_GA_KEY | .env.local |
| React | VITE_GA_KEY | .env |
| Vue.js | VITE_GA_KEY | .env |
| Svelte | PUBLIC_GA_KEY | .env |
Loading...
When you connect real services (an API, auth, a database), add their variables the same way. Remember that variables with the public prefix (NEXT_PUBLIC_, VITE_, PUBLIC_) end up in the browser, so never put secrets in them.
Production build
Loading...
- Next.js: run
pnpm startto serve the build, or deploy it (see Deployment). - React and Vue.js: the static site is written to
dist/. Preview it withpnpm preview. - Svelte: preview with
pnpm preview. The output depends on the SvelteKit adapter you deploy with.
Editor setup
Any editor works. In VS Code (or Cursor), these extensions make the experience better:
- Tailwind CSS IntelliSense for class name autocomplete and previews.
- ESLint and Prettier if you use them in your workflow.
- Vue - Official for Vue.js templates, Svelte for VS Code for Svelte templates.