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

vite-plugin-slidev-manager

v0.1.2

Published

A Vite plugin for managing multiple Slidev presentations in a monorepo structure.

Readme

vite-plugin-slidev-manager

日本語版 README

A Vite plugin for managing multiple Slidev presentations in a monorepo.

Features

  • Presentation selector for dev, build, and export:browser
  • Supports both workspace and non-workspace presentation layouts
  • In-page deck switching UI for Slidev decks
  • Slidev CLI argument passthrough

Requirements

  • Node.js version supported by your installed Vite and Slidev versions
  • vite ^5 || ^6 || ^7 || ^8
  • @slidev/cli >=52.14.1

Installation

npm install -D vite-plugin-slidev-manager vite @slidev/cli

Usage

1. Configure Vite

import { defineConfig } from 'vite';
import presentationManager from 'vite-plugin-slidev-manager';

export default defineConfig({
    plugins: [
        presentationManager({
            presentationsDir: 'presentations',
        }),
    ],
});

2. Add scripts

{
    "scripts": {
        "dev": "vite",
        "build": "vite build",
        "export:browser": "vite -- --export"
    }
}

Use vite -- --export instead of vite export. vite export is not a standard Vite command, and this plugin uses the forwarded --export flag to switch into browser-export mode.

3. Run commands

npm run dev
npm run build
npm run export:browser
  • npm run dev
    • opens the selector
    • starts the selected deck behind a stable bridge URL
    • injects the in-page switcher for decks with slides.md
    • creates custom-nav-controls.vue in the active deck only while the dev bridge is running, then removes it on shutdown
  • npm run build
    • opens the selector
    • runs the build script for the selected presentation
  • npm run export:browser
    • opens the selector
    • opens the selected deck's /export page in the browser

4. Pass Slidev options

Pass Slidev CLI options after --.

npm run dev -- -- --port 3030
npm run build -- -- --base /deck/ --output dist/slides
npm run export:browser -- -- --export --port 3030

Expected presentation structure

Each presentation directory should contain either:

  • a slides.md, or
  • a package.json with dev, build, and/or export scripts
my-project/
├── package.json
├── vite.config.ts
└── presentations/
    ├── intro/
    │   └── slides.md
    └── advanced/
        ├── package.json
        └── slides.md

Generated files during dev

During dev, the plugin temporarily creates a navigation control file only in the active presentation directory:

<vite-root>/
└── presentations/
  └── <active-deck>/
    └── custom-nav-controls.vue

This file is used to provide navigation controls for deck switching, and it is removed when the dev bridge stops.

Options

presentationManager({
    presentationsDir: 'presentations',
});
  • presentationsDir: directory to scan for presentations. Default: presentations
    • relative paths are resolved from the Vite root

Other options exist for advanced or custom setups, but most users only need presentationsDir.

Directory layout notes

This plugin does not require a VS Code workspace-specific layout. It works with a regular directory structure as long as:

  • Vite can start from the intended project root
  • presentationsDir points to your presentation folders, relative to the Vite root or as an absolute path
  • @slidev/cli is resolvable from the project where the plugin runs

This repository includes verified sample layouts under fixture/.

  • fixture/normal: regular directory layout without workspaces
  • fixture/workspace: monorepo-style layout with workspaces and shared themes

See fixture/README.md for setup and run instructions.

Development

bun install
bun run test
bun run lint
bun run build