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

@wick-charts/nuxt

v0.9.3

Published

Realtime, animated canvas charts for Nuxt: candlestick, line, bar, heatmap, pie and more, auto-imported. Tree-shakeable, zero runtime deps.

Downloads

1,417

Readme

@wick-charts/nuxt

npm @wick-charts/nuxt license

Nuxt module for Wick Charts: realtime, animated canvas charts. It registers the @wick-charts/vue components and composables, so a page uses charts with no imports.

Nuxt guide · Live demo · API

Install

npx nuxi module add @wick-charts/nuxt

Or install it by hand:

npm install @wick-charts/nuxt
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@wick-charts/nuxt'],
});

Usage

<script setup lang="ts">
import type { OHLCData } from '@wick-charts/vue';

const { data: candles } = await useFetch<OHLCData[]>('/api/candles');
</script>

<template>
  <div style="height: 400px">
    <WickChartContainer>
      <WickCandlestickSeries :data="candles ?? []" />
      <WickCrosshair />
      <WickTooltip />
      <WickYAxis />
      <WickTimeAxis />
    </WickChartContainer>
  </div>
</template>

Every component of @wick-charts/vue has a Wick prefix: ChartContainer becomes <WickChartContainer>, Tooltip becomes <WickTooltip>. Import types, themes and helpers from @wick-charts/vue. The chart fills its parent, so give the parent a height.

The page reads its rows from a server route. A candle is { time, open, high, low, close, volume? }, with time in milliseconds: a Date becomes a string on its way through JSON.

// server/api/candles.ts
import type { OHLCData } from '@wick-charts/vue';

const HOUR = 3_600_000;

// A random walk. Read your database or exchange API here.
export default defineEventHandler((): OHLCData[] => {
  const start = Date.now() - 200 * HOUR;
  let close = 100;

  return Array.from({ length: 200 }, (_, i) => {
    const open = close;
    close = open + (Math.random() - 0.5) * 4;

    return {
      time: start + i * HOUR,
      open,
      high: Math.max(open, close) + Math.random(),
      low: Math.min(open, close) - Math.random(),
      close,
    };
  });
});

useChartInstance, useVisibleRange, useYRange, useLastYValue, usePreviousClose and useCrosshairPosition are auto-imported. Import useTheme from @wick-charts/vue: Vuetify and other UI kits auto-import the same name.

Server rendering

The chart draws on a canvas in the browser, after hydration. On the server, Nuxt renders the chart container with its size and theme background, so the page does not jump when the chart appears. You do not need a <ClientOnly> wrapper.

useFetch on the server puts every row into the HTML payload: 1,500 candles add about 290 kB, and Nuxt dev warns about the size. For a long series, fetch in the browser:

const { data: candles } = useFetch<OHLCData[]>('/api/candles', { server: false });

Options

export default defineNuxtConfig({
  modules: ['@wick-charts/nuxt'],
  wickCharts: {
    prefix: 'Wick', // component prefix
    composables: true, // auto-import the composables
  },
});

A prefix applies to every name: prefix: 'Chart' gives <ChartChartContainer>, <ChartLineSeries> and <ChartTooltip>. An empty prefix gives the bare names, and then <Title> is Nuxt's head component, not the chart title. The module warns at build time when another component takes one of its names.

Works with Nuxt 3.12 and later, and with Nuxt 4.

License

MIT