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

@brett_lamy/viz-engine

v0.2.1

Published

A declarative, audio-synchronized SVG timeline engine for narrated explainers.

Readme

@brett_lamy/viz-engine

The reusable timeline and SVG primitive layer behind the O'RLY explainer bookshelf.

import { Camera, Player, Timeline, colors, ease } from '@brett_lamy/viz-engine';
import '@brett_lamy/viz-engine/styles.css';

const timeline = new Timeline();
const radius = timeline.channel('radius', 0);
timeline.tween(radius, 80, { at: 0, dur: 1, ease: ease.enter });

export function Demo() {
  return (
    <Player timeline={timeline} loop>
      {(state) => (
        <Camera x={640} y={360} k={1}>
          <circle cx={640} cy={360} r={state.get(radius)} fill={colors.ACCENT} />
        </Camera>
      )}
    </Player>
  );
}

The package also exposes @brett_lamy/viz-engine/draw, /acts, and /narrator for the lower-level compatibility APIs.

Architecture diagrams

The architecture vocabulary is designed for explanatory diagrams rather than static infrastructure inventories. ArchitectureFrame supplies the restrained paper canvas, ArchitectureCard gives typed nodes a consistent editorial hierarchy, ArchitectureEdge routes labeled traffic with scrub-safe flow, and ArchitectureGrid / ArchitecturePhaseRail cover dense stores and protocol phases.

import {
  ArchitectureCard,
  ArchitectureEdge,
  ArchitectureFrame,
} from '@brett_lamy/viz-engine';

<ArchitectureFrame w={1200} h={620} label="EVENT LOG" rightLabel="OFFSET 0043">
  <ArchitectureEdge
    from={{ x: 210, y: 220 }}
    to={{ x: 520, y: 220 }}
    label="APPEND"
    tone="blue"
    flow={writeU}
  />
  <ArchitectureCard x={210} y={220} label="WRITER" meta="CLIENT" tone="green" />
  <ArchitectureCard x={520} y={220} label="STREAM" meta="APPEND-ONLY" tone="blue" />
</ArchitectureFrame>

All primitives are deterministic SVG: drive u and flow from the timeline, and seeking produces the same diagram at the same sampled time.

Video player

VizPlayer is included in this package. Give it a Timeline and a render function; the same timeline remains seekable and can optionally follow narration audio:

import { Timeline, VizPlayer } from '@brett_lamy/viz-engine';
import '@brett_lamy/viz-engine/styles.css';

const timeline = new Timeline();
const opacity = timeline.channel('opacity', 0);
timeline.tween(opacity, 1, { at: 0, dur: 0.5 });

<VizPlayer
  scene={{
    timeline,
    render: (state) => <circle opacity={state.get(opacity)} />,
  }}
/>

For markdown/document URLs, VideoEmbed selects a native <video> element for .mp4, .webm, and .ogg files and an iframe for hosted players:

import { VideoEmbed } from '@brett_lamy/viz-engine';

<VideoEmbed src="https://example.com/explainer.mp4" title="Explainer" />