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

@slideglance/viewer

v0.1.3

Published

React PPTX presentation viewer backed by @slideglance/core.

Readme

@slideglance/viewer

Framework-agnostic <pptx-viewer> Web Component (with React entry points) backed by @slideglance/core.

Part of the SlideGlance project — published to npm.

What it does

A drop-in viewer for .pptx files that handles parsing, rendering, worker offloading, and the surrounding chrome (toolbar, thumbnails, zoom, search, theme, print, PDF export). The bundle registers a <pptx-viewer> Web Component and also exports a React component (<PptxPresentation>) for React hosts.

All rendering is local — the package never uploads files or makes network requests beyond the initial wasm bundle fetch.

Install

pnpm add @slideglance/viewer @slideglance/core lit

Use (Web Component)

<pptx-viewer src="/decks/example.pptx" current-slide="1"></pptx-viewer>
<script type="module">
  import "@slideglance/viewer";
</script>

Or programmatically:

import "@slideglance/viewer";

const viewer = document.querySelector("pptx-viewer");
viewer.setBuffer(uint8ArrayOfPptxBytes);
viewer.addEventListener("slidechange", (ev) => {
  console.log(ev.detail.current, "/", ev.detail.total);
});

Use (React)

import { PptxPresentation, createWorkerController } from "@slideglance/viewer";
import { useEffect, useState } from "react";

function App({ src }: { src: Uint8Array }) {
  const [controller, setController] = useState(null);
  useEffect(() => {
    void createWorkerController().then(setController);
  }, []);
  return <PptxPresentation controller={controller} src={src} />;
}

Properties

| Attribute / Property | Type | Default | | -------------------------------- | ----------------------------------------- | ------------------- | | src | string \| null | null | | current-slide / currentSlide | number | 1 | | text-render-mode | "text" \| "path" \| "auto" | "text" | | font-fallback | "first-available" \| "system" \| "none" | "first-available" |

Methods

  • setBuffer(input: Uint8Array | ArrayBuffer): Promise<SlideSvg[]>
  • goToSlide(n: number): void
  • nextSlide(): void
  • prevSlide(): void
  • resetView(): void
  • requestFullscreen(): Promise<void> (inherited)

Events

  • slidechange{ current, previous, total }
  • loadprogress{ phase, message? } where phase is one of fetch / wasm-init / parse / render / done.
  • error{ phase, message }.

Keyboard / mouse / touch

  • / / Space / PageUp / PageDown — navigate.
  • Home / End — jump to first / last slide.
  • Esc — reset zoom & pan (or exit fullscreen if active).
  • Mouse wheel — navigate. Ctrl/⌘+wheel — zoom.
  • Drag — pan. Click left half / right half — prev / next.

Theming

Override CSS custom properties to restyle the viewer:

pptx-viewer {
  --pptx-viewer-bg: #fafafa;
  --pptx-viewer-fg: #111;
  --pptx-viewer-shadow: rgba(0, 0, 0, 0.18);
  --pptx-viewer-hud-bg: rgba(255, 255, 255, 0.85);
  --pptx-viewer-hud-fg: #111;
  --pptx-viewer-overlay: rgba(255, 255, 255, 0.85);
}

Status

Pre-release — APIs may change before 1.0.

License

MIT — see LICENSE.