A Spin template for scaffolding Vite + React projects with HMR, Oxlint/ESLint, and TypeScript support.
# From the official Spin registry
spin new myapp official/vite-react
# Directly from the template repository
spin new myapp https://github.com/spin-templates/vite-react| Parameter | Type | Description | Default |
|---|---|---|---|
| project_name | text | Project name (auto-injected by Spin) | — |
| variant | select | Which language variant? | typescript |
| eslint | bool | Use ESLint instead of Oxlint? | false |
| react_compiler | bool | Enable the React Compiler? | false |
| package_manager | select | Which package manager? | npm |
| use_docker | bool | Include Docker support? | false |
| git_init | bool | Initialize a git repository? | true |
| description | textarea | What is your project description? | — |
| include_agents_md | bool | Include AGENTS.md with agent instructions? | true |
| include_demo | bool | Include the showcase UI? | true |
| tailwind | bool | Include Tailwind CSS v4? | false |
- javascript: React with
vite.config.js,src/App.jsx,src/main.jsx - typescript: React + TypeScript with
vite.config.ts,tsconfig*.json,src/App.tsx,src/main.tsx
-
git init && git add -A && git commit -m "Initial commit - Spin"— initializes git repo (when git_init is true) -
{{ .package_manager }} install— installs project dependencies
License MIT