Blazing fast 2D rendering for the web.
2-4x faster than the most popular 2D web renderer, at about a seventh of its size.
Live: spryte drawing every sprite with one draw.sprites call per frame, on your device. Click it.
Most sprites each library holds at 60 fps, pixel-checked before anything is timed. Run it on your device.
Pass a Float32Array of positions and spryte uploads it as is: hundreds of thousands of sprites, no JavaScript per sprite.
No display objects to create, pool or destroy. Draw what you want each frame, in order. Your game state is the only source of truth.
Draw into offscreen targets, then through your own fragment shaders: glow, CRT, dissolves, palette swaps.
About 13 kB of JavaScript, no dependencies. The Canvas 2D fallback loads only on browsers without WebGL2.
Every fast path is checked pixel for pixel against the simple path on a real GPU, including GPU context loss and restore.
spryte is the renderer inside every debuff game, and a standalone MIT package for any canvas.
spryte started in games, but anything that draws lots of moving 2D things in a browser fits.
Bullet hells, particle effects, crowds, tile maps and sprite-sheet animation.
Animated scatter plots, flow fields and live data with thousands of points.
Example →Particle systems, trails and shader effects for generative art, without a framework.
Example →Hero animations, confetti and backgrounds that stay smooth on phones.
Example →Agent-based models, physics demos and visual explanations for teaching.
Example →One renderer, one frame loop. Sprites, particles, shapes and text, batched onto WebGL2 with an automatic Canvas 2D fallback.
Read the guideComing from PixiJS?import { createRenderer } from "spryte";
const draw = createRenderer(canvas);
function frame() {
draw.begin("#111", 320, 180, 2);
draw.sprite(hero, x, y, { rotation });
draw.sprites(spark, sparks, live); // thousands, one call
draw.text("score 42", 8, 8);
draw.end();
requestAnimationFrame(frame);
}Every debuff game draws through spryte.
All of our projects are free and MIT licensed. Sponsors keep them that way. Studios after performance help or a bigger partnership: get in touch.
Sponsor on GitHubWork with us