{"id":23727746,"url":"https://github.com/react-sandbox/heatmap","last_synced_at":"2026-05-08T13:07:17.702Z","repository":{"id":216868995,"uuid":"737402133","full_name":"react-sandbox/heatmap","owner":"react-sandbox","description":"📅🔥 Calendar heatmap graph","archived":false,"fork":false,"pushed_at":"2024-03-02T07:38:47.000Z","size":620,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T21:31:54.352Z","etag":null,"topics":["calendar-heatmap","heatmap","react","react-heatmap","svg","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-sandbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-30T22:39:03.000Z","updated_at":"2024-04-28T22:34:56.000Z","dependencies_parsed_at":"2024-01-15T23:34:28.599Z","dependency_job_id":"32d4d90a-7112-4870-834e-7ea3f789eeae","html_url":"https://github.com/react-sandbox/heatmap","commit_stats":null,"previous_names":["react-sandbox/heatmap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/react-sandbox/heatmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fheatmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fheatmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fheatmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fheatmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-sandbox","download_url":"https://codeload.github.com/react-sandbox/heatmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fheatmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32781648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar-heatmap","heatmap","react","react-heatmap","svg","typescript"],"created_at":"2024-12-31T01:29:57.718Z","updated_at":"2026-05-08T13:07:17.678Z","avatar_url":"https://github.com/react-sandbox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@react-sandbox/heatmap\"\u003e@react-sandbox/heatmap\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/react-sandbox/heatmap/playwright.yml\" alt=\"Build status\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/dependencies-0-brightgreen\" alt=\"Dependencies\" /\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@react-sandbox/heatmap?color=%234ba0f6\" alt=\"Build size\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/@react-sandbox/heatmap?color=%234ba0f6\" alt=\"Package downloads\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"example.png\" alt=\"Example\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  📅🔥 Calendar heatmap component\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Customizable SVG inspired by GitHub's contribution graph.\n\u003c/p\u003e\n\n### Install\n\nInstall the `@react-sandbox/heatmap` package:\n\n```bash\n# npm\nnpm install @react-sandbox/heatmap\n\n# yarn\nyarn add @react-sandbox/heatmap\n\n# pnpm\npnpm add @react-sandbox/heatmap\n```\n\n### Import\n\nImport the `Heatmap` component:\n\n```tsx\nimport React from 'react'\nimport Heatmap from '@react-sandbox/heatmap'\n\nconst values = [\n  { date: new Date('2023-01-01T00:00:00'), count: 5 },\n  { date: new Date('2023-01-05T00:00:00'), count: 10 },\n  { date: new Date('2023-01-15T00:00:00'), count: 7 },\n  { date: new Date('2023-02-08T00:00:00'), count: 3 }\n  // ...\n]\n\nfunction App() {\n  return (\n    \u003cdiv style={{ width: '500px' }}\u003e\n      \u003cHeatmap\n        startDate={new Date('2022-12-30T00:00:00')}\n        values={values}\n        emptyColor={[20, 30, 30]}\n        baseColor={[0, 128, 0]}\n        scaleFactor={35}\n      /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n### Props\n\n| Prop          | Type                   | Default        | Description                                            |\n| ------------- | ---------------------- | -------------- | ------------------------------------------------------ |\n| `startDate`   | `Date`                 | **required**   | Start date                                             |\n| `values`      | `Array\u003cDateWithCount\u003e` | **required**   | Array of objects with `date: Date` and `count: number` |\n| `emptyColor`  | `RGB Tuple`            | `[20, 30, 30]` | Color of day with a `count` of 0                       |\n| `baseColor`   | `RGB Tuple`            | `[0, 128, 0]`  | Color of day with a `count` of 1 or more               |\n| `scaleFactor` | `number`               | `10`           | Multiplier that increases `baseColor` intensity        |\n| `className`   | `string`               | `-`            | CSS classes                                            |\n| `style`       | `React.CSSProperties`  | `-`            | CSS styles                                             |\n\n## Development\n\n### Local\n\n```\npnpm install\npnpm dev\n```\n\n### Tests\n\n```\npnpm test\n```\n\n### Example\n\nInside `test/`:\n\n```\npnpm install\npnpm dev\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-sandbox%2Fheatmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-sandbox%2Fheatmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-sandbox%2Fheatmap/lists"}