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

@reelkit/angular-reel-player

v0.4.1

Published

Full-screen vertical-swipe video/image reel player for Angular, inspired by Instagram Reels and TikTok

Readme

@reelkit/angular-reel-player

Instagram Reels / TikTok-style video player for Angular. Opens as a full-screen overlay with vertical swipe navigation. Handles video autoplay, sound continuity on iOS, and multi-media posts. ~19.3 kB gzip.

Live Demo

Installation

npm install @reelkit/angular-reel-player @reelkit/angular

Quick Start

import { Component, signal } from '@angular/core';
import {
  RkReelPlayerOverlayComponent,
  type ContentItem,
} from '@reelkit/angular-reel-player';

@Component({
  standalone: true,
  imports: [RkReelPlayerOverlayComponent],
  template: `
    <button (click)="isOpen.set(true)">Open Player</button>
    <rk-reel-player-overlay
      [isOpen]="isOpen()"
      [content]="content"
      (closed)="isOpen.set(false)"
    />
  `,
})
export class AppComponent {
  isOpen = signal(false);
  content: ContentItem[] = [
    {
      id: '1',
      media: [
        {
          id: 'v1',
          type: 'video',
          src: 'https://example.com/video.mp4',
          poster: 'https://example.com/poster.jpg',
          aspectRatio: 9 / 16,
        },
      ],
      author: { name: 'John Doe', avatar: 'https://example.com/avatar.jpg' },
      likes: 1234,
      description: 'Amazing video!',
    },
  ];
}

Features

  • Vertical swipe navigation (touch, mouse, keyboard, wheel)
  • Video autoplay with sound toggle
  • Multi-media posts with horizontal nested slider
  • Instagram-style indicator dots
  • Keyboard navigation (Arrow keys, Escape)
  • Desktop navigation arrows
  • iOS sound continuity via shared <video> element
  • Video position memory across slide changes

Template Slots

Customization via @ContentChild template directives:

| Directive | Description | | -------------------------- | ---------------------------------------------- | | rkPlayerSlideOverlay | Custom per-slide overlay (author, likes, etc.) | | rkPlayerSlide | Fully custom slide content | | rkPlayerControls | Custom player controls (close, sound) | | rkPlayerNavigation | Custom prev/next navigation arrows | | rkPlayerNestedSlide | Custom nested horizontal slide content | | rkPlayerNestedNavigation | Custom arrows for the inner slider |

API Reference

rk-reel-player-overlay Inputs

| Input | Type | Default | Description | | --------------------- | --------------- | -------- | ----------------------------- | | isOpen | boolean | required | Controls overlay visibility | | content | ContentItem[] | required | Content items to display | | initialIndex | number | 0 | Starting slide index | | loop | boolean | false | Enable infinite loop | | enableNavKeys | boolean | true | Enable keyboard navigation | | enableWheel | boolean | true | Enable mouse wheel navigation | | wheelDebounceMs | number | 200 | Wheel debounce duration (ms) | | transitionDuration | number | 300 | Transition duration (ms) | | swipeDistanceFactor | number | 0.12 | Swipe threshold (0-1) |

rk-reel-player-overlay Outputs

| Output | Type | Description | | ------------- | -------- | -------------------------- | | closed | void | Emitted when player closes | | slideChange | number | Emitted after slide change |

Types

interface ContentItem {
  id: string;
  media: MediaItem[];
  author: {
    name: string;
    avatar: string;
  };
  likes: number;
  description: string;
}

interface MediaItem {
  id: string;
  type: 'image' | 'video';
  src: string;
  poster?: string;
  aspectRatio: number;
}

Keyboard Shortcuts

| Key | Action | | ------------ | ----------------------- | | ArrowUp | Previous slide | | ArrowDown | Next slide | | ArrowLeft | Previous media (nested) | | ArrowRight | Next media (nested) | | Escape | Close player |

CSS Classes

| Class | Description | | ------------------------------------ | --------------------------------- | | .rk-reel-overlay | Overlay background | | .rk-reel-container | Player container | | .rk-reel-slide-wrapper | Slide wrapper | | .rk-reel-button | Shared circular icon button | | .rk-reel-nav-arrows | Desktop nav arrows container | | .rk-reel-nav-btn | Individual nav arrow button | | .rk-reel-close-btn | Close button | | .rk-reel-sound-btn | Sound toggle | | .rk-reel-slide-overlay | Per-slide overlay (author, likes) | | .rk-reel-slide-overlay-author | Author row | | .rk-reel-slide-overlay-avatar | Author avatar | | .rk-reel-slide-overlay-name | Author name | | .rk-reel-slide-overlay-description | Slide description | | .rk-reel-slide-overlay-likes | Like count | | .rk-reel-nested-slider-inner | Nested horizontal slider | | .rk-reel-nested-nav | Nested nav arrows | | .rk-reel-nested-nav-prev | Nested prev arrow | | .rk-reel-nested-nav-next | Nested next arrow | | .rk-reel-nested-indicator | Nested slider dot indicator | | .rk-reel-video-container | Video slide wrapper | | .rk-reel-video-element | Video element | | .rk-reel-video-poster | Video poster image | | .rk-reel-video-loader | Video loading indicator | | .rk-reel-media-error | Error state overlay | | .rk-reel-media-error-text | Error message text | | .rk-reel-loader | Wave loading overlay |

Theming via CSS custom properties

Every visual value is exposed as a --rk-reel-* custom property with a sensible default. Override at :root (or any ancestor of .rk-reel-overlay) to retheme without touching component source — see the Theming docs for the full token table.

Documentation

Docs and interactive demos at reelkit.dev/docs/angular-reel-player.

Support

If ReelKit saved you some time, a star on GitHub would mean a lot — it's a small thing, but it really helps the project get noticed.

Star on GitHub

License

MIT