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

saccade

v0.1.0

Published

Slow down time to inspect animations and interactions

Readme

saccade

npm version

Saccade is a drop-in animation inspector for web apps. Slow down time, record interactions, scrub through transitions frame-by-frame, and copy structured animation state for AI coding agents.

Install

npm install saccade -D

Usage

import { Saccade } from 'saccade'

function App() {
  return (
    <>
      <YourApp />
      <Saccade />
    </>
  )
}

A floating panel appears in the corner. Use it to control speed, record, and scrub.

Features

  • Speed control — Slow down or speed up all animations (CSS transitions, CSS animations, JS timers, requestAnimationFrame, video/audio)
  • Timeline recording — Record interactions, then scrub through captured frames to inspect mid-transition states
  • LLM export — Copy structured animation state (properties, keyframes, easing, progress) as markdown for AI coding agents
  • Shadow DOM isolation — Panel styles never leak into your app
  • Auto-stop — Recording caps at 60s / 3600 frames, and stops when the tab is hidden
  • Zero config — Drop in the component and go

How it works

Saccade patches timing APIs (setTimeout, setInterval, requestAnimationFrame, performance.now, Date.now) to scale time by a configurable factor. During recording, it snapshots computed styles, attributes, and animation state every frame. In scrub mode, it replays those snapshots by applying inline styles directly to the DOM.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | position | 'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right' | 'bottom-left' | Panel position |

Core API

For non-React usage or programmatic control:

import { SaccadeEngine } from 'saccade/core'

const engine = new SaccadeEngine()

// Speed control
engine.setSpeed(0.25) // quarter speed
engine.getSpeed()

// Recording
engine.startRecording()
const capture = engine.stopRecording()

// Scrubbing
engine.seekTo(500) // seek to 500ms
engine.release()

// Export
const markdown = engine.exportForLLM(500, 'active', 'standard')

// Cleanup
engine.destroy()

React Hooks

import { SaccadeProvider, useSaccadeEngine, useTimeline, useSpeed } from 'saccade'

useSpeed

const { speed, isPaused, setSpeed, togglePause } = useSpeed()

useTimeline

const {
  state,          // 'idle' | 'recording' | 'scrubbing'
  capture,        // TimelineCapture | null
  scrubTime,      // current scrub position in ms
  startRecording,
  stopRecording,
  seek,
  release,
  exportLLM,
} = useTimeline()

Export Detail Levels

The LLM export supports four detail levels:

| Level | Description | |-------|-------------| | compact | One line per element — property names and timing only | | standard | Full property values, ranges, interaction state | | detailed | Adds CSS variables, @keyframes source, transition conflicts | | forensic | Adds viewport, URL, user agent, device pixel ratio |

Types

import type {
  AnimationInfo,
  TimelineCapture,
  TimelineExport,
  FrameSnapshot,
  ExportFilter,
  OutputDetailLevel,
} from 'saccade'

Requirements

  • React 18+ (for the <Saccade> component)
  • No React dependency needed for saccade/core

License

MIT