ViteReactStarter

vite-github-pages-template — Vite Starter Template

By RickBr0wn

A Vite template for deploying React applications to GitHub Pages, with a built-in GitHub Actions workflow for automatic build and publish.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-14View source

What stands out

A quick read of the recorded project description.

01

Built on Vite for build and development server; the README states it supports instant HMR with native ESM

02

Uses a strict-mode TypeScript configuration

03

Includes .github/workflows/main.yml; after a push to the main branch, GitHub Actions automatically builds and deploys to GitHub Pages

04

Simple project structure, with source code concentrated in the src directory, the entry point as main.tsx, and the root component as App.tsx

05

The README states that before deployment, base in vite.config.ts must be changed to the repository name

Template Details

This template is based on Vite, React, and TypeScript, and its goal is to publish a React single-page application to GitHub Pages. The README states that it provides a Vite development server, a strict TypeScript configuration, and a GitHub Actions workflow that automatically builds and deploys after a push to the main branch.

The usage flow is: create a repository on GitHub via "Use this template", clone it, change base in vite.config.ts to the repository name, set the build source to GitHub Actions in the repository's Settings → Pages, then install dependencies and push. The site address takes the form https://<username>.github.io/<repository-name>/. Local development commands are npm run dev, npm run build, and npm run preview.

The README does not explain the routing approach, custom domains, multi-environment deployment, or the specific configuration of build artifacts, nor does it provide tool version requirements beyond the dependency list; these need to be confirmed by checking files such as REQUIREMENTS.md in the repository. Statements in the README such as "production-ready" and "minimal footprint" are the project's own descriptions and are not backed by verifiable evidence.

ViteReactStarter

Is it right for your project?

Use Cases

  • Setting up a starter project for a React single-page application that can be published to GitHub Pages
  • Wanting to use GitHub Actions to automatically build and deploy a static site after pushing to the main branch
  • Needing a minimal project skeleton with basic Vite, React, and TypeScript configuration

Suitable For

  • Developers who host code on GitHub and plan to publish a React application with GitHub Pages
  • Teams that accept the Vite and TypeScript toolchain and want to start quickly from a template
  • Users who need a reference GitHub Actions workflow configuration for deploying a static site

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Create a new repository on GitHub via "Use this template", then clone it locally

  2. 2

    Change the base value in vite.config.ts so that it matches the repository name

  3. 3

    In the repository's Settings → Pages, set the Build and deployment source to GitHub Actions

  4. 4

    Run npm install, then commit and push to the main branch; the workflow will automatically build and deploy

  5. 5

    For local development use npm run dev, for building use npm run build, and for previewing the build output use npm run preview

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is the code of that version and does not mean that external services or third-party assets are free.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version's code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur separate charges.
  • Before use, you must create your own new repository from this repository on GitHub via "Use this template"; it cannot be used directly as a finished site.
  • Before deployment, you must change the base value in vite.config.ts so that it matches your repository name; otherwise asset paths will be incorrect.
  • You need to manually set the Build and deployment source to GitHub Actions in the repository's Settings → Pages for automatic deployment to take effect.
  • The site depends on GitHub Actions and GitHub Pages services; you need a GitHub account and must push code to the main branch for automatic build and deployment to occur.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

Click **"Use this template"** on the GitHub repository page to create a new repository from this one.

Original README

Open `vite.config.ts` and change the `base` value to match your repository name:

Original README

3. Under **Build and deployment**, set the source to **GitHub Actions**

Original README

GitHub Actions will build and deploy your site automatically. Your site will be live at:

Original README
https://github.com/RickBr0wn/vite-github-pages-template/blob/main/LICENSEhttps://github.com/RickBr0wn/vite-github-pages-template/blob/main/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-14. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
More documented · 88 / 100
Technologies
Vite · React
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2026-05-04
Screenshot last checked
2026-10-14

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Vite as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: codex-user-requested-batch-review-20261015 · 2026-10-15

Inspect the recorded source material

SHA-256: 5e8e1b4e4afa6d98aff7e24d4c2e62b1a4be900eea0f3c5db49284902106bb54

2026-10-14T08:46:33.281Z

Source file / repository
# vite-github-pages-template

> A minimal, production-ready template for deploying React applications to GitHub Pages with automatic CI/CD via GitHub Actions.

