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

flip-airboard

v0.0.2

Published

Angular based flip airboard component

Readme

flip-airboard

A high-quality, canvas-based flip-airboard component for Angular. Create stunning animated word displays with smooth flip transitions and customizable themes.

✨ Features

  • Smooth Flip Animation: Professional-grade flip animation with physics-based easing
  • Canvas-Based Rendering: High-performance rendering with smooth 60fps animations
  • Customizable Themes: Light and dark themes built-in
  • Resizable: Fully responsive and adapts to container size
  • Configurable Words: Display custom words or use default airport-style rotating words
  • Loop Mode: Optional automatic cycling through word list
  • Click Interaction: Click to manually change words in loop mode
  • Angular Standalone: Modern standalone component with no external dependencies

📦 Installation

Install the package via npm:

npm install flip-airboard

Or using yarn:

yarn add flip-airboard

Or using pnpm:

pnpm add flip-airboard

🚀 Usage

Basic Usage

Import the component and add it to your component's imports:

import { FlipAirboard } from 'flip-airboard';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [FlipAirboard],
  template: `
    <flip-airboard></flip-airboard>
  `
})
export class AppComponent {}

With Custom Words

Display your custom words:

<flip-airboard [words]="['HELLO', 'WORLD', 'flip-airboard']"></flip-airboard>

With Themed Display

Use the built-in light or dark theme:

<!-- Dark theme (default) -->
<flip-airboard theme="dark" [words]="['DARK', 'MODE']"></flip-airboard>

<!-- Light theme -->
<flip-airboard theme="light" [words]="['LIGHT', 'MODE']"></flip-airboard>

With Automatic Looping

Enable auto-cycling through words:

<flip-airboard theme="dark" [words]="words" [loop]="true"></flip-airboard>

With Click Interaction

When loop mode is enabled, you can click to change the word:

<flip-airboard [loop]="true" (click)="onClick()"></flip-airboard>

With Custom Sizing

Control the maximum width of the flip board:

<!-- Small (max 480px) -->
<flip-airboard size="sm" [words]="['SMALL', 'SIZE']"></flip-airboard>

<!-- Medium (max 720px) -->
<flip-airboard size="md" [words]="['MEDIUM', 'SIZE']"></flip-airboard>

<!-- Large (max 960px) -->
<flip-airboard size="lg" [words]="['LARGE', 'SIZE']"></flip-airboard>

🎨 Configuration

Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | theme | FlipAirboardBoardTheme | 'dark' | Theme variant - 'dark' or 'light' | | size | FlapBoardSize | 'sm' | Size variant - 'sm', 'md', or 'lg' | | words | string[] | DEFAULT_WORDS | Array of words to cycle through | | loop | boolean | false | Enable automatic cycling through words |

Input Types

export type FlapBoardTheme = 'dark' | 'light';
export type FlapBoardSize = 'sm' | 'md' | 'lg';

📝 Available Words

By default, the component displays a rotating list of popular travel destinations:

  • TOKYO, LONDON, NEW YORK, PARIS, BERLIN, AMSTERDAM, DUBAI, SINGAPORE, SYDNEY, ROME, HONG KONG, ISTANBUL

You can customize this by providing your own words array.

🎯 Animation Details

  • Flip Duration: 400-800ms (randomized for natural feel)
  • Word Change Interval: 2200ms when looping
  • Blank Hold Duration: 400ms between word changes
  • Stagger Delay: Random 0-150ms between letter flips

🎨 Theme Colors

Dark Theme Palette

  • Flap Background: #161616
  • Text: #e9e6dc
  • Divider: #050505
  • Hinge: #3a3a3a
  • Shadow: rgba(0,0,0,0.6)

Light Theme Palette

  • Flap Background: #e4e4e1
  • Text: #161616
  • Divider: #b8b8b3
  • Hinge: #a5a5a0
  • Shadow: rgba(0,0,0,0.2)

📱 Responsive Behavior

The component automatically:

  • Detects container size changes
  • Adjusts cell dimensions to fit available space
  • Maintains aspect ratio across all sizes
  • Adapts to high-DPI displays for crisp rendering

🔧 Size Configuration

| Size | Max Width | |------|-----------| | sm | 480px | | md | 720px | | lg | 960px |

📦 Package Information

  • Name: @angular-monorepo/flip-airboard
  • Version: 0.0.1
  • Peer Dependencies:
    • @angular/core ^21.2.0
  • Side Effects: false (tree-shakeable)

🆚 Browser Support

Since this component uses:

  • Canvas API (widely supported)
  • requestAnimationFrame (all modern browsers)
  • ES6+ JavaScript
  • CSS transforms and box-shadow (all modern browsers)

It supports all modern browsers that support Angular 21 and above.

📄 License

MIT License

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📞 Support

For issues and feature requests, please create an issue in the repository.