# dntzhang/cax

Canvas 渲染引擎，支持 SVG，兼容了小程序、小游戏和 Web

Repository: https://github.com/dntzhang/cax
Canonical: https://ross.abutalabs.com/products/cax
Language: JavaScript
License Family: other
Topics: canvas, svg, render, web, weapp, wegame, miniprogram, minigame, 2d
Last push: 2023-07-26T01:14:13+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5086, "days_push": 1135, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2124, forks 321 (observed 2026-08-28T04:06:16.752851+00:00)

## What it is
Cax is a lightweight Canvas 2D rendering engine with SVG path support, built-in display objects (Bitmap, Sprite, Graphics, Shape, Text), clipping, filters, and a cross-platform motion library. It runs on the Web, WeChat Mini Programs, and Mini Games with a DOM-like element and event model.

## Use cases
- render 2d graphics on canvas
- draw svg paths on canvas
- build charts with canvas rendering
- animate canvas elements cross-platform
- render graphics in wechat mini programs
- build canvas-based mini games

## When to choose
- you need one rendering codebase across web and WeChat mini programs/games
- you want a lightweight canvas engine with DOM-like element management and events
- you need SVG path rendering, clipping, or CSS filters on canvas

## When to avoid
- you need WebGL or 3D rendering
- you want a mainstream, actively maintained engine like PixiJS
- your project requires a permissively documented license review - the repo lacks a visible license file

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics, animation, ui-components
- domain: graphics, web-development, cross-platform
- platform: browser, cross-platform
- tags: canvas, svg, 2d-rendering, miniprogram, minigame, rendering-engine, motion-library, wechat, javascript

## Member repositories
- dntzhang/cax (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:16.752851+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-30T02:52:48.054908+00:00, confidence not recorded.
  - readme: https://github.com/dntzhang/cax (fetched 2026-08-28T04:06:16.752851+00:00, sha cbf4b55dee17)
  - registry_npm: https://registry.npmjs.org/cax (fetched 2026-08-29T10:32:59.760890+00:00, sha 851c67a9ce10)
- Data as of 2026-08-30T08:39:29.467469+00:00.
