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

demo-reel

v0.1.3

Published

Create demo videos from web apps using Playwright

Readme

Demo Reel

Create beautiful demo videos from web apps using Playwright. Perfect for showcasing features, creating onboarding tutorials, or documenting workflows.

What is Demo Reel?

Demo Reel is a developer-first tool for creating professional demo videos from web applications. Unlike manual screen recording, Demo Reel uses Playwright automation to create pixel-perfect, reproducible demos.

Key Benefits:

  • Code as Config: Demo configurations are TypeScript files
  • Version Controlled: Track demo changes in git
  • CI/CD Ready: Generate videos in automated pipelines
  • Human-Like: Natural cursor movements and typing
  • Audio Support: Mix narration and background music

Installation

npm install -D demo-reel playwright

Quick Start

1. Create a Config File

Create demo-reel.config.ts in your project root:

import { defineConfig } from 'demo-reel';

export default defineConfig({
  viewport: { width: 1920, height: 1080 },
  video: { enabled: true, size: { width: 1920, height: 1080 } },
  name: 'my-demo',
  steps: [
    { action: 'goto', url: 'https://example.com' },
    { action: 'wait', ms: 2000 },
  ],
});

2. Run the Demo

npx demo-reel

Output: videos/my-demo.mp4

CLI Usage

# Run default config
npx demo-reel

# Run specific scenario
npx demo-reel onboarding

# Run all scenarios
npx demo-reel --all

# Validate config without recording
npx demo-reel --dry-run

# Verbose output
npx demo-reel --verbose

Configuration

Config File Discovery

The CLI looks for configs in this order:

  1. demo-reel.config.ts (default)
  2. <scenario>.demo.ts (when specifying scenario name)
  3. All *.demo.ts files (with --all flag)

Available Steps

  • goto - Navigate to URL
  • click - Click an element
  • hover - Hover over element
  • type - Type text into input
  • press - Press a key
  • scroll - Scroll element
  • wait - Wait for duration
  • waitFor - Wait for condition

Selector Strategies

// By test ID (data-testid attribute)
{ strategy: 'testId', value: 'submit-button' }

// By ID (without #)
{ strategy: 'id', value: 'username' }

// By class (without .)
{ strategy: 'class', value: 'btn-primary' }

// By href
{ strategy: 'href', value: '/dashboard' }

Features

Human-Like Cursor Movement

Smooth Bezier curve paths with configurable speed and easing.

Natural Typing

Variable delays based on character type (spaces, punctuation, etc.)

Audio Support

Mix narration and background music:

audio: {
  narration: './voiceover.mp3',
  narrationDelay: 2000,  // Delay before narration starts
  background: './music.mp3',
  backgroundVolume: 0.3,
}

CI/CD Integration

Example GitHub Actions workflow:

name: Generate Demo Videos
on: push

jobs:
  demos:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npx playwright install chromium
      - run: npx demo-reel --all
      - uses: actions/upload-artifact@v4
        with:
          name: demo-videos
          path: ./videos/*.mp4

License

MIT