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

scrolltube

v2.1.4

Published

ScrollTube is a web-based tool for scroll-triggered animations.

Readme

ScrollTube

Transform media into interactive web experiences.

ScrollTube is a modern animation SDK built for the era of high-performance, agent-driven development. It allows you to transform standard video or images into web assets that precisely track subjects and depth.

www.scroll.tube


Installation

npm install scrolltube

The Universal Asset Pipeline

ScrollTube features a Universal Asset Pipeline that runs identical logic in both the CLI (Node.js) and the Browser (ideal for CMS integrations like WordPress).

1. Asset Pipeline

Asset pipeline is used to transform video or images into ScrollTube projects. It outputs a folder with optimized variants and a scrolltube.json file that you point to in your ScrollTubeProvider in step 2. You can use the pipeline in the CLI, browser or node.

CLI Usage (Node.js)

Transform your video into a ScrollTube project from your terminal:

# This will extract frames, track the subject, and generate optimized variants and depth maps.
npx scrolltube create "your-video.mp4" --name "my-project" --track "apple" --cloud --depth

Programmatic Usage (Browser/Node)

You can also import the pipeline into your own React apps or dashboard:

import { AssetPipeline } from 'scrolltube/pipeline';

const pipeline = new AssetPipeline({ 
  apiKey: process.env.SCROLLTUBE_KEY || process.env.FAL_KEY, 
  onProgress: (p) => console.log(`${p.step}: ${p.percent}%`)
});

// Returns the project configuration or a ZIP blob
const project = await pipeline.create({
  input: videoFile, // Can be a File object or Path
  name: "my-project",
  track: "apple",
  depth: true,
  variants: [720, 1080],
  outputZip: true // Perfect for CMS uploads
});

2. Rendering Integration

All you have to do now, is to drop the scrolltube.json project into your ScrollTubeProvider.

Vanilla JS Integration

Live Demo

<!-- 2. Drop it into your HTML -->
<script type="module">
    import ScrollTube from 'scrolltube/core';

    document.addEventListener('DOMContentLoaded', async () => {
        const orchestrators = await ScrollTube.CoreOrchestrator.initAll();
    });
</script>

For full implementation, please refer to the Vanilla JS Example.

React Integration

Live Demo

// 2. Drop it into your Next.js app
import myproject from './example-apple-project/scrolltube.json';
import { ScrollTubeProvider, ScrollTubeCanvas, ScrollTubeLayer, ScrollTubeLayerTracking, useScrollTube } from 'scrolltube/react';


const App = () => (
  <ScrollTubeProvider 
    project={myproject} 
  >
    <ScrollTubeLayer>
      <ScrollTubeCanvas />
    </ScrollTubeLayer>
      
    {/* Automatically follows the 'apple' tracked in the CLI */}
    <ScrollTubeLayerTracking id="main">
        <h2>Apple</h2>
    </ScrollTubeLayerTracking>

    {/* Shows frame number and animates opacity based on scroll progress */}
    <ScrollTubeLayer align="bottom-left">
        <AppleInfo />
    </ScrollTubeLayer>
  </ScrollTubeProvider>
);

const AppleInfo = () => {
    const { progress, frame } = useScrollTube();
    const opacity = progress > 0.2 && progress < 0.5 ? 1 : 0;

    return (
        <>
            <h2 style={{ fontSize: '3rem', margin: 0, color: "white" }}>Green Apple</h2>
            <p style={{ opacity: 0.7, color: "white" }}>Frame: {frame}</p>
        </>
    );
};

For full implementation, please refer to the React Integration Example.


Documentation & Guides

Choose your path based on your role:

👤 For Humans

🤖 For AI Agents


Performance & Tech

  • WebGL Accelerated: High-FPS rendering even for 4K sequences.
  • AI Subject Tracking: Automatic (x,y) pinning via SAM 3.
  • Mouse-Interactive Parallax: Automatic 3D depth map generation and rendering.
  • Object-Fit Support: Responsive "Cover" and "Contain" logic built into the shader.