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

@kooshapari/phenotype-interaction-patterns

v0.1.0

Published

Reusable interaction patterns for Phenotype projects: perspective tilt, scroll reveal, lightbox, counter animation, and parallax depth

Readme

@kooshapari/phenotype-interaction-patterns

Reusable, accessible interaction patterns extracted from proven Phenotype implementations. Each pattern respects prefers-reduced-motion and provides cleanup for SPA routing.

Patterns

| Pattern | Description | |---------|-------------| | perspective-tilt | Pointer-driven 2.5D tilt with glare overlay | | scroll-reveal | IntersectionObserver-based reveal animations | | lightbox | Image lightbox with keyboard nav, zoom, swipe | | counter-animate | Number counter animation on scroll into view | | parallax-depth | Subtle parallax depth effect on scroll |

Usage

import { initPerspectiveTilt } from '@kooshapari/phenotype-interaction-patterns/perspective-tilt';
import { initScrollReveal } from '@kooshapari/phenotype-interaction-patterns/scroll-reveal';

// Initialize on page load
const tilt = initPerspectiveTilt();
const reveal = initScrollReveal();

// Cleanup on SPA navigation
tilt.disconnect();
reveal.disconnect();

Data Attributes

perspective-tilt

  • data-tilt - Enable tilt on element
  • data-tilt-max - Max angle in degrees (default: 12)
  • data-tilt-glare - Enable glare (default: false)
  • data-tilt-scale - Scale on hover (default: 1.02)
  • data-tilt-speed - Transition speed in ms (default: 400)

scroll-reveal

  • data-reveal - Reveal type: up, fade, scale, clip
  • data-reveal-delay - Delay in ms before animation
  • data-reveal-duration - Animation duration in ms

counter-animate

  • data-counter - Target number to animate to
  • data-counter-duration - Animation duration in ms (default: 1500)
  • data-counter-prefix - Prefix string (e.g. "$")
  • data-counter-suffix - Suffix string (e.g. "%")

Conventions

  • All patterns check prefers-reduced-motion and disable when active
  • All return a cleanup/disconnect function for SPA routing
  • Pure browser APIs, no dependencies
  • Under 250 lines per file

License

MIT