pixijs-create

Scaffold PixiJS v8 projects using create-pixi CLI templates.

Updated Mar 13, 2022
One-click install
npx skills add https://github.com/alexkafer/alexkafer-web --skill pixijs-create-alexkafer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-create
Source: https://github.com/alexkafer/alexkafer-web/tree/main/.agents/skills/pixijs-create
Command: npx skills add https://github.com/alexkafer/alexkafer-web --skill pixijs-create-alexkafer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the setup friction of starting a PixiJS v8 project by guiding you through the correct create-pixi CLI commands, template selection, and post-scaffold workflow so you can begin rendering quickly without configuration guesswork.

Core Features & Use Cases

  • Scaffold with create-pixi: Supports npm/yarn/pnpm/bun flows for creating a new PixiJS v8 project with interactive or non-interactive CLI usage, including the required npm 7+ argument separator.
  • Pick the right template preset: Covers bundler templates (e.g., bundler-vite, bundler-webpack, bundler-esbuild, bundler-import-map), creation templates (e.g., creation-web), framework templates (e.g., framework-react), and extension templates (e.g., extension-default).
  • Add PixiJS to existing projects: Provides the correct direct-install path (npm install pixi.js) and how it complements template scaffolding.

Quick Start

Use the command npm create pixi.js@latest my-game -- --template bundler-vite to scaffold a new TypeScript PixiJS v8 project, then run the template’s dev server to start building.

Frequently Asked Questions about pixijs-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a PixiJS v8 project with Vite?

Scaffold a PixiJS v8 project using the create-pixi CLI with the command npm create pixi.js@latest my-game -- --template bundler-vite, then run the template's dev server to start building interactive graphics without manual configuration.

What PixiJS create-pixi templates are available for different bundlers?

PixiJS create-pixi offers bundler templates including bundler-vite, bundler-webpack, bundler-esbuild, and bundler-import-map, allowing you to select your preferred module bundler when scaffolding a new game or interactive graphics project.

Can I add PixiJS to an existing React project instead of scaffolding a new one?

Yes, you can add PixiJS to an existing project by running npm install pixi.js directly, or use the framework-react template during scaffolding to integrate PixiJS into a React codebase without starting from scratch.

Why do I need a double dash when using npm create pixi.js?

The double dash separator is required for npm 7+ to correctly forward CLI arguments to the create-pixi package, ensuring template selection flags like --template bundler-vite are properly parsed during project scaffolding.

Does scaffolding a PixiJS project work with yarn, pnpm, or bun?

Yes, the create-pixi CLI supports multiple package managers including yarn, pnpm, and bun for scaffolding PixiJS v8 projects, accommodating different development environments while ensuring correct argument forwarding for each manager.

What Node version is required to set up a PixiJS v8 project?

Setting up a PixiJS v8 project requires a compatible Node version to run the create-pixi CLI and the scaffolded template's dev server, with specific version requirements handled during the scaffolding process to ensure correct execution.