← Back to Home

heatmap calendar

A GitHub-style contribution heatmap calendar for React and TypeScript. Supports full-year and rolling 52-week views, multi-year data, and is highly customizable. Perfect for visualizing activity, contributions, or any time-series data.

Installation

npm install @thomarket/heatmap-calendar

Usage Example

import HeatmapCalendar from '@thomarket/heatmap-calendar';

// Full year view
<HeatmapCalendar 
  data={data}
  year={2024}
/>

// Rolling 52-week period ending in December 2024
<HeatmapCalendar 
  data={data}
  year={2024}
  month={11} // December (0-indexed)
/>

Live Demo

Full year 2024
jan
feb
mar
apr
may
jun
jul
aug
sep
oct
nov
dec
less
more