# Two.js

Renderer-agnostic JavaScript drawing API for two-dimensional scenes that render to WebGL, canvas or SVG.


Source: https://findsoftware.frbit.cloud/two-js/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://two.js.org/
- repository: https://github.com/jonobr1/two.js
- docs: https://two.js.org/docs/two/

### Identity

- status: active
- maintainer: jonobr1
- maintainerType: individual
- parent: unknown
- firstRelease: 2013
- hqCountry: unknown

### Kind

- category: graphics
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, download, source build

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-08-29

### Adoption

- githubStargazers: 8745
- packagistDownloads: not applicable
- npmWeeklyDownloads: 19039
- contributors: 63
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 286
- dependentPackages: 53

### Sources

- urls: https://two.js.org/ (read 2026-11-16)
- urls: https://api.github.com/repos/jonobr1/two.js (read 2026-11-16)
- urls: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/jonobr1/two.js/tags (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/jonobr1/two.js/dev/LICENSE (read 2026-11-16)
- category: https://two.js.org/ (read 2026-11-16)
- category: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- language: https://api.github.com/repos/jonobr1/two.js (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/jonobr1/two.js/dev/README.md (read 2026-11-16)
- license: https://raw.githubusercontent.com/jonobr1/two.js/dev/LICENSE (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/jonobr1/two.js/dev/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/jonobr1/two.js/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/jonobr1/two.js/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/jonobr1/two.js (read 2026-11-16)
- contributors: https://api.github.com/repos/jonobr1/two.js/contributors (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/two.js (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/two.js (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/two.js (read 2026-11-16)

## Notes

Two.js is a drawing API for two-dimensional scenes on the web. The same scene can be drawn by its WebGL, canvas or SVG renderer, because the API sits above the renderer. Shapes and groups are kept in a scenegraph, so an object can be rotated, moved or scaled after it is created, and the library has a built-in animation loop that updates the scene.

Two.js also reads SVG elements from design tools into a scene and loads bitmap images, sprite sheets and image sequences. A headless mode renders a scene on a server with the Node Canvas library and writes the frames to files. The [documentation](https://two.js.org/docs/two/) describes the API.

## Worth knowing

The README says the main import includes every module, so tree shaking is not yet implemented, although the project lists it on its roadmap. A custom build can exclude renderers the project does not need by editing its build script, which reduces the file size.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
