# sammycage/lunasvg

SVG rendering and manipulation library in C++

Repository: https://github.com/sammycage/lunasvg
Canonical: https://ross.abutalabs.com/products/lunasvg
Language: C
License: MIT
License Family: permissive
Topics: svg, cpp, plutovg, css, png, svg2png
Last push: 2026-08-26T14:24:48+00:00

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

## Adoption (not part of the score)
Stars 1203, forks 175 (observed 2026-08-28T04:03:58.521915+00:00)

## What it is
LunaSVG is a lightweight, portable C++ library for rendering and manipulating SVG files, built on PlutoVG. It can rasterize SVG documents to bitmaps (e.g., PNG) and supports dynamic styling via CSS stylesheets.

## Use cases
- convert svg files to png in c++
- render svg icons to bitmaps in an application
- apply css styles to an svg before rendering
- embed svg rendering in a cross-platform c++ project
- batch rasterize svg assets

## When to choose
- you need a lightweight, dependency-friendly SVG rasterizer in C/C++
- you want programmatic SVG rendering with dynamic CSS styling
- you need a simple svg2png conversion tool

## When to avoid
- you need full SVG animation or scripting support
- you need a complete HTML/CSS layout engine rather than SVG rendering
- you work in a language without C bindings

## Facets
- artifact type: library
- maturity: active
- function: image-processing, graphics, cli
- domain: graphics, image-processing, web-development, developer-tools
- platform: cpp, c, cross-platform, cli
- tags: svg-rendering, svg-to-png, plutovg, vector-graphics, css-styling

## Member repositories
- sammycage/lunasvg (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.521915+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-30T06:20:32.752618+00:00, confidence not recorded.
  - readme: https://github.com/sammycage/lunasvg (fetched 2026-08-28T04:03:58.521915+00:00, sha 72e6d9881dbb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
