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

@gtmi/slides-deck

v0.1.0

Published

Framework-agnostic builder for Google Slides batchUpdate requests: units, palette, reusable slide layouts (title, section, feature+screenshot, detail cards, architecture, workflow). Emits chunked request batches you feed to any Slides client (e.g. gws CLI

Readme

@gtmi/slides-deck

Framework-agnostic builder for Google Slides presentations.batchUpdate requests. It knows nothing about how you talk to Google — you hand the emitted request chunks to any Slides client (the gws CLI, googleapis, etc.). It gives you:

  • Unitsinch(), pt(), hexToRgb(), page constants (EMU helpers).
  • Primitivesrect, text, bullets, image, RequestSink, chunkRequests.
  • LayoutsscreenshotCard (faux browser frame), pill, footer, infoCardGrid.
  • Deck — a high-level, chainable builder with ready-made slide templates: titleSlide, sectionSlide, featureSlide, detailSlide, workflowSlide, architectureSlide, closingSlide.

Why

The Slides API is verbose (every shape = create + style + text requests), uses EMU units, and batchUpdate is all-or-nothing. This package encapsulates a consistent, professional design system so decks come out clean instead of default-ugly, and keeps object IDs deterministic and batches sized safely.

Usage

import { Deck } from '@gtmi/slides-deck';

// manifest maps a screenshot key -> a fetchable image URL (see note below)
const manifest: Record<string, string> = JSON.parse(readFileSync('manifest.json', 'utf8'));

const deck = new Deck({
  brand: 'RAMP Architecture & Details · SE Enablement',
  resolveImage: (key) => manifest[key],
});

deck
  .titleSlide({
    kicker: 'TWILIO GTM INNOVATION',
    title: 'RAMP',
    subtitle: '…',
    keywords: ['Voice', 'SMS'],
  })
  .featureSlide({
    eyebrow: 'LAUNCH',
    title: 'Launch on Any Channel',
    summary: '…',
    points: ['…'],
    img: '07-launch-demo',
    note: 'SE tip',
  })
  .closingSlide({ kicker: 'START', title: 'Build your demo', points: ['…'] });

// feed each chunk to your Slides client:
for (const requests of deck.build()) {
  await slides.presentations.batchUpdate({ presentationId, requestBody: { requests } });
}

Images must be publicly fetchable at insert time

Slides fetches createImage.url server-side and needs anonymous access. In orgs that block public Drive/GCS sharing, use short-lived GCS signed URLs — see the global pi skill slides-image-upload (~/.pi/agent/skills/slides-image-upload) for the full workaround and helper scripts.

Design system

16:9 page (10 × 5.625 in). Twilio-inspired palette (override via palette). Consistent eyebrow pill + title + summary + bullets, dark footer with brand + page number, and screenshot cards rendered inside a drawn browser frame (never bake chrome into the PNG).

Scripts

pnpm --filter @gtmi/slides-deck check-types
pnpm --filter @gtmi/slides-deck test
pnpm --filter @gtmi/slides-deck lint