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

@bactv/vue-calendar-heatmap

v1.0.2

Published

A GitHub-style calendar heatmap component for Vue 3, written in TypeScript.

Readme

vue3-calendar-heatmap

A lightweight, GitHub-style calendar/activity heatmap component for Vue 3, written in TypeScript. No runtime dependencies besides Vue itself.

Install

npm install @bactv/vue3-calendar-heatmap

Usage

<script setup lang="ts">
import { CalendarHeatmap } from '@bactv/vue3-calendar-heatmap';
import '@bactv/vue3-calendar-heatmap/style.css'; // required — component styles ship as a separate CSS file

const values = [
  { date: '2025-01-03', count: 4 },
  { date: '2025-01-04', count: 0 },
  { date: '2025-01-10', count: 12 },
  // days not present here are treated as "no data"
];
</script>

<template>
  <CalendarHeatmap
    :values="values"
    start-date="2025-01-01"
    end-date="2025-12-31"
    :round="2"
    :dark-mode="false"
    :color="{ mainColor: '#196127' }"
    no-data-text="No activity"
    :tooltip-formatter="(v) => `${v.count} events on ${v.date}`"
  />
</template>

Note: component styles are built as a separate CSS file (dist/calendar-heatmap.css, exposed as vue3-calendar-heatmap-ts/style.css). Always import it once in your app entry point.

Props

| Prop | Type | Default | Description | |---|---|---|---| | values | Array<{ date: Date \| string; count: number; [key: string]: unknown }> | — (required) | Data points. Any day in the range without a matching entry is treated as "no data". | | startDate | string | — (required) | Inclusive start of the rendered range, e.g. '2025-01-01'. | | endDate | string | — (required) | Inclusive end of the rendered range, e.g. '2025-12-31'. | | round | number (0-5) | 0 | Corner rounding of each cell. 0 = square, 5 = full circle (mapped linearly to border-radius). | | darkMode | boolean | false | Uses a built-in dark color scheme when rangeColor isn't provided. | | color | {mainColor: string, mixBase: string} | {mainColor: '#171717'} | Color progression. | | max | number | highest count in values | Upper bound used to distribute rangeColor[2..] across counts. | | noDataText | string \| null | null | Tooltip text for days with no matching entry. null shows no tooltip for those days. | | tooltipFormatter | (value) => string | built-in formatter | Formats the tooltip for days that do have a matching entry. Support plain text and html format | | vertical | boolean | false | Renders weeks as rows instead of columns. |

Emits: day-click — fired with { date, count, data } when a rendered day cell is clicked.

Development

npm install
npm run dev     # playground at src/../playground, exercising all props
npm run build    # builds dist/ (ESM + UMD + .d.ts + css) for publishing

Publishing

npm run build
npm publish

License

MIT