{"id":48446561,"url":"https://github.com/biomathcode/reactanatomypicker","last_synced_at":"2026-04-06T18:03:59.579Z","repository":{"id":327002782,"uuid":"1105940853","full_name":"biomathcode/ReactAnatomyPicker","owner":"biomathcode","description":"A lightweight, customizable React component for selecting anatomical regions on human body diagrams","archived":false,"fork":false,"pushed_at":"2025-12-01T05:35:39.000Z","size":2960,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T19:28:20.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://biomathcode.github.io/ReactAnatomyPicker","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biomathcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T11:33:54.000Z","updated_at":"2025-12-19T08:39:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/biomathcode/ReactAnatomyPicker","commit_stats":null,"previous_names":["biomathcode/reactanatomypicker"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/biomathcode/ReactAnatomyPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biomathcode%2FReactAnatomyPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biomathcode%2FReactAnatomyPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biomathcode%2FReactAnatomyPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biomathcode%2FReactAnatomyPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biomathcode","download_url":"https://codeload.github.com/biomathcode/ReactAnatomyPicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biomathcode%2FReactAnatomyPicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31483385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":[],"created_at":"2026-04-06T18:03:07.332Z","updated_at":"2026-04-06T18:03:59.565Z","avatar_url":"https://github.com/biomathcode.png","language":"TypeScript","readme":"# react-anatomy-picker\n\n\n\n[![npm version](https://img.shields.io/npm/v/react-anatomy-picker?color=blue\\\u0026label=npm)](https://www.npmjs.com/package/react-anatomy-picker)\n[![npm downloads](https://img.shields.io/npm/dm/react-anatomy-picker?color=green\\\u0026label=downloads)](https://www.npmjs.com/package/react-anatomy-picker)\n[![Storybook](https://img.shields.io/badge/Storybook-Demo-orange)](https://biomathcode.github.io/ReactAnatomyPicker)\n\n\nA React component for selecting anatomical regions on a human body diagram.\n\n# 📦 Installation\n\n```bash\nnpm install react-anatomy-picker\n# or\nyarn add react-anatomy-picker\n# or\npnpm add react-anatomy-picker\n\n```\n\n### Usage Example\n\n\n```jsx\nimport { AnatomyPicker, AdultMaleFront } from \"react-anatomy-picker\";\nimport { useState } from \"react\";\n\nexport default function Demo() {\n  const [selected, setSelected] = useState\u003cstring[]\u003e([]);\n\n  return (\n    \u003cAnatomyPicker\n      SvgComponent={AdultMaleFront}\n      selected={selected}\n      highlightColor=\"#1471C9\"\n      onPartSelect={(part) =\u003e\n        setSelected((prev) =\u003e\n          prev.includes(part)\n            ? prev.filter((p) =\u003e p !== part)\n            : [...prev, part]\n        )\n      }\n      style={{ width: 400 }}\n    /\u003e\n  );\n}\n```\n\n# 🔥 Features\n\n- 🎨 **Interactive SVG-based anatomy selection**\n- 🧍 Supports various anatomy types:\n  - Adult Male (Front / Back)\n  - Adult Female (Front / Back)\n  - Child (Male/Female)\n  - Toddler (Front/Back)\n  - Infant\n- 🖱️ Hover + Click highlight\n- 🎯 Multi-select support (`selected: string[]`)\n- ♿ Accessible with `aria-selected`\n- 🎛️ Custom highlight color\n- ⚡ Tiny bundle \u0026 tree-shakeable\n- 🧩 Fully written in TypeScript\n\n---\n\n## Anatomy Models\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/biomathcode/ReactAnatomyPicker/main/asserts/male_front.png\" width=\"200\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/biomathcode/ReactAnatomyPicker/main/asserts/female_front.png\" width=\"200\" /\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/biomathcode/ReactAnatomyPicker/main/asserts/infant.png\" width=\"200\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/biomathcode/ReactAnatomyPicker/main/asserts/toddler_back.png\" width=\"200\" /\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\nb\n\n\n## Development\n\n- Install dependencies:\n\n```bash\nnpm install\n```\n\n- Run the playground:\n\n```bash\nnpm run play\n```\n\n- Run the unit tests:\n\n```bash\nnpm run test\n```\n\n- Build the library:\n\n```bash\nnpm run build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiomathcode%2Freactanatomypicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiomathcode%2Freactanatomypicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiomathcode%2Freactanatomypicker/lists"}