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

@hautechai/webui.timelinetrack

v2.0.23

Published

Timeline track component for visual timeline editing

Downloads

36

Readme

TimelineTrack

Purpose

Visual timeline track component for representing when elements are visible in a composition, with draggable and resizable functionality. Also includes TimelineTrackKeyframes for displaying keyframe data on timeline.

Installation

# pnpm (recommended)
pnpm add @hautechai/webui.timelinetrack

# npm
npm install @hautechai/webui.timelinetrack

# yarn
yarn add @hautechai/webui.timelinetrack

Components

TimelineTrack

| Parameter | Type | Description | | ------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------- | | start | number | Start time in seconds for the track position (controlled) | | duration | number | Duration in seconds for the track length (controlled) | | scale | number | Scale in pixels per second for positioning calculations | | selected | boolean | Optional. Whether the track is in selected state (shows resize handlers) | | onChange | (start: number, duration: number) => void | Optional. Fired while user drags the body or resizes start/end. Provide to make interactive | | onSelect | () => void | Optional. Fired when user initiates interaction (pointer down) on the track or a handle | | onStartMove | () => void | Optional. Called when move/resize operation starts | | onFinishMove | (start: number, duration: number) => void | Optional. Called when move/resize operation finishes | | className | string | Optional. Additional CSS class for the container |

TimelineTrackKeyframes

| Parameter | Type | Description | | ------------ | ---------------------------------------------------- | ------------------------------------------------------------------ | | scale | number | Scale in pixels per second for positioning calculations | | selected | boolean | Optional. Whether the track is in selected state | | keyframes | Array<{id: string, time: number, selected: boolean}> | Array of keyframe objects with id, time in seconds, and selection | | onMove | (params: {id: string, time: number}) => void | Optional. Called when a keyframe is dragged to a new time position | | onClick | (params: {id: string}) => void | Optional. Called when a keyframe or connection line is clicked | | onStartMove | (keyframeId: string) => void | Optional. Called when keyframe move operation starts | | onFinishMove | (keyframeId: string, time: number) => void | Optional. Called when keyframe move operation finishes | | className | string | Optional. Additional CSS class for the container |

Usage Examples

TimelineTrack

const [track, setTrack] = useState({ start: 2, duration: 5 });

<TimelineTrack
    start={track.start}
    duration={track.duration}
    scale={50}
    selected={true}
    onChange={(start, duration) => setTrack({ start, duration })}
    onSelect={() => console.log('selected')}
    onStartMove={() => console.log('Started moving track')}
    onFinishMove={(start, duration) => console.log('Finished moving track to', start, duration)}
/>;

TimelineTrackKeyframes

const keyframes = [
    { id: 'kf1', time: 1.5, selected: false },
    { id: 'kf2', time: 3.2, selected: true },
    { id: 'kf3', time: 5.8, selected: false },
];

<TimelineTrackKeyframes
    scale={50}
    keyframes={keyframes}
    selected={false}
    onClick={(params) => console.log('Clicked keyframe:', params.id)}
    onMove={(params) => console.log('Moved keyframe:', params.id, 'to time:', params.time)}
    onStartMove={(keyframeId) => console.log('Started moving keyframe:', keyframeId)}
    onFinishMove={(keyframeId, time) => console.log('Finished moving keyframe:', keyframeId, 'to time:', time)}
/>;
/>;