48,661
stars
+6
5,142
forks
974
watchers
5,043
prs
6,187
issues
312
releases
883
discussions
README
Guides | Tutorials | Examples | API Docs | Discord | Bluesky | 𝕏
PixiJS ⚡️
Next-Generation, Fastest HTML5 Creation Engine for the Web
- 🚀 WebGL & WebGPU Renderers
- ⚡️ Unmatched Performance & Speed
- 🎨 Easy to use, yet powerful API
- 📦 Asset Loader
- ✋ Full Mouse & Multi-touch Support
- ✍️ Flexible Text Rendering
- 📐 Versatile Primitive and SVG Drawing
- 🖼️ Dynamic Textures
- 🎭 Masking
- 🪄 Powerful Filters
- 🌈 Advanced Blend Modes
PixiJS is the fastest, most lightweight 2D library available for the web, working
across all devices and allowing you to create rich, interactive graphics and cross-platform applications using WebGL and WebGPU.
Setup
It's easy to get started with PixiJS! Just use our PixiJS Create CLI and get set up in just one command:
npm create pixi.js@latest
or to add it to an existing project:
npm install pixi.js
Usage
typescript
import { Application, Assets, Sprite } from 'pixi.js';
(async () =
{
// Create a new application
const app = new Application();
// Initialize the application
await app.init({ background: '1099bb', resizeTo: window });
// Append the application canvas to the document body
document.body.appendChild(app.canvas);
// Load the bunny texture
const texture = await Assets.load('https://pixijs.com/assets/bunny.png');
// Create a bunny Sprite
const bunny = new Sprite(texture);
// Center the sprite's anchor point
bunny.anchor.set(0.5);
// Move the sprite to the center of the screen
bunny.x = app.screen.width / 2;
bunny.y = app.screen.height / 2;
app.stage.addChild(bunny);
// Listen for animate update
app.ticker.add((time) =
{
// Just for fun, let's rotate mr rabbit a little.
// Delta is 1 if running at 100% performance
// Creates frame-independent transformation
bunny.rotation += 0.1 time.deltaTime;
});
})();
TypeScript
PixiJS supports WebGPU, so its type declarations depend on the WebGPU types. Where those come from depends on your TypeScript version.
TypeScript 5: no WebGPU types are built in, so PixiJS adds @webgpu/types for you. No additional setup required.
TypeScript 6 and 7: the WebGPU types are built into the "dom" library, but some releases leave parts out, such as GPUTextureUsage. Use @types/web, which has the full set, in place of "dom". Remove @webgpu/types from types if it's there, since it conflicts with the built-in types.
bash
npm install --save-dev @types/web
json
{
"compilerOptions": {
"lib": ["esnext"],
"types": ["@types/web"]
}
}
Contribute
Want to be part of the PixiJS project? Great! All are welcome! We will get there quicker
together :) Whether you find a bug, have a great feature request, or you fancy owning a task
from the road map above, feel free to get in touch.
Make sure to read the Contributing Guide
before submitting changes.
License
This content is released under the MIT License.
Change Log
Releases
PixiJS Top issues
#2243Polygon packing39 comments · 2015-12-13#7000Support for Multi Pack assets generated by Texture packer in AnimatedSprite 24 comments · 2020-11-13#11694`Application` objects are not isolated, weirdest errors around `destroy()`24 comments · 2025-09-25#8635skew implementation, unique?20 comments · 2022-09-08#10633Bug: v8.x Failure to play Video source on iOS 17.5.1 (iPhone + iPad both tested)18 comments · 2024-06-16#10131Bug: pointerover/pointerout fire twice when eventMode17 comments · 2024-01-18#7058Mouse events on Bezier/curved line?17 comments · 2020-12-09#9117Bug: PIXI.Text stroke line weight of bottom side is not Equal to top side of the text16 comments · 2023-01-29
Discussions
#12334TradingRay: a PixiJS chart workspace on the web and Android0 comments · 2026-10-23#12233pixi-tiledmap - load, edit and export Tiled maps in PixiJS v80 comments · 2026-09-25#12186Multi channel signed distance field text rendering solution for Pixi 71 comments · 2026-09-06#12153Free browser-based particle editor (Three.js runtime, local files)0 comments · 2026-08-20#12150NixieFX: visual particle/VFX editor with PixiJS v8 support0 comments · 2026-08-19#12135Is there an example of Pixi using WebGPU's compute shader?2 comments · 2026-08-07#12114How's the PixiJS Game Engine coming along?1 comments · 2026-07-10#12078Failing to remove child container1 comments · 2026-06-09
Latest release
v8.22.0 v8.22.0 2026-10-01💾 Download Installation: bash npm install [email protected] Development Build: - https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.js - https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.mjs Production Build: - https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.min.js - https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.min.mjs Documentation: - https://pixijs.download/v8.22.0/docs/index.html Changed https://github.com/pixijs/pixijs/compare/v8.21.0...v8.22.0 🚨 Behavior Change fix: tab cannot activate the accessibility layer on a fresh page by @synath in