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

marp-slides

v0.3.0-beta.1

Published

Export Marp presentations to PNG images and videos with full animation support

Readme

marp-slides

Export Marp presentations to PNG images and videos with full animation support.

npm License: MIT

Quick Start

# Try now (no install required)
npx marp-slides image presentation.md

# Install globally
npm install -g marp-slides

Running the CLI

These scripts can be run with any JavaScript runtime:

Bun (Recommended)

# Run image export
bun run cli.ts image presentation.md

# Run video export
bun run cli.ts video presentation.md --slide 1 --duration 5

Deno

# Run directly from JSR
deno run jsr:@davinci/marp-slides/cli.ts image presentation.md
deno run jsr:@davinci/marp-slides/cli.ts video presentation.md --slide 1 --duration 5

Node.js / npm

# Via npx (no install)
npx marp-slides image presentation.md
npx marp-slides video presentation.md --slide 1 --duration 5

# Install globally
npm install -g marp-slides
marp-slides image presentation.md
marp-slides video presentation.md --slide 1 --duration 5

Commands

marp-slides image

Export slides as PNG images with batch processing and parallel execution.

# Single file
marp-slides image presentation.md

# Multiple files with glob pattern
marp-slides image "*.md"

# With resolution (hd, fhd, 2k, 4k, 5k)
marp-slides image presentation.md 4k

# Override existing output
marp-slides image "*.md" --override

marp-slides video

Create videos from slides with full animation support. Records HTML animations including:

  • Fragments - Step-by-step bullet points and content
  • Transitions - Slide-to-slide animations (fade, slide, zoom, etc.)
  • CSS effects - Any custom animations in your slides
# Record slide 2 for 5 seconds
marp-slides video presentation.md --slide 2 --duration 5

# Custom resolution and FPS
marp-slides video presentation.md --slide 2 --duration 10 --resolution fhd --fps 30

# Interactive slide selection
marp-slides video presentation.md --duration 5

Installation

See docs/installation.md for detailed setup instructions.

Quick setup with Mise:

mise use -g bun ffmpeg

Manual:

  1. Install Bun
  2. Install ffmpeg (for video export)

Options

image

| Option | Description | Default | |--------|-------------|---------| | resolution | Output resolution: hd, fhd, 2k, 4k, 5k | 2k or interactive | | --override | Overwrite existing output folders | false | | --output-dir <path> | Custom output directory | Same as .md location | | --format <fmt> | Image format: png, webp, jpg | png | | --quiet | Suppress progress output | false | | --dry-run | Preview without creating files | false |

video

| Option | Description | Default | |--------|-------------|---------| | --slide <n> | Slide number to record | Interactive | | --duration <sec> | Recording duration | Required | | --resolution <res> | Video resolution: hd, fhd, 2k, 4k, 5k | 2k | | --fps <n> | Frames per second | 30 | | --output <path> | Output video path | Auto-generated |

Examples

# Export all slides at 2K resolution
marp-slides image "presentations/*.md" 2k

# Preview what would be created
marp-slides image "*.md" --dry-run

# Create video from slide 3
marp-slides video presentation.md --slide 3 --duration 5

# Video with custom output path
marp-slides video presentation.md --slide 2 --duration 10 --output intro.mp4

How It Works

presentation.md
    │
    ▼
┌─────────────────────────────────────┐
│           Marp CLI                  │
└─────────────────────────────────────┘
    │
    ├──► PNG images ──────────────────► (image)
    │
    └──► HTML + Transitions ──► Browser ──► Frames ──► MP4
                                              (video)

Documentation

License

MIT © chris-cadev