# svgdotjs/svg.js

The lightweight library for manipulating and animating SVG

Repository: https://github.com/svgdotjs/svg.js
Canonical: https://ross.abutalabs.com/products/svgjs
Homepage: https://svgjs.dev
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: svg, javascript, svgjs, animation
Last push: 2026-08-04T07:48:43+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 61, longevity 100
- inputs: {"age_days": 5009, "days_push": 29, "days_rel": 47, "gap_med": 305, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11822, forks 1078 (observed 2026-08-28T04:10:50.057455+00:00)

## What it is
SVG.js is a lightweight, dependency-free JavaScript library for creating, manipulating, and animating SVG elements in the browser. It provides a concise, readable API covering most of the SVG spec, including gradients, masks, clipping paths, text paths, and event handling.

## Use cases
- create and animate svg graphics in javascript
- draw shapes and charts dynamically in the browser
- animate svg element positions, sizes, and colors
- build interactive vector graphics without heavy frameworks
- apply gradients, masks, and clipping paths to svg elements
- replace verbose vanilla svg dom code with a clean api

## When to choose
- you need a small, dependency-free library for svg manipulation and animation
- you want a concise, readable api instead of raw svg dom code
- you need broad svg spec coverage including masks, clips, and text paths
- performance matters and you want faster rendering than heavier competitors

## When to avoid
- you need canvas or webgl-based rendering rather than svg
- you want a full data-visualization/charting library rather than a graphics primitive library
- you need server-side svg generation in a non-browser environment
- you prefer a framework like d3 with built-in data binding

## Facets
- artifact type: library
- maturity: stable
- function: animation, ui-components, graphics
- domain: web-development, frontend, graphics
- platform: browser
- tags: svg, vector-graphics, dom-manipulation, no-dependencies, javascript, nodejs

## Member repositories
- svgdotjs/svg.js (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:50.057455+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:15:18.113076+00:00, confidence not recorded.
  - readme: https://github.com/svgdotjs/svg.js (fetched 2026-08-28T04:10:50.057455+00:00, sha 8f3103cff1f9)
  - homepage: https://svgjs.dev (fetched 2026-08-29T08:13:37.394254+00:00, sha da1c39bbff3e)
  - site_page: https://svgjs.dev/docs/3.2 (fetched 2026-08-29T08:13:37.403470+00:00, sha 5cae7669bcbd)
  - registry_npm: https://registry.npmjs.org/svg.js (fetched 2026-08-29T08:13:37.405340+00:00, sha 18c8b97d4ac7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
