# @thingweb/thing-model

> Tooling to use WoT Thing Models in your workflows such as validation, model resolution and more.

Latest version **1.0.5** (published 2026-02-25) · EPL-2.0 OR W3C-20150513 license · 0 weekly downloads

## Install

```sh
npm install @thingweb/thing-model
pnpm add @thingweb/thing-model
yarn add @thingweb/thing-model
bun add @thingweb/thing-model
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2026-02-25 |
| First published | 2024-06-28 |
| Weekly downloads | 0 |
| License | EPL-2.0 OR W3C-20150513 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 408.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Eclipse Thingweb |
| Maintainers | jkrhb, mkovatsc, egeko, danielpeintner, cristiano.aguzzi |

## Links

- npm: https://www.npmjs.com/package/@thingweb/thing-model
- Repository: https://github.com/eclipse-thingweb/td-tools
- Homepage: https://github.com/eclipse-thingweb/td-tools#readme
- Issues: https://github.com/eclipse-thingweb/td-tools/issues
- npm.io page: https://npm.io/package/@thingweb/thing-model

## Dependencies (7)

- [ajv](https://npm.io/package/ajv.md) ^8.11.0
- [debug](https://npm.io/package/debug.md) ^4.3.4
- [ajv-formats](https://npm.io/package/ajv-formats.md) ^3.0.1
- [wot-thing-model-types](https://npm.io/package/wot-thing-model-types.md) ^1.1.0-12-March-2025
- [json-placeholder-replacer](https://npm.io/package/json-placeholder-replacer.md) ^2.0.4
- [wot-typescript-definitions](https://npm.io/package/wot-typescript-definitions.md) ^1.0.0-SNAPSHOT.0
- [wot-thing-description-types](https://npm.io/package/wot-thing-description-types.md) ^1.1.0-12-March-2025

## Recent versions

- 1.0.5 (latest) — 2026-02-25
- 1.0.4 — 2025-05-16
- 1.0.3 — 2024-07-29
- 1.0.2 — 2024-07-25
- 1.0.1 — 2024-06-28
- 1.0.0 — 2024-06-28

## README

# Eclipse Thingweb - TM Helpers

[![Thing Model CI Pipeline](https://github.com/eclipse-thingweb/td-tools/actions/workflows/ci-thing-model.yaml/badge.svg)](https://github.com/eclipse-thingweb/td-tools/actions/workflows/ci-thing-model.yaml)
[![CodeQL](https://github.com/eclipse-thingweb/td-tools/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/eclipse-thingweb/td-tools/actions/workflows/codeql-analysis.yml)
[![ESLint](https://github.com/eclipse-thingweb/td-tools/actions/workflows/eslint.yml/badge.svg)](https://github.com/eclipse-thingweb/td-tools/actions/workflows/eslint.yml)
[![Prettier](https://github.com/eclipse-thingweb/td-tools/actions/workflows/prettier.yml/badge.svg)](https://github.com/eclipse-thingweb/td-tools/actions/workflows/prettier.yml)

The package provides helper tools for Thing Models.
Tools help to:

-   Validate TMs,
-   Get the version of TMs,
-   Build partial TDs from a given TM,
-   Retrieve TMs with an URI,
-   Retrieve external references of a TM.

## Usage

-   Install this package via NPM (`npm install @thingweb/thing-model`) (or clone the repo, change to `node/thing-model`, and install the package with `npm install`)

You can find usage examples in the [tests folder](./tests/).

## License

Licensed under the Eclipse or W3C license, see [License](https://github.com/eclipse-thingweb/td-tools/blob/main/LICENSE.md).

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