npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

phyron-skia-canvas

v3.6.0

Published

A multi-threaded, GPU-accelerated, Canvas API for Node

Downloads

532

Readme

skia-canvas

crates.io docs.rs CI License: MIT

GPU-accelerated, multi-threaded HTML Canvas-compatible 2D rendering for Rust and Node.js, powered by Skia.

A fork of samizdatco/skia-canvas that adds:

  • F16/F32 pixel formats for HDR compositing.
  • Extended color spaces: Display P3, Rec.2020, HDR10 (PQ), HLG, plus linear variants.
  • OkLab gradient interpolation in OkLab, OkLCH, Lab, LCH, HSL, HWB.
  • CanvasKit filter parity (ColorFilter, ImageFilter).
  • Font registration from buffers without writing to disk.
  • Variable font axis control (wght, wdth, opsz, slnt, custom axes).
  • Linear-light premultiplied colors plumbed through paint, gradient, filter, text.
  • ParagraphBuilder/Paragraph rich text with mixed styles, per-run shadows, hit-testing, line metrics.

Rust

[dependencies]
skia-canvas = { version = "0.2", default-features = false, features = ["vulkan", "freetype"] }

The stable Rust API is the crate root, re-exported through skia_canvas::prelude. Public signatures never expose skia_safe or neon types -- a compile-time pin in tests/native_studio_renderer_adapter.rs enforces this; the Node/Neon binding lives under the internal node module.

use skia_canvas::prelude::*;

let backend = Backend::new();
let mut surface = backend.create_surface(
    1920,
    1080,
    SurfaceOptions {
        color_space: LinearColorSpace::DisplayP3,
        ..SurfaceOptions::default()
    },
)?;

surface.with_canvas(|canvas| {
    canvas.clear(RgbaLinear::new_premultiplied(0.0, 0.0, 0.0, 0.0));
    canvas.draw_rect(
        Rect::from_xywh(100.0, 100.0, 200.0, 100.0),
        &Paint::fill(RgbaLinear::opaque(1.0, 0.0, 0.0)),
    );
});

let frame = surface.read_pixels()?; // tight RGBA8, sRGB-gamma, unpremultiplied

See docs/api/native-rust.md for the reference and examples/ for runnable code.

Cargo features

| Feature | Notes | |---|---| | vulkan | Vulkan backend (Linux / Windows). | | metal | Metal backend (macOS). | | window | winit-backed event loop. | | freetype | Bundle FreeType + WOFF2 (recommended on minimal containers). | | node-addon | Register the #[neon::main] Node addon entry point. Pure-Rust consumers leave this off. |

Default feature set is empty; opt in to the backend you need.

Skia version

| skia-canvas | skia-safe | Skia milestone | |---|---|---| | 0.2.x | 0.97.x | M148 |

The Skia revision is pinned by skia-safe; bumping skia-safe is a skia-canvas minor-version event.

Node.js

The same source tree also produces the phyron-skia-canvas npm package.

npm install phyron-skia-canvas
import { Canvas } from "phyron-skia-canvas";

let canvas = new Canvas(1920, 1080, {
  colorType: "rgbaf16",
  colorSpace: "rec2020-pq", // HDR10
});

See docs/node.md for installation, platform support (Linux / Docker / AWS Lambda / Next.js), the JavaScript API, and benchmarks.

Acknowledgements

Built on top of the rust-skia project (skia-safe + skia-bindings). Forked from samizdatco/skia-canvas; many thanks to its contributors.

License

MIT. See LICENSE.

© 2020–2026 Samizdat Drafting Co., Phyron AB and contributors.