# @polkadot/metadata-cmp

> Compares metadata from 2 sources

Latest version **0.63.20** (published 2026-03-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @polkadot/metadata-cmp
pnpm add @polkadot/metadata-cmp
yarn add @polkadot/metadata-cmp
bun add @polkadot/metadata-cmp
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 0.63.20 |
| Published | 2026-03-26 |
| First published | 2020-10-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 280 |
| Author | Jaco Greeff |
| Maintainers | jacogr, polkadotjs, paritytech-ci |

## Links

- npm: https://www.npmjs.com/package/@polkadot/metadata-cmp
- Repository: https://github.com/polkadot-js/tools
- Homepage: https://github.com/polkadot-js/tools/tree/master/packages/metadata-cmp#readme
- Issues: https://github.com/polkadot-js/tools/issues
- npm.io page: https://npm.io/package/@polkadot/metadata-cmp

## Recent versions

- 0.63.20 (latest) — 2026-03-26
- 0.51.12-0 (beta) — 2022-06-21
- 0.63.19 — 2025-11-26
- 0.63.18 — 2025-11-12
- 0.63.17 — 2025-10-22
- 0.63.16 — 2025-09-24
- 0.63.15 — 2025-08-27
- 0.63.14 — 2025-08-14
- 0.63.13 — 2025-07-30
- 0.63.12 — 2025-07-15
- 0.63.11 — 2025-07-02
- 0.63.10 — 2025-06-18
- 0.63.9 — 2025-06-05
- 0.63.8 — 2025-05-28
- 0.63.7 — 2025-05-14
- … 304 more at https://npm.io/package/@polkadot/metadata-cmp/versions

## README

# @polkadot/metadata-cmp

A utility to compare metadata from 2 sources

## Usage

Commands are of the form,

```
yarn run:metadata <ws1> <ws2> [options]
```

Where `ws1` is the first websocket, and `ws2` is the second websocket. The `options` are as follows:

`--legacy`: Use of the legacy rpc method `api.rpc.state.getMetadata` for retrieving metadata. When this is false or empty the default `api.call.metadata.metadataAtVersion` will be used.

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