[![Deploy to GitHub Pages](https://github.com/RickBr0wn/vite-github-pages-template/actions/workflows/main.yml/badge.svg)](https://github.com/RickBr0wn/vite-github-pages-template/actions/workflows/main.yml)
![Vite](https://img.shields.io/badge/Vite-6.x-646cff?logo=vite&logoColor=white)
![React](https://img.shields.io/badge/React-19.x-61dafb?logo=react&logoColor=white)
![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178c6?logo=typescript&logoColor=white)
![License](https://img.shields.io/badge/License-MIT-green)

![Template screenshot](./public/screenshot.png)

## Features

- **Instant HMR** — Vite's native ESM dev server for a fast feedback loop
- **Type safe** — Strict TypeScript configured out of the box
- **Auto deploy** — Push to `main` and GitHub Actions builds and deploys automatically
- **Minimal footprint** — No unnecessary dependencies; easy to extend

## Prerequisites

See [REQUIREMENTS.md](./REQUIREMENTS.md) for a full list of tools and versions required.

## Quick Start

### 1. Use this template

Click **"Use this template"** on the GitHub repository page to create a new repository from this one.

### 2. Clone your new repository

```bash
git clone https://github.com/<your-username>/<your-repo-name>.git
cd <your-repo-name>
```

### 3. Update the base path

Open `vite.config.ts` and change the `base` value to match your repository name:

```ts
// vite.config.ts
export default defineConfig({
  base: '/your-repo-name/',
  plugins: [react()],
})
```

### 4. Enable GitHub Pages

1. Go to your repository on GitHub
2. Navigate to **Settings → Pages**
3. Under **Build and deployment**, set the source to **GitHub Actions**

### 5. Install dependencies and push

```bash
npm install
git add .
git commit -m "initial commit"
git push origin main
```

GitHub Actions will build and deploy your site automatically. Your site will be live at:

```
https://<your-username>.github.io/<your-repo-name>/
```

## Development

```bash
# Start the dev server
npm run dev

# Build for production
npm run build

# Preview the production build locally
npm run preview
```

## Project Structure

```
├── .github/
│   └── workflows/
│       └── main.yml        # GitHub Actions deploy workflow
├── public/
│   ├── screenshot.png
│   └── vite.svg
├── src/
│   ├── App.tsx             # Root component
│   ├── main.tsx            # Entry point
│   ├── styles.css          # Global styles
│   └── vite-env.d.ts       # Vite type declarations
├── index.html
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts          # ← update base here
```

## Tech Stack

| Tool | Version | Purpose |
|------|---------|---------|
| [Vite](https://vitejs.dev) | 6.x | Build tool and dev server |
| [React](https://react.dev) | 19.x | UI library |
| [TypeScript](https://www.typescriptlang.org) | 5.x | Static type checking |
| [GitHub Actions](https://docs.github.com/en/actions) | — | CI/CD pipeline |

## Contributing

Contributions, issues, and feature requests are welcome. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before opening a pull request.

## License

This project is licensed under the MIT License. See [LICENSE](./LICENSE) for details.
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

cove

cove

Cove is a minimal TanStack Start starter template maintained by mugnavo, integrating React, TanStack Router/Query, Tailwind CSS, shadcn/ui, Drizzle ORM with PostgreSQL, Better Auth, Vite Plus, and Nitro.

Vite · SaaS

vite-react-boilerplate

vite-react-boilerplate

A production-ready Vite + React starter template with TypeScript, Tailwind CSS, TanStack Router/Query/Table, Storybook, React Hook Form + Zod, Vitest and Playwright testing, plus Husky/Commitizen/Commitlint commit conventions.

Vite · Starter

vital

vital

Vital is a Vite-based React starter template using TypeScript and Tailwind CSS, with an Atomic Design component directory, path aliases and Hero Icons.

Vite · Starter

react-vite-admin

react-vite-admin

A backend management starter built on Vite and React, integrating Recoil, React Query, TypeScript, and Axios, with Ant Design-style interface screenshots. Suitable as a starting point for management-side projects, licensed under MIT, with Chinese documentation and common scripts.

Vite · Admin dashboard

typescript-react_best_practices-vite_template

typescript-react_best_practices-vite_template

A Vite + React + TypeScript starter template by CodelyTV, preconfigured with Jest and React Testing Library unit tests, Cypress end-to-end tests, ESLint and Prettier using Codely's shared configuration, GitHub Actions workflows, a Makefile, and Sass.

Vite · Starter

cloudflare-starter-kit

cloudflare-starter-kit

A Cloudflare Workers project scaffolding template maintained by kriasoft, using Vite and TypeScript, with three built-in workspaces: api, app, and edge, and preconfigured local testing, multiple environments, and a GitHub Actions deployment workflow.

Vite · Starter