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

zconvert

v1.4.1

Published

ZConvert client — HTML decks to native PowerPoint, Markdown to PDF/DOCX

Readme

zconvert

Node client for ZConvert — HTML decks to native, editable PowerPoint; Markdown to PDF and Word.

npm install zconvert
import { ZConvert } from "zconvert";

const z = new ZConvert();
await z.mdToPdf("report.md", { out: "report.pdf" });

That is the whole setup. Rendering needs Chromium, so the first call starts the published Docker image (yatchiyax/zconvert) and reuses it from then on — the first run pulls ~2.7 GB once, later calls are instant. Requires Docker.

Naming a server turns the autostart off and uses exactly that one:

const z = new ZConvert("http://zconvert:8000");   // or set $ZCONVERT_URL

ZCONVERT_NO_AUTOSTART=1 disables it; z.stopServer() shuts the container down.

Zero runtime dependencies. Needs Node 18+.

Use

import { ZConvert } from "zconvert";

const z = new ZConvert();                          // or new ZConvert("http://host:8000")

// The source can be a path, a string of content, or a Uint8Array.
await z.htmlToPptx("deck.html", { out: "deck.pptx" });
await z.htmlToPptx(htmlString, { filename: "deck.html", out: "deck.pptx" });

await z.mdToPdf("# Hello\n\nWorld", { out: "hello.pdf" });
await z.mdToDocx("report.md", { title: "Q4 review", out: "report.docx" });

out is optional — every call returns a Uint8Array:

const pptx = await z.htmlToPptx("deck.html");

Start from a skeleton

deck.html documents the HTML deck rules in its own header comment; document.md shows every supported Markdown feature.

await z.saveExample("deck.html");                     // writes ./deck.html
await z.saveExample("document.md", "docs/document.md");
await z.examples();                                   // [{ name, description, convert_to }, …]

Options

Only what you set is sent, so the server's defaults stay authoritative.

await z.htmlToPptx("deck.html", {
  mode: "image",          // "native" (default, editable) | "image" (pixel-exact)
  embedFonts: false,      // default true
  realBackground: false,  // default true
  fontBody: "Inter",
  fontHeading: "Poppins",
  timeoutMs: 60_000,      // per-slide render budget
});

await z.mdToPdf("report.md", { title: "Q4 review" });

Styling the document

await z.mdToPdf("report.md", { theme: "violet" });     // slate (default), graphite,
                                                       // blue, violet, emerald,
                                                       // crimson, amber, teal
await z.mdToDocx("report.md", { accent: "#0d9488" });  // any hex colour
await z.mdToPdf("report.md", { captions: false });     // drop "Figure N" numbering
await z.mdToPdf("ar.md", { direction: "rtl" });        // auto-detected; force if needed

The theme recolours headings, links, list markers, table headers and the chart palette. PDF and DOCX read the same one, so the two stay in step.

convert() is the general form when you want to pass to yourself:

await z.convert("report.md", { to: "docx", out: "report.docx" });

HTML converts to pptx only; Markdown converts to pdf or docx. An impossible pair throws before any request is made.

Errors

import { ZConvertError } from "zconvert";

try {
  await z.htmlToPptx("deck.html");
} catch (e) {
  if (e instanceof ZConvertError) console.error(e.status, e.detail);
}

How a source is interpreted

| You pass | Treated as | |---|---| | "deck.html" (exists on disk) | a file | | "# Title\n\nBody" (has a newline) | content | | "<section>x</section>" (no such file) | content | | Uint8Array | content |

Pass filename with inline content: the extension picks the pipeline and the stem names the output.

Client options

new ZConvert("http://localhost:8000", {
  timeoutMs: 600_000,                    // abort after this long; default 300000
  headers: { Authorization: "Bearer …" },
  fetch: myFetch,                        // inject a fetch (tests, proxies)
});

Discovery

await z.health();     // { status: "ok", version: "1.0.0" }
await z.manifest();   // conversions, every parameter, defaults, limits

Test

node --test      # stubbed fetch, no server needed