# @polkadot/typegen

> Type generation scripts

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

## Install

```sh
npm install @polkadot/typegen
pnpm add @polkadot/typegen
yarn add @polkadot/typegen
bun add @polkadot/typegen
```

Provides the commands `polkadot-types-from-defs`, `polkadot-types-chain-info`, `polkadot-types-from-chain`, `polkadot-types-internal-metadata`, `polkadot-types-internal-interfaces`.

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 16.5.6 |
| Published | 2026-03-23 |
| First published | 2020-02-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 17 |
| Unpacked size | 317.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1111 |
| Author | Jaco Greeff |
| Maintainers | jacogr, polkadotjs, paritytech-ci |

## Links

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

## Dependencies (17)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [handlebars](https://npm.io/package/handlebars.md) ^4.7.8
- [@polkadot/api](https://npm.io/package/@polkadot/api.md) 16.5.6
- [@polkadot/util](https://npm.io/package/@polkadot/util.md) ^14.0.3
- [@polkadot/x-ws](https://npm.io/package/@polkadot/x-ws.md) ^14.0.3
- [comment-parser](https://npm.io/package/comment-parser.md) ^1.4.1
- [@polkadot/types](https://npm.io/package/@polkadot/types.md) 16.5.6
- [@polkadot/api-derive](https://npm.io/package/@polkadot/api-derive.md) 16.5.6
- [@polkadot/api-augment](https://npm.io/package/@polkadot/api-augment.md) 16.5.6
- [@polkadot/rpc-augment](https://npm.io/package/@polkadot/rpc-augment.md) 16.5.6
- [@polkadot/types-codec](https://npm.io/package/@polkadot/types-codec.md) 16.5.6
- [@polkadot/util-crypto](https://npm.io/package/@polkadot/util-crypto.md) ^14.0.3
- [@polkadot/rpc-provider](https://npm.io/package/@polkadot/rpc-provider.md) 16.5.6
- [@polkadot/types-create](https://npm.io/package/@polkadot/types-create.md) 16.5.6
- [@polkadot/types-augment](https://npm.io/package/@polkadot/types-augment.md) 16.5.6
- [@polkadot/types-support](https://npm.io/package/@polkadot/types-support.md) 16.5.6

## Recent versions

- 16.5.6 (latest) — 2026-03-23
- 8.14.2-12 (beta) — 2022-07-29
- 16.5.4 — 2025-12-09
- 16.5.3 — 2025-11-25
- 16.5.2 — 2025-11-11
- 16.5.1 — 2025-11-06
- 16.4.9 — 2025-10-14
- 16.4.8 — 2025-09-23
- 16.4.7 — 2025-09-15
- 16.4.6 — 2025-08-26
- 16.4.5 — 2025-08-20
- 16.4.4 — 2025-08-13
- 16.4.3 — 2025-07-29
- 16.4.2 — 2025-07-22
- 16.4.1 — 2025-07-09
- … 2003 more at https://npm.io/package/@polkadot/typegen/versions

## README

# @polkadot/typegen

A collection of type generation scripts, allowing the input of metadata and definitions for the creation of TS outputs.

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