{"id":24073034,"url":"https://github.com/react-sandbox/sparkline","last_synced_at":"2026-04-13T17:33:12.302Z","repository":{"id":190084283,"uuid":"654215318","full_name":"react-sandbox/sparkline","owner":"react-sandbox","description":"✨📈 Sparkline chart","archived":false,"fork":false,"pushed_at":"2024-01-15T22:07:10.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T17:18:50.481Z","etag":null,"topics":["chart","component","react","react-sparkline","sparkline","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,"zenodo":null}},"created_at":"2023-06-15T16:18:42.000Z","updated_at":"2025-05-10T06:35:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7729ebea-8f18-4c26-a774-428cf5ea123d","html_url":"https://github.com/react-sandbox/sparkline","commit_stats":null,"previous_names":["react-sandbox/sparkline"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/react-sandbox/sparkline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fsparkline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fsparkline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fsparkline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fsparkline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-sandbox","download_url":"https://codeload.github.com/react-sandbox/sparkline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-sandbox%2Fsparkline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["chart","component","react","react-sparkline","sparkline","svg","typescript"],"created_at":"2025-01-09T17:25:38.700Z","updated_at":"2026-04-13T17:33:12.286Z","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/sparkline\"\u003e@react-sandbox/sparkline\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/sparkline/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/sparkline?color=%234ba0f6\" alt=\"Build size\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/@react-sandbox/sparkline?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📈 Sparkline SVG component.\u003c/p\u003e\n\n## Usage\n\n### Install\n\nInstall the `@react-sandbox/sparkline` package:\n\n```\nnpm install @react-sandbox/sparkline\n```\n\n### Import\n\nImport the `Sparkline` component:\n\n```tsx\nimport React from 'react'\nimport Sparkline from '@react-sandbox/sparkline'\n\nfunction App() {\n  return (\n    \u003cdiv\u003e\n      \u003cSparkline\n        values={[1, 2, 1, 4, 6, 8, 6]}\n        width={50}\n        height={50}\n      /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n### Props\n\n| Prop          | Type                  | Default      | Description            |\n| ------------- | --------------------- | ------------ | ---------------------- |\n| `values`      | `Array\u003cnumber\u003e`       | **required** | Y-coordinates on graph |\n| `width`       | `number`              | **required** | Sparkline width        |\n| `height`      | `number`              | **required** | Sparkline height       |\n| `lineColor`   | `string`              | `'#4989eb'`  | Line stroke color      |\n| `lineWidth`   | `number`              | `3`          | Line stroke width      |\n| `fillColor`   | `string`              | `'#b2cff2'`  | Fill area color        |\n| `fillOpacity` | `number`              | `1`          | Fill area opacity      |\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%2Fsparkline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-sandbox%2Fsparkline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-sandbox%2Fsparkline/lists"}