New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-kaplay

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-kaplay

Start a KAPLAY project in no time

latest
Source
npmnpm
Version
3.1.3
Version published
Maintainers
1
Created
Source

create-kaplay 🦖

A CLI tool to create a new KAPLAY project in no time.

It will create a project template using Vite, this will give you:

  • A modern setup 🚀
  • A fast development server ⚡
  • Build for production and generate static assets 🏗️
  • A simple and fast bundler 📦
  • TypeScript support out of the box 🦄

If you want to package your game for desktop, you can use the --desktop option to enable Tauri support. Follow the Tauri prerequisites guide to get started.

EXAMPLE

# quick start with default config
create-kaplay mygame

# calling with options
create-kaplay --typescript --desktop mygame

USAGE

create-kaplay [OPTIONS] <dir>

OPTIONS

-h, --help             Print help message
-t, --typescript       Use TypeScript
-d, --desktop          Enable packaging for desktop release (uses tauri and requires rust to be installed)
-e, --example <name>   Start from an example listed on play.kaplayjs.com
-s  --spaces <level>   Use spaces instead of tabs for generated files
-v, --version <label>  Use a specific kaplay version (default latest)
-verb, --verbose       Print additional information

FAQ

Q: Why not HMR with Vite?

A: KAPLAY Games are stateful and live-reloading can break the game state. You can enable HMR by removing hmr key inside vite.config.js.

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts