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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-shower

v1.1.1

Published

[Shower](https://shwr.me) presentation engine running on React and Redux.

Downloads

24

Readme

react-shower

Shower presentation engine running on React and Redux.

Known issues

Does not work on node.js 6.x yet!

Usage

I built reshower cli-tool specifically to streamline work with react-shower.

To start a new project just go to some directory, then:

npm i -g reshower
mkdir somedir && reshower init

and follow instructions.

To start working just do:

reshower start

in your project folder.

You can read more about reshower here.

Configuration

You can use config.json file in your directory to specify desired configuration.

Options:

  1. theme — shower theme you want to use, by default shower-ribbon is used. If you want to use another theme (e.g. shower-material), you need first to use npm to install it

  2. proportions — every shower theme should support 16x9 mode, and 4x3 mode, you can use this option to specify desired mode

Components

I tried to keep this engine reasonably close to original Shower API, but this is a list of components that I decided to introduce to increase usability or for some technical reasons.

Deck

This is just a wrapper for every presentation, it has no properties.

Slide

Basically <section> tag from original Shower engine, but less verbose.

Properties:

  1. className — additional class for this slide

Code

You can use it to embed some code in your slide. Prism.js is used for highlighting.

Properties:

  1. code — code you want to display
  2. lang — prism.js language preset

Example:

import example from "./examples/example.hs";

...

<Code code={example} lang={haskell}/>

If you want to know more about shower themes capabilities you should visit their documentation.

Why?

The purpose of this port is not to use fanciest technologies available, but because current Shower engine lacks features that are critical for me:

###1. Flexible file structure I don't want to keep all my presentation in one file. There should be easy way to split my presentation as any other kind of code into separate files to enchance its logical structure.

###2. Components I need a way to reuse markup, to not copy-paste every pattern I need on 2 or more slides, in addition over time there are more patterns that I want to reuse in my different presentation, instead I have to copy-paste them, this leads me to copying a lot of boilerplate code when I start another presentation.

###3. Extensibility Current Shower engine uses ad-hoc modules, which is not part of any specification. This port uses ES6 modules, which leads to better interop with other libraries.

###4. Hot-reload If you used it once, you're addicted. Of course, you can use things like Browsersync, livereload, etc, but it's not even close to instant updates that are available if you use webpack hot-reload feature.

###5. (Almost) Pure CSS Actually, the reason I started this project is my experience with Spectacle presentation engine. It has React, Redux and hot-reload as well. However, in my opinion their CSS-in-JS approach may be viable for developing isolated components in real project, presentation is not the same as your common web project.

I struggled with radium for a bit, and understood, that it is easier to rewrite whole Spectacle project than customize their theme for my needs. So it goes.

###6. Beautiful and clean Shower themes I am a big fan of Shower themes. It's a pleasure to create presentations with them, they are clean and battle-tested by many speakers.

WIP

Currently this engine does not support Timer feature and next feature for lists.

Contributions

All contributions are welcome, just make a PR.