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

@vietsch/svelte-video-gallery

v1.0.0

Published

Reusable, themeable video gallery component for Svelte 5 with thumbnails, bullets, fullscreen, swipe and crossfade transitions.

Downloads

35

Readme

@vietsch/svelte-video-gallery

Reusable, themeable video gallery for Svelte 5 with thumbnails, bullets, fullscreen, swipe and crossfade transitions.

Written with Svelte 5 runes ($props, $state, $derived, snippets). Requires Svelte 5.

Install

pnpm add @vietsch/svelte-video-gallery @vietsch/svelte-video-player-kit
# or
npm i @vietsch/svelte-video-gallery @vietsch/svelte-video-player-kit

@vietsch/svelte-video-player-kit is a peer dependency.

Usage

<script lang="ts">
  import { VideoGallery } from '@vietsch/svelte-video-gallery';

  const videos = [
    { title: 'Video 1', description: 'First', poster: '/a.jpg', source: '/a.mp4' },
    { title: 'Video 2', description: 'Second', poster: '/b.jpg', source: '/b.mp4' }
  ];
</script>

<VideoGallery
  {videos}
  thumbnailPosition="bottom"
  thumbnailVariant="scroll"
  timeDisplay={false}
  showBullets={true}
  showFullscreenButton={true}
  onChange={({ index }) => console.log('now showing', index)}
  onScreenChange={({ fullscreen }) => console.log('fullscreen:', fullscreen)}
/>

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | videos | VideoItem[] | [] | Videos to display | | thumbnailPosition | 'top' \| 'bottom' \| 'left' \| 'right' | 'bottom' | Where the thumbnail strip is rendered. left/right render a vertical strip | | thumbnailVariant | 'scroll' \| 'flex' | 'scroll' | Thumbnail layout variant | | timeDisplay | boolean | false | Show the player's time display | | showBullets | boolean | true | Show bullet navigation | | showFullscreenButton | boolean | true | Show the fullscreen toggle | | onChange | (detail: { index: number }) => void | – | Called when the selected video changes | | onScreenChange | (detail: { fullscreen: boolean }) => void | – | Called when fullscreen is entered/left |

interface VideoItem {
  poster: string;
  source: string;
  title?: string;
  description?: string;
  thumbnail?: string;
}

All prop types are exported: VideoItem, VideoGalleryProps, ThumbnailPosition, ThumbnailVariant, ChangeEventDetail, ScreenChangeEventDetail.

Theming

The component is styled through CSS custom properties set in your app:

| Variable | Used for | | --- | --- | | --action | Accent color (active thumbnail border, active bullet, icon hover). HSL components, e.g. 210 100% 50% | | --action-raw | Accent color as raw HSL components for alpha compositing | | --foreground, --foreground-raw | Icon and bullet base colors | | --background, --background-raw | Fullscreen backdrop and mobile controls gradient | | --muted-foreground | Thumbnail titles | | --border-radius | Corner rounding for thumbnails and buttons | | --max-height-main, --top-menu-height | Optional layout constraints for the player area (fall back to 100vh / 0rem) |

Component classes use the prefix svgvg- (e.g. svgvg-bullet, svgvg-icon) and can be themed from the host app with normal CSS specificity — the component no longer forces its own colors with !important.

Development

npm install
npm run check   # svelte-check
npm run build   # svelte-package → dist/

Changelog

See CHANGELOG.md.

License

GPL-3.0 — see LICENSE.