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

slidev-addon-second-screen

v1.0.2

Published

Open presentation on second screen in fullscreen from presenter view

Readme

slidev-addon-second-screen

A Slidev addon that adds a button to the presenter view for opening the presentation on a second screen, similar to PowerPoint's presenter view.

Features

  • Open on Second Screen: Opens the slide presentation on an external display, always on the screen where the presenter is NOT running
  • Fullscreen Prompt: Automatically requests fullscreen mode with a fallback dialog (supports Enter/Escape/X-button)
  • Visual Status: Button icon shows whether the second screen is active (filled) or inactive (outline)
  • Auto-Detect Close: Button resets when the second screen window is manually closed
  • Feature Detection: Gracefully handles browsers without Window Management API support
  • Automatic Sync: Leverages Slidev's built-in navigation sync between windows

Requirements

  • Browser: Chrome 100+ or Edge 100+ (Window Management API required)
  • Secure Context: HTTPS or localhost (required for Window Management API)
  • Multiple Screens: At least two connected displays

Installation

npm install slidev-addon-second-screen

Usage

Add the addon to your Slidev presentation:

Option 1: In slides.md frontmatter

---
addons:
  - slidev-addon-second-screen
---

Option 2: In package.json

{
  "slidev": {
    "addons": ["slidev-addon-second-screen"]
  }
}

How It Works

  1. Open on Second Screen: When you click the button in the presenter view, the addon:

    • Requests permission to access screen information
    • Detects the screen where the presenter is NOT running
    • Opens a new window on that screen with the slide presentation
    • Automatically requests fullscreen mode on the second screen
  2. Fullscreen Prompt: If automatic fullscreen fails, a dialog appears with:

    • "Enter Fullscreen" button
    • Keyboard shortcuts: Enter (fullscreen), Escape (close dialog)
    • X button to dismiss the dialog
  3. Navigation Sync: Slidev automatically syncs navigation between all open windows, so when you advance slides in the presenter view, the second screen updates accordingly.

Browser Support

| Feature | Chrome | Firefox | Safari | |---------|--------|---------|--------| | getScreenDetails() | 100+ | ❌ | ❌ | | requestFullscreen() | 100+ | ❌ | ❌ |

The addon will:

  • Show the button only in supported browsers
  • Display a disabled icon in unsupported browsers
  • Gracefully hide functionality when features are unavailable

HTTPS Requirement

The Window Management API requires a Secure Context:

  • http://localhost and http://127.0.0.1 are considered secure ✅
  • Any other hostname requires HTTPS
  • For hosted slides (GitHub Pages, Netlify, etc.), HTTPS is automatic

No HTTPS configuration needed for local development when using localhost.

Permissions

On first use, the browser will prompt for permission to:

  • Access information about your displays
  • Open and place windows on specific screens

You can manage these permissions in your browser's site settings.

Troubleshooting

Button appears disabled

  • Ensure you're using Chrome 100+ or Edge 100+
  • Check that you're accessing via localhost or HTTPS
  • Verify that multiple screens are connected

Popup blocked

  • Allow popups for your Slidev site in browser settings
  • The addon needs to open a new window for the second screen

Fullscreen not working

  • Fullscreen must be triggered by a user gesture (clicking the button)
  • Some browsers may require additional interaction before allowing fullscreen
  • Use the fullscreen prompt dialog as a fallback

Screens not syncing

  • Ensure both windows are connected to the same Slidev dev server
  • In build mode, sync uses BroadcastChannel (same browser, same device)
  • In dev mode, sync uses the Vite dev server

License

MIT

Author

Denis Sowa

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.