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

wickchart-coview

v0.1.0

Published

Cross-tab co-view for wickchart — charts sharing a room name broadcast their viewports (presence bands), share the crosshair live as a dashed ghost, and say goodbye on close; peers fade via TTL. Opt-in plugin, zero dependencies, public BroadcastChannel pr

Readme

wickchart-coview

npm

Cross-tab co-view for wickchart, as an opt-in plugin — charts that share a room name keep each other briefed. Every pan/zoom broadcasts the visible window (throttled to ~8/s, heartbeat every 4 s), each chart renders the others' viewports as labeled bands along the top of the plot, and the crosshair is shared live — a dashed ghost mirrors the pointer of the tab you are pairing with. Closed tabs say goodbye; crashed tabs fade via the 12 s presence TTL. Zero dependencies.

npm install wickchart wickchart-coview

import 'wickchart';
import { attachCoview } from 'wickchart-coview';

// declarative — the room is the attribute:
// <wick-chart co-view="btc-warroom" co-view-name="Maya"></wick-chart>
const coview = attachCoview(chart);

chart.getPeers();
// [{ id, name: 'Maya', range: { from, to }, at }] — oldest sighting first

chart.addEventListener('wick:peers', (e) => {
  // { peers, joined, left } — membership changes only, not every move
});

coview.detach();

Until wickchart 2.0 the core element ships its own identical machinery; attaching shadows it with the same behavior (this package is the home it moves into at the cut — see ROADMAP-V2.md in the repo).

The protocol

Public and tiny — anything that can postMessage can join a room: channel wick-co-view:<room>, messages { v: 1, peer, … } where peer is a random per-chart id:

| type | payload | meaning | | ---- | ------- | ------- | | view | from, to, name | the sender's visible window (presence heartbeat) | | cross | time, yFrac — or time: null | pointer moved / left | | bye | — | sender is leaving the room |

Wrong-version, self-echoed, and unknown messages are ignored — the envelope check lives in coUnwrap() and is safe by construction.

API

attachCoview(chart, { channel?, ttl?, beatMs? }) returns the controller:

| Method | Meaning | | ------ | ----------------------------------------------------------- | | chart.getPeers() | live peers with their viewports, oldest first | | coview.detach() | goodbye, close, restore the element's own machinery |

channel is an injectable transport factory (tests, WebSocket bridges); ttl is the presence timeout (default 12 s); beatMs the heartbeat (default 4 s). Events on the chart: wick:peers with { peers, joined, left }.

The pure half — PresenceTracker (TTL bookkeeping) and the protocol envelope (coWrap/coUnwrap) — is a separate import with no DOM: import { PresenceTracker } from 'wickchart-coview/core'.

MIT.