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

tw-slide

v0.1.1

Published

Modern Tailwind-based presentation library for the web

Readme

tw-slide

Modern presentations, powered by Tailwind.

npm version bundle size license TypeScript

npm install tw-slide

Why tw-slide?

| | reveal.js | tw-slide | |---|---|---| | Styling | Custom CSS themes | Tailwind utility classes | | Bundle | ~30KB+ gzip | ~4.5KB gzip | | Dependencies | Multiple | Zero | | Types | Community @types | Built-in TypeScript | | Learning curve | Theme API + config | Just HTML + Tailwind | | Dark mode | Theme-dependent | One class toggle |

Features

Core

  • Tailwind-native styling
  • 6 GPU-accelerated transitions
  • 8 fragment animations
  • Keyboard, touch & swipe navigation
  • URL hash sync

Extras

  • Plugin system (progress, slide numbers, overview)
  • Dark / light mode
  • prefers-reduced-motion support
  • Print-ready PDF export
  • TypeScript with full autocompletion

Quick Start

HTML

<div class="ts-deck ts-dark">
  <section class="ts-slide">
    <div class="ts-content text-center">
      <h1 class="text-6xl font-bold text-white">Hello, tw-slide</h1>
      <p class="text-xl text-gray-400 mt-4">Press &rarr; to continue</p>
    </div>
  </section>

  <section class="ts-slide">
    <div class="ts-content">
      <h2 class="text-4xl font-bold text-white mb-6">Fragments</h2>
      <p class="ts-fragment text-gray-300" data-ts-animation="fade-up">I appear first</p>
      <p class="ts-fragment text-gray-300" data-ts-animation="fade-up">I appear second</p>
    </div>
  </section>
</div>

JavaScript

import TailSlide, {
  ProgressPlugin,
  SlideNumberPlugin,
  OverviewPlugin,
} from 'tw-slide';
import 'tw-slide/style.css';

const deck = new TailSlide({
  transition: 'slide',
  dark: true,
});

deck.use(new ProgressPlugin());
deck.use(new SlideNumberPlugin());
deck.use(new OverviewPlugin());

That's it. Style your slides with Tailwind and present.

Transitions

All transitions use the Web Animations API for GPU-accelerated, 60fps performance.

| Transition | Description | |:---:|---| | none | Instant cut | | fade | Crossfade dissolve | | slide | Horizontal slide (default) | | zoom | Scale in / out | | flip | 3D card flip | | cube | 3D cube rotation |

new TailSlide({ transition: 'cube', transitionSpeed: 600 });

Per-slide override via data-ts-transition:

<section class="ts-slide" data-ts-transition="zoom">...</section>

Fragments

Reveal content step by step within a slide.

<p class="ts-fragment" data-ts-animation="fade-up">Step 1</p>
<p class="ts-fragment" data-ts-animation="grow">Step 2</p>
<p class="ts-fragment" data-ts-animation="highlight">Step 3</p>

| Animation | Effect | |:---:|---| | fade-in | Opacity fade (default) | | fade-up | Slide up + fade | | fade-down | Slide down + fade | | fade-left | Slide from right + fade | | fade-right | Slide from left + fade | | grow | Scale up from small | | shrink | Scale down from large | | highlight | Yellow background highlight |

Configuration

new TailSlide({
  el: '.ts-deck',          // container selector or element
  transition: 'slide',     // none | fade | slide | zoom | flip | cube
  transitionSpeed: 500,    // duration in ms
  easing: 'ease-in-out',   // CSS easing function
  keyboard: true,          // keyboard navigation
  touch: true,             // touch / swipe
  hash: true,              // URL hash sync
  dark: true,              // dark mode
  loop: false,             // loop slides
  autoSlide: 0,            // auto-advance ms (0 = off)
  startSlide: 0,           // starting index
});

Keyboard Shortcuts

| Key | Action | |:---:|---| | Space N | Next slide / fragment | | P | Previous slide / fragment | | Home | First slide | | End | Last slide | | O | Toggle overview grid | | Esc | Toggle overview grid |

Plugins

ProgressPlugin

Thin progress bar at the top edge.

deck.use(new ProgressPlugin());

SlideNumberPlugin

Current / total counter at bottom-right.

deck.use(new SlideNumberPlugin());

OverviewPlugin

Bird's-eye grid of all slides. Press O to toggle, click to navigate.

deck.use(new OverviewPlugin());

API

deck.next();                         // next fragment or slide
deck.prev();                         // previous fragment or slide
deck.goTo(3);                        // jump to slide index
deck.getState();                     // { currentSlide, totalSlides, ... }
deck.getSlides();                    // HTMLElement[]
deck.toggleOverview();               // toggle overview mode
deck.on('slide:changed', callback);  // listen to events
deck.off('slide:changed', callback); // remove listener
deck.destroy();                      // clean up everything

Events

| Event | Payload | |---|---| | slide:changed | { from: number, to: number } | | fragment:shown | { slide, fragment, element } | | fragment:hidden | { slide, fragment, element } | | deck:ready | { totalSlides } | | deck:destroyed | {} | | overview:open | {} | | overview:close | {} |

Custom Plugins

Extend tw-slide with your own plugins:

import type { TailSlidePlugin, TailSlideAPI } from 'tw-slide';

class ConfettiPlugin implements TailSlidePlugin {
  name = 'confetti';

  init(deck: TailSlideAPI) {
    deck.on('slide:changed', ({ to }) => {
      if (to === deck.getSlides().length - 1) {
        // 🎉 last slide — fire confetti!
      }
    });
  }

  destroy() {}
}

deck.use(new ConfettiPlugin());

Browser Support

Chrome, Firefox, Safari, Edge — all modern browsers with Web Animations API support.

License

MIT © bysxx