PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.
Overview
PixiJS is an HTML5 creation engine for rich 2D graphics in the browser. It draws sprites, text, graphics, and filters using WebGPU when available and falls back to WebGL elsewhere.
The API covers asset loading, flexible text rendering, primitives and SVG, dynamic textures, masking, filters, and blend modes. It supports mouse and multi-touch input, accessibility overlays for screen readers, and a full scene graph with parent-child hierarchy.
A separate 3D layer adds meshes, PBR materials, lights, shadows, and glTF models on the same stage. Related packages extend sound, React bindings, Spine animation, UI widgets, layout, and devtools.
Content can run on desktop and mobile browsers from one codebase, and projects may ship via Capacitor, Electron, or Cordova. Ecosystem add-ons include filters, CLI project scaffolding, and build-time asset packing.
Key features
- WebGPU and WebGL 2D rendering
- Spritesheets and asset loader
- Filters and custom shaders
- Multi-touch and pointer events
- Scene graph and masking
- Text rendering at retina resolution
- Optional 3D meshes and glTF
- Accessibility DOM overlays
Use cases
- Browser games and interactive ads
- Data visualization on canvas
- Educational and branded web experiences
- Cross-platform wrapped mobile apps