Gathering detailed insights and metrics for @jimblackler/canvg
Gathering detailed insights and metrics for @jimblackler/canvg
Gathering detailed insights and metrics for @jimblackler/canvg
Gathering detailed insights and metrics for @jimblackler/canvg
JavaScript SVG parser and renderer on Canvas
npm install @jimblackler/canvg
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (53.06%)
JavaScript (39.44%)
HTML (5.01%)
MDX (2%)
CSS (0.42%)
Shell (0.07%)
Total Downloads
313
Last Day
1
Last Week
6
Last Month
36
Last Year
113
MIT License
3,765 Stars
1,120 Commits
619 Forks
65 Watchers
22 Branches
39 Contributors
Updated on Jul 14, 2025
Latest Version
4.0.1-mod
Package Id
@jimblackler/canvg@4.0.1-mod
Unpacked Size
691.08 kB
Size
145.95 kB
File Count
167
NPM Version
8.13.2
Node Version
18.6.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-33.3%
6
Compared to previous week
Last Month
125%
36
Compared to previous month
Last Year
73.8%
113
Compared to previous year
46
JavaScript SVG parser and renderer on Canvas. It takes the URL to the SVG file or the text of the SVG file, parses it in JavaScript and renders the result on Canvas. It also can be used to rasterize SVG images.
Quickstart
•
Docs
•
Demo
Install this library using your favorite package manager:
1pnpm add canvg 2# or 3yarn add canvg 4# or 5npm i canvg
Then, just import Canvg
and use it:
1import { Canvg } from 'canvg'; 2 3let v = null; 4 5window.onload = async () => { 6 const canvas = document.querySelector('canvas'); 7 const ctx = canvas.getContext('2d'); 8 9 v = await Canvg.from(ctx, './svgs/1.svg'); 10 11 // Start SVG rendering with animations and mouse handling. 12 v.start(); 13}; 14 15window.onbeforeunload = () => { 16 v.stop(); 17};
Description of all exports you can find in Documentation.
The end goal is everything from the SVG spec. The majority of the rendering and animation is working. If you would like to see a feature implemented, don't hesitate to add it to the issues list, or better is to create pull request 😎
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
no binaries found in the repo
Reason
project is fuzzed
Details
Reason
Found 4/23 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
72 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More