← All open source projects

PixiJS

pixijs/pixijs

PixiJS is a 2D web graphics engine using WebGL/WebGPU for games, visualizations, interactive scenes, and rich-media interfaces.

Forks 5,029
Author pixijs
Language TypeScript
License MIT
Synced 2026-06-10

What it is

PixiJS is a 2D web graphics engine. It helps draw fast interactive scenes in the browser using WebGL and WebGPU while keeping a convenient JavaScript/TypeScript API.

The project appeared in 2013 and has long been a major option for 2D graphics on the web. Its niche is where the DOM and plain Canvas 2D become awkward or slow, but a full 3D engine is unnecessary.

What is inside the repository

Inside are the renderer, scene graph, sprites, asset loader, textures, filters, masks, blend modes, text, primitives, mouse and touch events, documentation, and starter tools. Modern PixiJS supports WebGL and WebGPU renderers.

Minimal sprite scene

This example shows the basic PixiJS model: create a canvas application, load a texture, and add a sprite to the stage.

Language: TypeScript
import { Application, Assets, Sprite } from "pixi.js";

const app = new Application();
await app.init({ resizeTo: window });
document.body.appendChild(app.canvas);

const texture = await Assets.load("/sprite.png");
app.stage.addChild(new Sprite(texture));

Where it is useful

PixiJS is useful for browser games, interactive showcases, visual editors, charts with thousands of elements, animations, and educational simulations where fast 2D rendering matters.

Strengths and limits

PixiJS does not replace a UI framework or application architecture. State, asset loading, responsiveness, accessibility, and DOM integration still need design. It is too much for a simple page, but powerful for rich 2D scenes.