🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

hpo-react-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpo-react-visualizer

Interactive Human Phenotype Ontology (HPO) organ visualization library

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
13
-13.33%
Maintainers
1
Weekly downloads
 
Created
Source

hpo-react-visualizer

npm version License: MIT

Interactive Human Phenotype Ontology (HPO) organ visualization library for React.

Installation

# npm
npm install hpo-react-visualizer

# pnpm
pnpm add hpo-react-visualizer

# yarn
yarn add hpo-react-visualizer

Usage

import { HpoVisualizer } from "hpo-react-visualizer";

export function Example() {
  return (
    <HpoVisualizer
      organs={[
        { id: 'heart', colorName: 'red' },
        { id: 'lung', colorName: 'blue' },
        { id: 'brain', colorName: 'purple' },
      ]}
      onSelect={(organId) => console.log('Selected:', organId)}
      onHover={(organId) => console.log('Hovered:', organId)}
    />
  );
}

Props

PropTypeDescription
organsOrganConfig[]Array of organ configurations with id and optional styling
onSelect(organId: OrganId | null) => voidCallback when an organ is selected
onHover(organId: OrganId | null) => voidCallback when an organ is hovered
selectedOrganIdOrganId | nullControlled selected organ ID
hoveredOrganIdOrganId | nullControlled hovered organ ID
colorPaletteColorPaletteCustom color palette for organs

Available Organs

The following organ IDs are supported:

  • brain, eye, ear, nose, teeth, throat
  • heart, lung, liver, kidney, intestine, bladder
  • integument, muscle, blood, cell, metabolism
  • endocrine, neoplasm, immune, growth, prenatal

Keywords

hpo

FAQs

Package last updated on 16 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts