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

dw-kit-render

v0.2.0

Published

Optional renderer for dw-kit: /dw:review --visual review cards (ADR-0007) + dw task render timeline sidecars (ADR-0008). Turns structured manifests into SVG + PNG via shiki + satori + @resvg/resvg-js (pure JS + WASM).

Downloads

33

Readme

dw-kit-render

Optional renderer for dw-kit /dw:review --visual. Turns a structured findings manifest into SVG + PNG cards.

Pure JS + WASM (shiki + satori + @resvg/resvg-js). No native build. Works on Windows / Linux / macOS / ARM. Install via npm install -g dw-kit-render once and /dw:review --visual produces image artifacts.

See ADR-0007 for the architecture.

Install

# Global install — picked up by `dw review render` automatically.
npm install -g dw-kit-render

# Or per-project.
npm install --save-dev dw-kit-render

Check installation:

dw doctor   # surfaces Review Render Pipeline section

Use via dw-kit

# 1. /dw:review --visual  (skill writes .dw/reviews/{scope}/manifest.json)
# 2. CLI shim invokes:
dw review render .dw/reviews/{scope}/manifest.json

Outputs:

  • .dw/reviews/{scope}/finding-{id}.svg
  • .dw/reviews/{scope}/finding-{id}.png
  • .dw/reviews/{scope}/summary.md (cross-linked with image paths)

Use programmatically

import { render } from 'dw-kit-render';

const { svgPaths, pngPaths } = await render({
  manifest,                     // matches dw-kit manifest schema v1
  outDir: '.dw/reviews/x',
  formats: ['svg', 'png'],      // or ['svg'] / ['png']
  theme: 'github-dark',         // any shiki theme
  font: '/abs/path/to/font.ttf' // optional; auto-detects Consolas/DejaVu/Menlo if omitted
});

Font

satori and resvg both need a font file. By default dw-kit-render auto-detects a sensible monospace font on the host:

  • Windows: C:\Windows\Fonts\consola.ttf (Consolas)
  • Linux: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
  • macOS: /System/Library/Fonts/Menlo.ttc

All three cover Vietnamese diacritics + CJK fallback well enough for review cards. To override, pass font: '/path/to/your.ttf' (must be TTF/OTF).

If no font is found, render throws a clear error pointing to install hints.

Severity colors

| Severity | Bar color | Label | |--------------|-----------|-------| | critical | Red | CRITICAL | | warning | Amber | WARNING | | suggestion | Blue | SUGGESTION |

Bar bg + text computed for contrast. Severity drives banner color only; code block stays themed via shiki.

Schema

Renderer consumes manifest schema v1 from dw-kit. Source: src/lib/review/manifest-schema.json.

Bumping schema = renderer rejects mismatched versions with clear error. Renderer follows semver of dw-kit for schema compatibility.

License

MIT.