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

slideshot

v2.5.0

Published

Convert HTML slides to high-res PNG, WebP, PDF, and PPTX — CLI + library

Readme

slideshot

npm npm downloads GitHub stars

Convert HTML slides to high-resolution PNG, WebP, and PDF. Works as both a CLI and a Node.js library.

Web App · MCP Server · GitHub

CLI

npx slideshot slides.html

Options

| Flag | Description | Default | |------|-------------|---------| | -s, --selector <sel> | CSS selector for slide elements | .slide | | -W, --width <n> | Slide width (CSS px) | 540 | | -H, --height <n> | Slide height (CSS px) | 675 | | --scale <n> | Device scale factor (2-6) | 4 | | -f, --formats <list> | Comma-separated: png,webp,pdf | png,webp,pdf | | -q, --quality <n> | WebP quality (0-100) | 95 | | -o, --out <dir> | Output directory | ./slides |

Examples

# PNG only, 2x scale
npx slideshot deck.html -f png --scale 2

# Custom selector and output dir
npx slideshot deck.html -s ".card" -o ./output

# Get AI prompt template
npx slideshot prompt generic
npx slideshot prompt branded

Programmatic API

npm install slideshot

renderSlides(options): Promise<RenderResult>

Renders slides to files on disk.

import { renderSlides } from "slideshot";

const result = await renderSlides({
  htmlPath: "./slides.html",   // or html: "<div class='slide'>...</div>"
  selector: ".slide",
  width: 540,
  height: 675,
  scale: 4,
  formats: ["png", "webp", "pdf"],
  outDir: "./output",
});

console.log(result.files);      // ["/abs/path/slide-01.png", ...]
console.log(result.slideCount); // 5

renderToBuffers(options): Promise<BufferResult>

Returns in-memory buffers (useful for web servers, APIs, streaming).

import { renderToBuffers } from "slideshot";

const { images, pdf, slideCount } = await renderToBuffers({
  html: "<div class='slide'>Hello</div>",
  formats: ["png", "pdf"],
});

// images: [{ name: "slide-01.png", buffer: Buffer, type: "png" }]
// pdf: Buffer | undefined

Types

type ImageFormat = "png" | "webp" | "pdf";

interface RenderOptions {
  html?: string;
  htmlPath?: string;
  selector?: string;    // default: ".slide"
  width?: number;       // default: 540
  height?: number;      // default: 675
  scale?: number;       // default: 4
  formats?: ImageFormat[]; // default: ["png", "webp", "pdf"]
  webpQuality?: number; // default: 95
  outDir: string;
}

interface RenderResult {
  files: string[];
  slideCount: number;
}

AI Prompt

Tell your AI to generate HTML with .slide divs at 540x675px. Get the full prompt:

npx slideshot prompt generic   # clean minimal slides
npx slideshot prompt branded   # Ketan Slides design system

Related

  • slideshot-mcp — MCP server for Claude Desktop & Cursor
  • Web App — paste HTML, preview, export online
  • GitHub — source code & issues

License

MIT