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

inferno-presenter

v0.3.4

Published

A framework to create html presentations

Downloads

8

Readme

inferno-presenter

This is a framework to build beautiful web slides. It is based on inferno and rxjs to provide high performance and extensibility.

Creating a inferno-presenter project

To get started, you should create an npm package and install the inferno-presenter library:

npm init
npm i -D inferno-presenter webpack webpack-dev-server

In your package.json file you can now insert the following scripts:

{
  "scripts": {
    "start": "slides serve",
    "build": "slides dist"
  }
}

Alternatively you can use the docker image to get everything up and running quickly.

Getting started

Now you should be able to generate the basic project layout and shoot up the development server with the npm start script:

npm start

Slides

  • You can place your slides within src/slides and they will be automatically picked up.
  • By now we support .tsx, .jsx and .md slides. They will all be converted to inferno components.
  • All slides have to implement the Slide interface:
    interface Slide {
      /**
      * The id of the slide. This has to be unique and will be added to the slide container on the page.
      */
      id: string;
      /**
      * The slide title.
      */
      title: string;
      /**
      * Either a functional component or a component class. This component will be rendered as the slide content.
      */
      Component: any;
    }
  • Take a look at the demo directory for some inspiration.

Styles

  • Base styles are placed in src/main.scss
  • If you want to apply styles to your single slides, you can place a .sass, .scss or .css file with the same basename next to the slide file. You can use the slide id to restrict the styles to the context.