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

@konitif/timeline

v0.285.2

Published

Headless temporal projection, composable track contributions and interaction state.

Readme

@konitif/timeline

Headless temporal projection, composable track contributions and interaction state.

Installation

npm install @konitif/timeline

What it provides

  • Read-only Timeline projections derived from caller-owned subjects.
  • Explicit, versioned track contributions composed by the host.
  • Local cursor, visible-range and selection state.
  • Deterministic viewport normalization, scale, ticks and grid projection.
  • Projection-local coordinate mapping, wheel zoom and scrubbing calculations.
  • Explicit intents and a deterministic state reducer.
  • Numeric track sampling with an injectable interpolation function.
  • A portable Timeline tool-module declaration.

Authority boundary

The package projects temporal subjects without owning their identity or semantic revision. Track kinds, source formats and domain commands are supplied by specializations; the public package does not define source-specific track kinds or media formats. Cursor position, visible range and selection belong to the Timeline surface. The package contains no Svelte, DOM, host store, runtime clock authority, domain-specific semantics or execution policy.

Quick start

import {
  createTimelineState,
  createTimelineTicks,
  defineTimelineTrackProjectionContribution,
  getTimelineGridMetrics,
  getTimelineWheelZoomWindow,
  normalizeTimelineViewWindow,
  projectTimelineSubject,
  reduceTimelineState,
} from '@konitif/timeline';

const metrics = defineTimelineTrackProjectionContribution({
  id: 'example.metrics',
  version: '1.0.0',
  project: subject => subject.metrics,
});

const projection = projectTimelineSubject(subject, {
  getSourceId: value => value.id,
  getDurationSeconds: value => value.durationSeconds,
  trackContributions: [metrics],
});
const initial = createTimelineState(projection);
const next = reduceTimelineState(projection, initial, {
  type: 'seek',
  timeSeconds: 1.25,
});
const viewport = normalizeTimelineViewWindow({
  duration: projection.durationSeconds,
  start: 0,
  end: projection.durationSeconds,
});
const ticks = createTimelineTicks(viewport.start, viewport.end, viewport.zoomX);
const grid = getTimelineGridMetrics({
  ticks,
  visibleRange: viewport,
  fps: 30,
});
const zoomedViewport = getTimelineWheelZoomWindow({
  duration: projection.durationSeconds,
  visibleRange: viewport,
  zoomX: viewport.zoomX,
  clientRatio: 0.5,
  deltaY: -120,
});

Public entry points

| Entry | Purpose | | --- | --- | | @konitif/timeline | Timeline contracts, explicit track composition, state, scale and viewport projection, intents, reducer and sampling. |

Reference

See reference/ for the machine-readable capability catalog and authority diagram.

License

Source-available under PolyForm Noncommercial 1.0.0, not OSI open source. Commercial use requires separate written authorization.