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

wdrslides

v1.2.2

Published

webpack driven react slides framework

Readme

Travis npm package Coverage Status

wdrslides

Webpack Driven React Slides is a set of lightweight react components to create presentations.

Installation

Add the package from npm repository via

npm i -S wdrslides

or

yarn add wdrslides

Usage

wdrslides syntax is super simple. Your first presentation could be as simple as:

import React from 'react'
import {render} from 'react-dom'
import {
	Presentation,
	KeyboardControls,
	Canvas,
	Slide
} from 'wdrslides' // import the basic elements

const presentation = (
	<Presentation>
		<KeyboardControls />
		<Canvas aspectRatio={4 / 3}>
			<Slide>
				<h1>Hello World!</h1>
			</Slide>
			<Slide>
				<h1>Thank You and Goodbye!</h1>
			</Slide>
		</Canvas>
	</Presentation>
)

render(presentation, document.getElementById('root'))

Your index.html should look something like this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Presentation Title</title>
		<style type="text/css">
		body {  // increase font size, make background dark
			font-size: 2em;
			background-color: black;
		}

		#root { // use all of the available space
			position: absolute;
			top:0;
			right:0;
			bottom:0;
			left:0;
		}

		.stage { // set presentation background and border
			border: 1px solid #2d4759;
			background-color: #fff;
		}
		</style>
  </head>
  <body>
    <div id='root'/>
  </body>
</html>

Keyboard Navigation

The KeyboardControls component adds event listeners to key presses. It allows navigation with the arrow, space and backspace keys.

Mouse Navigation

Keyboard control doesn't do the trick for you? Add navigation buttons like this:

<ProgressBar />
<div className="navigation">
	<NavButton action="backward">«</NavButton>
	<Progress />
	<NavButton action="forward">»</NavButton>
</div>

Add styles to your index.html

.progressbar {
	height: 5px;
	background-color: #7dcbff;
	transition: width 0.5s ease-in-out;
	top: 100%;
	position: absolute;
	transform: translateY(-5px);
}

.navigation {
	z-index: 999;
	width: 100%;
	text-align: right;
	position: absolute;
	top: 100%;
	transform: translateY(-100%);
	font-size: 1em;
}

Full Example

See the demo branch of this repository.

Extend

If you wish to add external content to your slides you can use various loaders for webpack. I recommend taking a look at markdown-loader and html-loader.

You can also extend wdrslides however you wish. To get started you may want to look at the Progress components.