Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@nowline/export-png

Latest version: v0.0.0-dev.20261130205208.gdbe9b87

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: nowline-gary
151 Versions
6.7K Downloads

Scan summary

@nowline/export-png was last scanned on 30 Nov 2026 at version 0.0.0-dev.20261130205208.gdbe9b87. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 151 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 0.0.0-dev.20261130205208.gdbe9b87.
  • Downloads: 6,675 downloads.

Versions

151 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.0-dev.20261130205208.gdbe9b87 LATEST 30 Nov 2026 No rules fired
0.0.0-dev.20261113081432.g753acbe 13 Nov 2026 No rules fired
0.13.0 13 Nov 2026 No rules fired
0.0.0-dev.20261113064443.g59273e1 13 Nov 2026 Not shown
0.0.0-dev.20261113044039.g6e1e35a 13 Nov 2026 Not shown

No rules fired in 0.0.0-dev.20261130205208.gdbe9b87

Findings

Findings for v0.0.0-dev.20261130205208.gdbe9b87. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.0-dev.20261130205208.gdbe9b87; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@nowline/export-png

Rasterizes a Nowline-rendered SVG to PNG using @resvg/resvg-js (a Rust→WASM SVG rasterizer). Bundled into the nowline CLI.

License: Apache 2.0 Part of: lolay/nowline monorepo Spec: specs/handoffs/m2c.md § 3

Install

pnpm add @nowline/export-png @nowline/export-core @nowline/renderer

Usage

import { layoutRoadmap } from '@nowline/layout';
import { renderSvg } from '@nowline/renderer';
import { resolveFonts } from '@nowline/export-core';
import { exportPng } from '@nowline/export-png';

const svg = await renderSvg(layoutRoadmap(file, resolved, { theme }));
const fonts = (await resolveFonts({ headless: true })).pair();
const png = await exportPng({ ast, resolved, model, sourcePath, today }, svg, {
    scale: 2,
    fonts,
});

// `png` is a Uint8Array of PNG bytes.

Options

Option Default Notes
scale 2 Pixel-density multiplier. Scales the root <svg width/height> before rasterization. Common values: 1, 1.5, 2, 3.
background model Override the background color (CSS color or transparent).
fonts resolveFonts() Pre-resolved sans/mono pair. If omitted, the exporter calls @nowline/export-core's resolver itself.
resvgOptions (none) Escape hatch for resvg-js options. Use sparingly.

The scale factor is applied by rewriting the root SVG element's width/height attributes — resvg-js 2.6.x ignores fitTo when fontBuffers is set, so this is the workaround the package uses to keep custom-font rendering deterministic.

Determinism

  • WASM module: lazy-loaded on first call; cached process-globally. The _resetResvgModule() test seam clears the cache.
  • loadSystemFonts: false — only fonts passed via fontBuffers are visible to resvg, so identical input produces identical bytes regardless of host machine.
  • Font bytes come from @nowline/export-core's 5-step resolver. With --headless (or the equivalent option here), the bundled DejaVu pair is used and the output is byte-stable across macOS / Linux / Windows.
  • The PNG header bytes are \x89PNG\r\n\x1a\n followed by an IHDR chunk whose dimensions equal scale × <svg width> × scale × <svg height>.

Snapshot tests

Snapshots live in test/__snapshots__/. Regenerate with vitest -u. Hash tests in test/export-png.test.ts confirm byte-stability across re-renders.

License

Apache-2.0.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @nowline/export-png

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229