# jonobr1/two.js

A renderer agnostic two-dimensional drawing api for the web

Repository: https://github.com/jonobr1/two.js
Canonical: https://ross.abutalabs.com/products/twojs
Homepage: http://two.js.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: svg, webgl, javascript, canvas, scenegraph, renderer, html5, es6, 2d, rendering-engine, vector-graphics, bitmap-graphics, text-rendering, animation
Last push: 2026-08-24T17:35:16+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 38, longevity 100
- inputs: {"age_days": 5110, "days_push": 9, "days_rel": 336, "gap_med": 44, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8652, forks 462 (observed 2026-08-28T04:10:24.029526+00:00)

## What it is
Two.js is a renderer-agnostic two-dimensional drawing API for modern web browsers, letting the same code render via SVG, Canvas 2D, or WebGL. It provides a scenegraph, built-in animation loop, shape/text creation, bitmap image handling, and an SVG interpreter for importing artwork from tools like Adobe Illustrator.

## Use cases
- draw animated 2D vector shapes in the browser
- render the same scene to svg, canvas, and webgl
- create flat motion graphics animations on the web
- import SVG artwork from Illustrator into a web scene
- build an interactive 2D visualization with a scenegraph
- animate sprites and image sequences in the browser

## When to choose
- you need a lightweight 2D drawing library with multiple renderer backends
- you want simple shape creation and animation without a full game engine
- you need to import and manipulate SVG assets in a web scene
- you want a built-in requestAnimationFrame animation loop with a scenegraph

## When to avoid
- you need 3D rendering (use three.js instead)
- you need high-performance rendering of tens of thousands of objects
- you need a full game engine with physics or input systems
- you need server-side rendering of graphics

## Facets
- artifact type: library
- maturity: stable
- function: graphics, animation, data-visualization
- domain: web-development, frontend, graphics
- platform: browser
- tags: svg, canvas2d, webgl, scenegraph, vector-graphics, motion-graphics, 2d-rendering, animation-loop, svg-interpreter, web-server, nodejs

## Member repositories
- jonobr1/two.js (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:24.029526+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:40.503466+00:00, confidence not recorded.
  - readme: https://github.com/jonobr1/two.js (fetched 2026-08-28T04:10:24.029526+00:00, sha e2e353bb82f6)
  - homepage: http://two.js.org/ (fetched 2026-08-29T08:26:24.409713+00:00, sha 513ac24d045b)
  - site_page: https://two.js.org/docs/two (fetched 2026-08-29T08:26:24.412583+00:00, sha 2a4a1e9a3838)
  - site_page: https://two.js.org/docs (fetched 2026-08-29T08:26:24.417189+00:00, sha a306dbe27a2a)
  - registry_npm: https://registry.npmjs.org/two.js (fetched 2026-08-29T08:26:24.418798+00:00, sha a8d9104ea385)
  - site_page: https://two.js.org/changelog (fetched 2026-08-29T08:26:24.414830+00:00, sha 7440351e2ec4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
