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

@dotslide/framework

v0.2.2

Published

Modern, framework-agnostic slideshow framework built for both humans and agents

Readme

dotSlide

dotSlide is a modern presentation framework built with vanilla custom elements. Create fast, portable presentations with a single HTML file — no build step required.

Focus on content, not configuration.

✨ Why dotSlide

  • (Almost) zero dependencies — Vanilla custom elements, no framework lock-in
  • Single-file presentations — Just add a <script> tag
  • AI-friendly — Perfect for LLM-generated presentations
  • Portable — Works anywhere HTML works
  • Type-safe — Full TypeScript support with DOM type augmentations

🚀 Quick Start

Single HTML File

<!DOCTYPE html>
<html>
<head>
  <title>My Presentation</title>
  <style>
    body { width: 100%; height: 100%; }
  </style>
</head>
<body>
  <ds-slideshow data-slideshow-width="1920" data-slideshow-height="1080">
    <ds-keyboard-handler></ds-keyboard-handler>
    <ds-slide-controls></ds-slide-controls>
    
    <ds-slide>
      <h1>Hello, dotSlide!</h1>
    </ds-slide>
    
    <ds-slide>
      <h2>Second slide</h2>
    </ds-slide>
  </ds-slideshow>
  
  <script type="module" src="https://unpkg.com/@dotslide/framework/dist/index.js"></script>
</body>
</html>

With npm

npm install @dotslide/framework
<script>
  import '@dotslide/framework';
</script>

<ds-slideshow data-slideshow-width="1920" data-slideshow-height="1080">
  <ds-slide>
    <h1>Hello, dotSlide!</h1>
  </ds-slide>
</ds-slideshow>

🧩 Components

Core

| Element | Description | Key Attributes | |---------|-------------|----------------| | <ds-slideshow> | Root container for the presentation | data-slideshow-width, data-slideshow-height | | <ds-slide> | Individual slide | template | | <ds-step> | Progressive disclosure within a slide | data-from, data-to | | <ds-section> | Groups slides into sections | level, title | | <ds-slide-template> | Reusable slide layout with named slots | name | | <ds-slot> | Content placeholder inside a template | name |

Controls

| Element | Description | |---------|-------------| | <ds-keyboard-handler> | Enables arrow key navigation | | <ds-slide-controls> | On-screen prev/next buttons | | <ds-button> | Navigation button (used internally) | | <ds-overlay> | Positioning container (used internally) |

Widgets

| Element | Description | Key Attributes | |---------|-------------|----------------| | <ds-progress> | Shows presentation progress | data-display (bar/fraction/percentage), data-within | | <ds-current-slide> | Current slide number | data-within | | <ds-total-slides> | Total slide count | data-within | | <ds-current-section> | Current section info | data-display (numeric/text), data-level |

Layout

| Element | Description | Key Attributes | |---------|-------------|----------------| | <ds-flex> | Flexbox container | gap, mode (row/column), justify, align | | <ds-item> | Flex item | — | | <ds-list> | List container | data-mode (ordered/unordered), style="--ds-list-start: N" | | <ds-list-item> | List item | — |

Media

| Element | Description | Key Attributes | |---------|-------------|----------------| | <ds-image> | Image with loading state | Standard <img> attributes | | <ds-video> | Video with slide-aware playback | Standard <video> attributes | | <ds-counter> | Numbered counter (figures, tables) | data-type, data-id | | <ds-reference> | Reference to a counter | data-id |

📖 Examples

Progressive Disclosure

Gradually reveal elements on slides to direct attention.

<ds-slide>
  <h2>Key Points</h2>
  <ds-step data-from="1"><p>First point</p></ds-step>
  <ds-step data-from="2"><p>Second point</p></ds-step>
  <ds-step data-from="3"><p>Third point</p></ds-step>
</ds-slide>

Sections

Divide presentations into parts, chapters, or sections.

<!-- ds-section doesn't create a slide, so you can customize what to show -->
<ds-section level="1" title="Introduction" />
<ds-slide><h1>Chapter 1</h1></ds-slide>
<ds-slide><p>Content</p></ds-slide>

<ds-section level="1" title="Conclusion" />
<ds-slide><h1>Chapter 2</h1></ds-slide>

Layout

Pre-made components to help arrange content on slides.

<ds-slide>
  <ds-flex gap="2" mode="row">
    <ds-item>Left column</ds-item>
    <ds-item>Right column</ds-item>
  </ds-flex>
</ds-slide>

Widgets

Helper objects that read dynamic data from the presentation. Useful for showing progress.

<ds-slide>
  <p>Slide <ds-current-slide></ds-current-slide> of <ds-total-slides></ds-total-slides></p>
  <ds-progress data-display="bar"></ds-progress>
  <p>Section: <ds-current-section data-display="text"></ds-current-section></p>
</ds-slide>

Counters and References

Create custom counters and refer to them deterministically from other slides.

<ds-slide>
  <p>See Figure <ds-counter data-type="figure" data-id="fig1"></ds-counter></p>
  <p>Later: As shown in Figure <ds-reference data-id="fig1"></ds-reference>...</p>
</ds-slide>

Slide Templates

Define reusable layouts with <ds-slide-template> and <ds-slot>, then apply them to slides with the template attribute.

Templates must appear before the slides that reference them in DOM order.

<ds-slide-template name="main">
  <div class="slide-header">
    <h2><ds-slot name="title"></ds-slot></h2>
  </div>
  <div class="slide-body">
    <ds-slot />
  </div>
</ds-slide-template>

<!-- Text shorthand via ds-slot-* attributes -->
<ds-slide template="main" ds-slot-title="Welcome">
  <p>Body content goes into the unnamed slot.</p>
</ds-slide>

<!-- Rich content via slot attribute on children -->
<ds-slide template="main">
  <span slot="title">Custom <em>rich</em> title</span>
  <p>Body content goes into the unnamed slot.</p>
</ds-slide>

🎨 Styling

dotSlide uses CSS custom properties for theming:

ds-slideshow {
  --ds-font-content: system-ui, sans-serif;
  --ds-slide-bg: white;
  --ds-control-bg: white;
  --ds-control-radius: 9999px;
}

All styles are scoped to the @layer dotslide layer for easy customization.

🔧 TypeScript

Full type support with DOM augmentations:

import '@dotslide/framework';

// TypeScript knows about custom elements
const slideshow = document.querySelector('ds-slideshow');
// Type: Slideshow | null

HTML custom data included for editor autocomplete in VS Code and other editors.

🛠 Development

# Install dependencies
bun install

# Build
bun run build

# Watch mode
bun run dev

# Run tests
bun test/serve.sh
# Open http://localhost:8080/test/

📝 Migration from Astro

If you were using the Astro components:

Before (Astro):

---
import { Slideshow, Slide } from "@dotslide/framework";
---

<Slideshow width={1920} height={1080}>
  <Slide>Content</Slide>
</Slideshow>

After (Custom Elements):

<ds-slideshow data-slideshow-width="1920" data-slideshow-height="1080">
  <ds-slide>Content</ds-slide>
</ds-slideshow>

<script>
  // Register custom elements on the client side
  import "@dotslide/framework";
</script>

The functionality is identical — just use HTML tags instead of Astro components. Make sure to only import the package on the client side.

💬 Found it useful?

If you like this project, consider ☕ buying a coffee.