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

@frontierjs/print-kit

v0.1.3

Published

One headless-Chromium render worker behind one seam: an HTML document to a PDF, an element to a PNG, over @frontierjs/mesa/drive

Readme

@frontierjs/print-kit

An HTML document to a PDF, an element to a PNG, in one headless Chromium behind one seam. Built on @frontierjs/mesa/drive, so an app that prints adds no second Chrome driver.

import { createPrinter, printDocument, printer as printerPlugin } from '@frontierjs/print-kit'

const printer = createPrinter()            // opens Chrome on the first job
const html    = printDocument({ title, body, css, margins })
const pdf     = await printer.pdf(html)    // Uint8Array
const png     = await printer.png(html, '#chart')
await printer.close()

In a Junction app, app.use(printer()) claims it as app.printer; with no Chrome on the machine the app refuses at boot, by name.

The page runs offline, scripts off. The document is built from landed data, which is somebody else's: a URL in it cannot make the server fetch anything, and markup in a name reaches nothing.

./print.css is the stylesheet every printed document carries after the app's own: page groups, break rules, margin boxes.

Requirements

  • Chrome or Chromium on the machine (findChrome() from mesa's drive).
  • pdftotext (poppler) for the suite's text assertions; tests needing it skip by name when absent.

Where it came from

Incubated in the Transit prototype as @transit/print-kit (its PLAN.md Q7) and moved here under FJS-D816 once a second app imported it.