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

slowmo

v0.16.2

Published

Universal slow-motion control for web animations - CSS, videos, GSAP, Three.js, and more

Readme

slowmo

Slow down, pause, or speed up time of any web content.

Debug animations, study cool demos, and make games easier or harder.

Install

npm install slowmo

Chrome extension coming soon - control any website's animations without writing code.

Quick Start

import slowmo from "slowmo";

slowmo(0.5); // half speed, that's it

Full API

import slowmo from "slowmo";

slowmo(0.5); // half speed
slowmo(2); // double speed
slowmo(0); // pause
slowmo(1); // normal

slowmo.pause(); // pause all
slowmo.play(); // resume
slowmo.reset(); // back to 1×
slowmo.getSpeed(); // current speed

Speed Guide

| Speed | Effect | | ----- | -------------------------------- | | 0 | Paused | | 0.1 | 10x slower (great for debugging) | | 0.5 | Half speed | | 1 | Normal | | 2 | Double speed |

Excluding Elements

Add data-slowmo-exclude to opt out specific elements:

<div data-slowmo-exclude>This animation runs at normal speed</div>

Dial Component

Visual UI control for slowmo speed - draggable, rotatable dial.

Vanilla JS

import { setupDial, shutdownDial } from "slowmo/dial";

setupDial(); // Mount dial to body (fixed position, draggable)
shutdownDial(); // Remove and cleanup

React

import { Slowmo } from "slowmo/react";

function App() {
  return <Slowmo />; // Handles lifecycle automatically
}

Dial Features:

  • Center: Pause/play toggle
  • Middle ring: Drag to reposition
  • Outer edge: Rotate to change speed (uses Pointer Lock)
  • Position persists in localStorage

What It Works With

| Type | How | | ---------------------- | -------------------------------------------- | | CSS Animations | Web Animations API playbackRate | | CSS Transitions | Web Animations API playbackRate | | Videos & Audio | playbackRate property | | requestAnimationFrame | Patched timestamps | | performance.now() | Returns virtual time | | Date.now() | Returns virtual epoch time | | setTimeout/setInterval | Scaled delays | | GSAP | globalTimeline.timeScale() (auto-detected) | | Three.js | Uses rAF, works automatically | | Framer Motion/Motion | Uses Date.now(), works automatically | | Canvas animations | Uses rAF, works automatically |

Animation Recreation (AI-Powered)

slowmo includes an AI-powered animation recreation skill that can analyze videos/GIFs and generate code to recreate them.

CLI Usage

# Install globally or use npx
npx slowmo-recreate ./animation.mp4 --runtime framer-motion --api-key $GEMINI_API_KEY

# Generate GSAP code
npx slowmo-recreate ./demo.gif -r gsap -o animation.js

# Analyze only (no code generation)
npx slowmo-recreate ./video.mp4 -a --format json

Programmatic Usage

import { recreate } from "slowmo/recreate";

const result = await recreate({
  source: "./animation.mp4",
  runtime: "framer-motion", // or 'gsap', 'css', 'remotion', etc.
  apiKey: process.env.GEMINI_API_KEY,
});

console.log(result.code.code); // Generated animation code
console.log(result.analysis); // AI analysis of the animation

Supported Runtimes

| Runtime | Description | | --------------- | ------------------------------- | | css | Native CSS @keyframes | | framer-motion | React animation library | | gsap | Professional-grade animation | | remotion | React video framework | | motion-one | Lightweight animation library | | anime | Anime.js | | three | Three.js 3D animations | | lottie | JSON animation format | | react-spring | Spring-physics React animations | | popmotion | Functional animation library |

AI Backends

  • Gemini (default) - Best for video understanding
  • OpenAI - GPT-4 Vision
  • Anthropic - Claude

Set your API key via environment variable (GEMINI_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY) or pass it directly.

Limitations

  • Frame-based animations that don't use timestamps can't be smoothly slowed (they increment by a fixed amount each frame regardless of time)
  • Libraries that cache time function references before slowmo loads may not be affected (the Chrome extension runs early to avoid this)
  • Video/audio have browser-imposed limits (~0.0625x to 16x in Chrome)
  • iframes won't be affected unless slowmo is also loaded inside them (the extension handles this automatically)
  • Service Workers & Worklets run in separate threads that can't be patched (audio worklets, paint worklets, animation worklets)
  • WebGL shaders with custom time uniforms need manual integration
  • Server-synced animations that rely on server timestamps rather than local time

Contributing

Open to contributions! See CONTRIBUTING.md for development setup and Chrome extension testing instructions.

Inspiration

Inspired by agentation by Benji Taylor and his related blog posts [1] [2]

License

MIT


website · github · npm