# @protobuf-ts/grpc-transport

> gRPC transport for clients generated by the protoc plugin "protobuf-ts"

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

## Install

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

## 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-12-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 31.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1345 |
| Author | Timo Stamm |
| Maintainers | timostamm |
| Keywords | Protocol Buffers, protobuf, TypeScript, gRPC |

## Links

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

## Dependencies (2)

- [@protobuf-ts/runtime](https://npm.io/package/@protobuf-ts/runtime.md) ^2.11.1
- [@protobuf-ts/runtime-rpc](https://npm.io/package/@protobuf-ts/runtime-rpc.md) ^2.11.1

## 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
- … 49 more at https://npm.io/package/@protobuf-ts/grpc-transport/versions

## README

@protobuf-ts/grpc-transport
===========================

[gRPC](https://grpc.io/) transport for clients generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Installation:

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

# with yarn:
yarn add @protobuf-ts/grpc-transport
```


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
```
                       

Usage:
```typescript
const transport = new GrpcTransport({
    host: "localhost:5000",
    channelCredentials: ChannelCredentials.createInsecure(),
});

let client = new HaberdasheryClient(transport);

let {response} = await client.makeHat({ inches: 11 });
console.log("got a small hat! " + response)

let streamingCall = client.makeRowOfHats({ inches: 23 });
for await (let hat of streamingCall.response) {
    console.log("got another hat! " + hat)
}
```


To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#grpc-transport).

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