# @protobuf-ts/runtime

> Runtime library for code generated by the protoc plugin "protobuf-ts"

Latest version **2.11.1** (published 2025-06-18) · (Apache-2.0 AND BSD-3-Clause) license · 0 weekly downloads

## Install

```sh
npm install @protobuf-ts/runtime
pnpm add @protobuf-ts/runtime
yarn add @protobuf-ts/runtime
bun add @protobuf-ts/runtime
```

## Health

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

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

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.11.1 |
| Published | 2025-06-18 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | (Apache-2.0 AND BSD-3-Clause) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 340.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1343 |
| Author | Timo Stamm |
| Maintainers | timostamm |
| Keywords | Protocol Buffers, protobuf, TypeScript, bigint, Reflection |

## Links

- npm: https://www.npmjs.com/package/@protobuf-ts/runtime
- Repository: https://github.com/timostamm/protobuf-ts
- Issues: https://github.com/timostamm/protobuf-ts/issues
- npm.io page: https://npm.io/package/@protobuf-ts/runtime

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.11.1 (latest) — 2025-06-18
- 2.2.3-alpha.1 (next) — 2022-03-15
- 2.11.0 — 2025-05-26
- 2.10.0 — 2025-05-01
- 2.9.6 — 2025-03-19
- 2.9.5 — 2025-03-09
- 2.9.4 — 2024-03-13
- 2.9.3 — 2023-12-07
- 2.9.2 — 2023-12-05
- 2.9.1 — 2023-07-31
- 2.9.0 — 2023-04-24
- 2.8.3 — 2023-03-20
- 2.8.2 — 2022-11-16
- 2.8.1 — 2022-09-07
- 2.8.0 — 2022-08-17
- … 103 more at https://npm.io/package/@protobuf-ts/runtime/versions

## README

@protobuf-ts/runtime
====================

Runtime library for code generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Create, clone, serialize, and compare protobuf messages. Get reflection 
information about message fields and custom options.

Installation:

```shell script
# with npm:
npm install @protobuf-ts/runtime

# with yarn:
yarn add @protobuf-ts/runtime
```             

You probably want the protoc plugin as well: 
          
```shell script
# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin
```
                       

To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#imessagetype) 
or check the repository [README](https://github.com/timostamm/protobuf-ts/README.md) for a quick overview.


### Copyright

- The [code to decode UTF8](https://github.com/timostamm/protobuf-ts/blob/master/packages/runtime/src/protobufjs-utf8.ts) is Copyright 2016 by Daniel Wirtz, licensed under BSD-3-Clause.
- The [code to encode and decode varint](https://github.com/timostamm/protobuf-ts/blob/master/packages/runtime/src/goog-varint.ts) is Copyright 2008 Google Inc., licensed under BSD-3-Clause.
- All other files are licensed under Apache-2.0, see [LICENSE](https://github.com/timostamm/protobuf-ts/blob/master/packages/runtime/LICENSE).

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