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

@poopdeck.gl/react

v0.4.0

Published

React hooks and UI components for spatiotemporal/time-series playback — usePlayback, keyboard controls, a transport bar + scrubber + density strip, and a scrubber hover-preview

Readme

@poopdeck.gl/react

React hooks and UI for spatiotemporal playback: usePlayback (clock + governor + multi-source registry as React state), usePlaybackHotkeys (media-player keyboard controls), PlaybackControls (transport bar + scrubber + speed presets), and HoverPreview (frozen-clock scrubber thumbnail).

Install

npm install @poopdeck.gl/react react react-dom

Peers: react / react-dom ≥ 18 (required); @deck.gl/core + @deck.gl/react >=9.3.0 <10 are optional — they are needed only by HoverPreview, which lives on its own subpath so the base import stays deck-free:

import { HoverPreview } from "@poopdeck.gl/react/hover-preview";

Styling

The components render styled after ONE import — no Tailwind required:

import "@poopdeck.gl/react/styles.css";

That stylesheet carries the utility classes the components use (compiled at package build; no preflight/reset, so it can't affect your app's own styles) plus defaults for the theme tokens. Re-theme by overriding the tokens anywhere in your CSS:

:root {
  --accent: #e11d48;        /* play button, active states, scrubber fill */
  --surface: #16181d;       /* control surfaces */
  --ink-900: #f5f7fa;       /* strongest text */
  --ink-500: #9aa3b2;       /* labels */
  --ink-400: #6b7280;       /* captions */
  --hairline: #2a2e37;      /* separators / outlines */
  --accent-soft: rgba(225, 29, 72, 0.12);
  --page-bg: #0b0d12;
}

If your app already runs Tailwind v4, you can skip the stylesheet and generate the classes yourself — Tailwind does not scan node_modules by default, so register the package explicitly (and define the theme tokens above):

@import "tailwindcss";
@source "../node_modules/@poopdeck.gl/react/src";

Individual elements also accept className overrides.

Hello world — usePlayback + PlaybackControls

import { usePlayback, PlaybackControls } from "@poopdeck.gl/react";
import "@poopdeck.gl/react/styles.css";

function Transport({ timeRange }: { timeRange: { start: number; end: number } }) {
  const pb = usePlayback({ timeRange, baseSpeed: 3600 });
  return <PlaybackControls {...pb} />;
}

The hook's return is spread-compatible with PlaybackControls — it echoes timeRange and exposes the current speed under both names (speedMultiplier / currentSpeedMultiplier). Every prop can still be passed individually when you need to interpose (e.g. wrap onSeek to update a URL param).

Wire layers into the same playhead via pb.timeController (the timeController prop on any @poopdeck.gl/layers layer) and register each layer's tileset with pb.registry.registerSource(...) so buffering gates the clock. useDeckClock(pb.timeController, pb.isPlaying) hands the per-frame advance to deck's own render loop.

Depends only on @poopdeck.gl/core + @poopdeck.gl/playback.

Docs

MIT.