# hpo-js

> A React Typescript component to help visualise the Human Phenotype Ontology structure.

Latest version **0.1.19** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install hpo-js
pnpm add hpo-js
yarn add hpo-js
bun add hpo-js
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.19 |
| Published | 2019-10-10 |
| First published | 2019-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | logust79 |
| Keywords | HPO, Human Phenotype Ontology, react, typescript |

## Links

- npm: https://www.npmjs.com/package/hpo-js
- Repository: https://github.com/logust79/hpo-js
- Homepage: https://github.com/logust79/hpo-js#readme
- Issues: https://github.com/logust79/hpo-js/issues
- npm.io page: https://npm.io/package/hpo-js

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [react](https://npm.io/package/react.md) ^16.9.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.9.0
- [react-loading](https://npm.io/package/react-loading.md) ^2.0.3
- [react-graph-vis](https://npm.io/package/react-graph-vis.md) ^1.0.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.19 (latest) — 2019-10-10
- 0.1.18 — 2019-09-03
- 0.1.17 — 2019-06-06
- 0.1.16 — 2019-06-05
- 0.1.15 — 2019-03-20
- 0.1.14 — 2019-03-20
- 0.1.13 — 2019-03-20
- 0.1.12 — 2019-03-20
- 0.1.11 — 2019-03-20
- 0.1.10 — 2019-03-20
- 0.1.9 — 2019-03-20
- 0.1.8 — 2019-03-19
- 0.1.7 — 2019-03-19
- 0.1.6 — 2019-03-19
- 0.1.5 — 2019-03-19
- … 5 more at https://npm.io/package/hpo-js/versions

## README

## hpo-js

A React Typescript component to help visualise the Human Phenotype Ontology structure.

![alt text](https://raw.githubusercontent.com/logust79/hpo-js/master/demo.png)

This is a simple wrap-around of `react-graph-vis`.  
It relies on an API server to feed data structure such as https://github.com/logust79/hpo-js-server.

Example:

```javascript
import * as React from "react";
import * as ReactDOM from "react-dom";
import Hpo from "hpo-js";

ReactDOM.render(
  <Hpo
    // hpoNodes is an array of {id, color? and size?}
    hpoNodes={[
      {
        id: "HP:0007754",
        color: "red",
        size: 20
      },
      {
        id: "HP:0000510",
        color: "orange",
        size: 15
      },
      {
        id: "HP:0000005",
        color: "blue",
        size: 10
      }
    ]}
    // minGraphUrl is an API to get minified node-edge structure given hpoNodes
    minGraphUrl="https://phenogenon-api.phenopolis.org/hpoMinGraph/"
    // hpoNameUrl is an API to get HPO names given HPO ids.
    hpoNameUrl="https://phenogenon-api.phenopolis.org/hpoNames/"
  />,
  document.getElementById("root") as HTMLElement
);
```

---
_Source: https://npm.io/package/hpo-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
