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

parameter-flow

v0.4.1

Published

A minimalistic yet powerful parameter timeline editor and runtime for web demos.

Readme

Parameter Flow

npm npm bundle size NPM

A minimalistic yet powerful parameter timeline editor and runtime for web demos.

Key features

  • Everything is based on cubic bezier curves, making it possible to define the time derivates of parameters at control points in addition to their values. The end result looks very smooth and the runtime code is extremely small.
  • Modifying the parameters is based on a pointer-locked mouse input, which is the best analog input widely available on desktop environments.
  • Context-sensitive parameter adjustments: for example camera panning can be made relative to its current orientation, or scaled based on how close to an SDF surface it is.
  • BPM-aware time navigation, meaning quantization that can be adjusted with hotkeys.
  • Keyframes can have a before-value and an after-value, allowing snappy transitions between two smooth time spans.
  • In-browser editor: no WebSocket hassle.
  • LocalStorage-based state allows refreshing the page without losing edits.
  • When moving to production, the localStorage state is downloaded as a json file, which can be embedded into the application.

Key constraints

  • Only one interpolation mode – although it is a very flexible one.
  • No integrations to any specific tools.
  • Does not control music directly, instead provides events for play/pause/seek.
  • Parameters are fully configured from the code, i.e. they can't be added from the timeline editor.
  • Time quantization happens only in the editor. The data format is continuous, and can't be converted into a spreadsheet/tracker format easily.

Importing

URL

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"></script>
const { TimelinePlayer } = ParameterFlow

NPM

npm install parameter-flow
import { TimelinePlayer } from 'parameter-flow'

See examples/index.html for a complete example.

Player

Constructor

const player = new Player({
    duration: 10,
});
  • duration: The length of the timeline in seconds. Defaults to Infinity. When the current time reaches the duration, the player is automatically paused and an end event is dispatched.

Properties

  • currentTime: Returns the current playback time in seconds. Guaranteed to be between 0 and duration.
  • paused: Returns a boolean indicating whether playback is currently paused.

Methods

  • play(): Starts playback from the current time position. Dispatches a play event. If the player is already playing or at the end, this does nothing.
  • pause(): Pauses playback at the current time. Dispatches a pause event.
  • seek(time): Sets the playback position to the specified time in seconds. Dispatches a seek event with details about the time change.

Events

The Player dispatches the following events:

  • play: Fired when playback starts
  • pause: Fired when playback is paused
  • seek: Fired when the playback position changes, includes:
    • detail.time: New playback position
  • end: Fired when playback reaches the end of the timeline. Note that this makes the player paused but does NOT dispatch a pause event.

TimelinePlayer

Like Player, but with a UI for time navigation.

Constructor

const player = new TimelinePlayer({
    // Length of the timeline in seconds
    duration: 10,

    // Defaults to true. Set to false if you want to handle keyboard input yourself
    keyboardListener: true,
});
  • element: The DOM element of the timeline player. Do document.body.appendChild(player.element) to add it to the page.
  • Hovering over the timeline when it's paused will set the current time.
  • Space will toggle pause.
  • 0 will seek to the start and pause.

Inspiration