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-grid

v0.1.0

Published

Multi-chart grid + sync for wickchart — one element lays out N charts and keeps their visible ranges and crosshairs in step. Opt-in plugin, zero dependencies, zero core changes.

Readme

wickchart-grid

npm

Multi-chart layout + sync for wickchart, as an opt-in plugin — one element wraps N charts in a CSS grid and keeps their visible ranges and crosshairs in step. Zero dependencies, zero core changes: everything rides the chart's public wick:range / wick:crosshair events, setVisibleRange() and layer API, and detaches cleanly.

<script type="module" src="https://unpkg.com/wickchart-grid"></script>

<wick-grid cols="2" gap="10" sync="range crosshair" style="height: 640px">
  <wick-chart label="BTC · 1h" indicators="sma:20 volume"></wick-chart>
  <wick-chart label="BTC · 15m" indicators="rsi:14"></wick-chart>
  <wick-chart label="ETH · 1h" type="line"></wick-chart>
  <wick-chart label="BTC · dollar bars" indicators="volume"></wick-chart>
</wick-grid>

Pan or zoom any chart and the others follow; hover one and a dashed ghost crosshair mirrors onto the rest. The host needs a height (grid rows size from it) — a fixed height, or a flex/grid parent.

Attributes

| Attribute | Meaning | | --------- | -------------------------------------------------------------------- | | cols | column count (default 2, clamped 1..8); rows flow automatically | | gap | cell gap in px (default 10, clamped 0..64) | | sync | space/comma list of range crosshair time both, or off/none (default range crosshair) |

crosshair mirrors time and price lines; time mirrors the vertical line only — the right choice when the charts' price scales are not comparable (different symbols). range shares the visible window.

Programmatic

import { attachGrid } from 'wickchart-grid';

const grid = attachGrid([a, b, c], { sync: 'range time' });
grid.charts;     // the registered charts
grid.detach();   // unsync everything (ghost layers removed)

The pure fan-out model — echo suppression, clamp-cycle breaking, the ghost crosshair layer — is a separate import with no DOM at all: import { GridSync, parseSync, makeGhost } from 'wickchart-grid/core'. Charts are duck-typed: anything that fires wick:range / wick:crosshair and exposes setVisibleRange can join a group.

How the feedback loops are handled

  • Applying a range to a sibling makes that sibling emit its own wick:range — the group swallows the echo it just caused (per-chart expected range).
  • A sibling whose data cannot display the target range clamps it, and the clamped echo would re-fan-out; the same target arriving back within 250 ms is recognized as a clamp cycle and dropped, so two sparse charts converge instead of ping-ponging.
  • The ghost crosshair is a plain layer drawing dashed lines at the last synced position — it fires no events, so it cannot loop.

MIT.