# cheminfo-types

> Types for cheminfo packages and cheminfo data schema

Latest version **1.16.0** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install cheminfo-types
pnpm add cheminfo-types
yarn add cheminfo-types
bun add cheminfo-types
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.16.0 |
| Published | 2026-09-09 |
| First published | 2021-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | cheminfo developers |
| Maintainers | cheminfo-bot |

## Links

- npm: https://www.npmjs.com/package/cheminfo-types
- Repository: https://github.com/cheminfo/cheminfo-types
- Homepage: https://github.com/cheminfo/cheminfo-types#readme
- Issues: https://github.com/cheminfo/cheminfo-types/issues
- npm.io page: https://npm.io/package/cheminfo-types

## Recent versions

- 1.16.0 (latest) — 2026-09-09
- 1.15.0 — 2026-04-02
- 1.14.0 — 2026-03-30
- 1.13.0 — 2026-03-30
- 1.12.0 — 2026-03-27
- 1.11.0 — 2026-03-26
- 1.10.0 — 2026-01-09
- 1.9.0 — 2026-01-09
- 1.8.1 — 2024-10-24
- 1.8.0 — 2024-08-05
- 1.7.3 — 2024-03-12
- 1.7.2 — 2023-06-08
- 1.7.1 — 2023-04-28
- 1.7.0 — 2023-04-26
- 1.6.0 — 2023-04-17
- … 19 more at https://npm.io/package/cheminfo-types/versions

## README

# cheminfo-types

[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]

Types for cheminfo packages and cheminfo data schema.

__Key principles:__ 
- One type should correspond to one React component 
- The schema should not be so complicated that it becomes unusable 
- Use `@tjs-examples` to give examples that will show in the JSON schema and documentation

## Installation

`$ npm i cheminfo-types`

## Usage

<details>

<summary>See example</summary>

```
import type { MeasurementXY } from 'cheminfo-types';

const measurements: MeasurementXY[] = [];
const xAxis = {
  label: 'time',
  units: 's',
  isDependent: false,
  data: [1, 2, 3],
};
const yAxis = {
  label: 'current',
  units: 'mA',
  isDependent: true,
  data: [0.1, 8, 13],
};
const firstMeasurement: MeasurementXY = {
  title: 'Current Monitoring',
  variables: { x: xAxis, y: yAxis },
};
measurements.push(firstMeasurement);
```

</details>

## License

[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/cheminfo-types.svg
[npm-url]: https://www.npmjs.com/package/cheminfo-types
[ci-image]: https://github.com/cheminfo/cheminfo-types/workflows/Node.js%20CI/badge.svg?branch=main
[ci-url]: https://github.com/cheminfo/cheminfo-types/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/cheminfo-types.svg
[download-url]: https://www.npmjs.com/package/cheminfo-types

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