talira

The fastest 2D WebGL and WebGPU renderer for the web

open sourceMITfree

PixiJS is a JavaScript and TypeScript rendering library for fast, interactive 2D graphics in the browser, on WebGL or WebGPU. It's used for games, apps, ads and interactive content, and gives you sprites, an asset loader, mouse and multi-touch input, flexible text rendering, primitive and SVG drawing, dynamic textures, masking, filters and blend modes. npm create pixi.js starts a project. Around it are official packages for React, sound, Spine animations, UI, layout, filters, asset packing and devtools, and PixiJS 3D is newly available alongside the 2D library.

Problems it solves

  • draw fast interactive 2D graphics in the browser
  • build a 2D HTML5 game that runs on phones and desktops
  • render thousands of sprites on a canvas without it slowing down
  • use WebGPU for 2D rendering with a WebGL fallback

Features

  • WebGL and WebGPU renderers
  • sprites, textures and an asset loader
  • mouse and multi-touch interaction
  • text, primitive and SVG drawing
  • masking, filters and blend modes
  • official React, sound, Spine and UI packages

Alternatives

The same job

These do what PixiJS does.

  1. p5.js A friendly tool for learning to code and make art
  2. three.js JavaScript 3D library

Compare PixiJS with the top 3