Uses Vite as the development and build tool, together with Phaser and TypeScript
vite-phaser-ts — Vite Game Template
By iwantantra
A game starter template built on Vite, Phaser, and TypeScript, providing a scene example, a static assets directory, and scripts for development, build, preview, and ESLint.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Preview provided in the project README.
One original preview is available. Open the full image to inspect the design.
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Includes a HelloScene.ts scene example and a main.ts entry point, making it easy to organize code by scene
public/assets serves as the static assets directory, and build output goes to dist
Provides five npm scripts: dev, build, preview, lint, and lint-fix
Pull the template via npx degit without cloning the full repository history
Template Details
This is a TypeScript starter template for Phaser games that uses Vite as the development and build tool. After pulling the repository locally with degit, you can install dependencies and run it, making it suitable as an initial skeleton for a new game project.
The project structure is clear: TypeScript code lives under src, including the main.ts entry point and the scenes/HelloScene.ts scene example; public/assets is used for static assets; build output goes to dist. The README notes that the internal directory structure under src can be organized as you like, and subdirectories can also be created under public.
The template provides five scripts: npm run dev, build, preview, lint, and lint-fix, used respectively for development running, building, previewing the build output, and ESLint checking with automatic fixes. The repository uses the MIT license; the preview images in the README are example assets provided by the author, and third-party assets need to be checked separately for licensing.
Is it right for your project?
Use Cases
- Building a Phaser + TypeScript game project from scratch
- Game prototypes that need a Vite-driven local development server and build process
- Small game projects that want to unify code style with ESLint
- A starter project that organizes game logic by scenes
Suitable For
- Developers familiar with TypeScript who are preparing to build games with Phaser
- Teams that need a lightweight game project skeleton rather than a complete game framework
- Front-end developers who want to manage the development and build process with Vite
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Pull the template with npx degit iwantantra/vite-phaser-ts my-game, then run npm install
- 2
Use npm run dev for development, npm run build for building, and npm run preview to preview the build output
- 3
Use npm run lint for code checking and npm run lint-fix for automatic fixes
- 4
Place static assets in public/assets, and organize source code within src as you like
- 5
Third-party assets such as the preview images in the README must be checked separately under their respective licenses
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version of the public repository under the MIT license; 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
- You may use, modify, commercialize, and distribute the code of this version for free.
- 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 under 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.
View Original Text Basis
https://github.com/iwantantra/vite-phaser-ts/blob/main/LICENSE.mdhttps://github.com/iwantantra/vite-phaser-ts/blob/main/README.mdPermission is hereby granted, free of charge
Original License Text
Compiled by DeepSeek based on repository license and README ·2026-10-03. 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
- Partly documented · 65 / 100
- Technologies
- Vite
- Website type
- Game Site · 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
- 2024-01-22
- Screenshot last checked
- 2026-10-03
No demo link is recorded. Use the repository instructions to evaluate the project locally; the screenshot alone cannot establish interactive behavior.
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.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 26f0fac95a61488e0b9e06c27ce8398ee6a267535772cbae1d54eb1228926774
2026-10-03T02:50:16.132Z
Source file / repository# Vite Phaser Typescript Template Vite + Phaser + Typescript starter template. ## Preview  ## Getting Started ```bash npx degit iwantantra/vite-phaser-ts my-game cd my-game npm install ``` ## Available scripts ### To run the project ```bash npm run dev ``` ### To build the project ```bash npm run build ``` ### To preview the build ```bash npm run preview ``` ### To lint check your code using eslint ```bash npm run lint ``` ### To lint check and fix your code ```bash npm run lint-fix ``` ## Project structure ``` . ├── dist ├── node_modules ├── public │ ├── assets ├── src │ ├── scenes │ ├── HelloScene.ts │ ├── main.ts ├── index.html ├── package.json ``` `dist` your build will placed in this folder.\ `src` you can structure your codes and folder as you like inside this folder.\ `public` your static asset must be placed inside this folder. You can also create new folder inside this folder. ## License [MIT License](LICENSE.md)
Explore similar templates
Compare previews and descriptions within the same stack and category.

react-starter-kit
A full-stack SaaS monorepo starter built on Vite and React, with Bun, TypeScript, tRPC, Drizzle ORM, Better Auth, Stripe, and Cloudflare Workers. It includes email OTP, passkey, Google OAuth, organizations, subscription billing, Drizzle migrations, seed scripts, and Terraform infrastructure.
Vite · SaaS

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
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

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
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
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
