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

pacman-carousel

v0.0.3

Published

High-performance Pac-Man carousel component for Angular

Downloads

14

Readme

Pacman Carousel

High-performance Pac-Man–style Angular carousel component.

中文文档: README.zh-CN.md

Live demo: www.ifuyun.com.

Features

  • Smooth, high-performance auto-play powered by requestAnimationFrame
  • Pause on hover and automatically when the page is hidden
  • Adaptive styles for mobile and desktop
  • Supports title, caption, link, and custom open target
  • Click callback for easy analytics/instrumentation
  • No zone.js; signal-based implementation for top performance

Installation

npm i pacman-carousel

Requirements: Angular 20+, TypeScript 5.9+

Quick Start

Import and use directly in any component (Standalone):

// app.ts
import { Component, signal } from '@angular/core';
import { Carousel, CarouselComponent } from 'pacman-carousel';

@Component({
  selector: 'app-root',
  imports: [CarouselComponent],
  templateUrl: './app.html',
  styleUrl: './app.less',
})
export class App {
  carousels = signal<Carousel[]>([
    {
      id: '00mig749bu1hbn23',
      title: '为生存而疾驰',
      caption: '马赛马拉国家保护区的猎豹',
      url: 'https://bing.ireadpay.com/wallpaper/00mig749bu1hbn23.jpg',
      link: 'https://wallpaper.ifuyun.com/detail/00mig749bu1hbn23',
      target: '_blank'
    },
    {
      id: '00mi91wxvdo73w83',
      title: '哎呀,好冷啊!',
      caption: '荷兰梵高国家森林公园的马鹿雄鹿',
      url: 'https://bing.ireadpay.com/wallpaper/00mi91wxvdo73w83.jpg',
      link: 'https://wallpaper.ifuyun.com/detail/00mi91wxvdo73w83',
      target: '_blank'
    },
    {
      id: '00mibwsmwtab8mz8',
      title: '冰雪凝息之处',
      caption: '冰山上天然形成的拱门',
      url: 'https://bing.ireadpay.com/wallpaper/00mibwsmwtab8mz8.jpg',
      link: 'https://wallpaper.ifuyun.com/detail/00mibwsmwtab8mz8',
      target: '_blank'
    },
    {
      id: '00mi7mh32t9nkcls',
      title: '白色回响',
      caption: '瓦尔·布兰德特',
      url: 'https://bing.ireadpay.com/wallpaper/00mi7mh32t9nkcls.jpg',
      link: 'https://wallpaper.ifuyun.com/detail/00mi7mh32t9nkcls',
      target: '_blank'
    }
  ]);

  onCarouselClick(carousel: any) {
    console.log('Clicked:', carousel);
  }
}
<!-- app.html -->
<div style="display: flex; justify-content: center; margin: 24px">
  <pacman-carousel [carousels]="carousels()"
                   [width]="'720px'"
                   [height]="'360px'"
                   [indicatorPadding]="'16px 24px'"
                   (click)="onCarouselClick($event)"></pacman-carousel>
</div>

API Overview

  • Input carousels: Carousel[]: the carousel data (at least 1 item)
  • Input width: string (default '720px'): container width
  • Input height: string (default '360px'): carousel height
  • Input indicatorPadding: string (default '16px 24px'): indicator bar padding
  • Input isBrowser?: boolean (default true): client-side rendering flag
  • Output click: OutputEmitterRef<Carousel>: emitted when a slide is clicked

Carousel interface:

  • id: string
  • title: string
  • caption: string
  • url: string (image URL)
  • link?: string (carousel link URL)
  • target: '_blank' | '_self' | '_top'
  • order?: number

Examples & Development

  • Start demo: npm start (opens http://localhost:4200)
  • Build library: npm run build:carousel (outputs to dist/carousel)
  • Publish library: cd dist/carousel && npm publish

Project Structure

  • Carousel component: projects/carousel
  • Demo application: projects/demo

Feedback and contributions are welcome!