Paper.js

A vector graphics scripting framework with a scene graph of paths, shapes and layers on top of the HTML5 canvas. Part of Open-source motion studio: 20 repos.

Checked 2026-10-27 against the GitHub repository, its README, and the npm or PyPI registry where relevant.

RuntimeBrowser, Node.js, Electron. CPU canvas, no GPU pipeline.
How an agent drives itLibrary API in code. Node support means vector output can be produced without a page, which suits generating SVG or path data.
LicenseMIT (LICENSE.txt; the GitHub API reports it as ‘Other’).
MaintenanceLatest release v0.16.0, 2026-10-21 (npm paper 0.16.0 the same day); repo pushed 2026-10-27; not archived.

What it gives you

  • Input: JavaScript (or PaperScript) that builds paths, segments, boolean operations and transformations. Output: canvas drawing; can also run in Node.js.
  • Installed with npm install paper for browsers, Node.js or Electron.

Key differentiator

Strong vector path geometry: boolean operations, curve math and path manipulation. Source: README and project description.

Pick something else when

PixiJS when you need GPU speed. p5.js for general sketches. Konva or Fabric.js for interactive object editing. See the 2D comparison.

Agent fit

Moderate. Useful where an agent must compute path geometry; not a renderer of video.

Overlap with the rest of the stack

Overlaps p5.js and PixiJS.

Sources