# @ucanto/transport

> ucanto transport

Latest version **9.2.1** (published 2025-10-24) · (Apache-2.0 AND MIT) license · 0 weekly downloads

## Install

```sh
npm install @ucanto/transport
pnpm add @ucanto/transport
yarn add @ucanto/transport
bun add @ucanto/transport
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.2.1 |
| Published | 2025-10-24 |
| First published | 2022-06-20 |
| Weekly downloads | 0 |
| License | (Apache-2.0 AND MIT) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 28 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 62 |
| Maintainers | gozala, it-dag-house, hugomrdias |
| Keywords | UCAN, RPC, IPLD, JWT, multicodec, codec, invocation |

## Links

- npm: https://www.npmjs.com/package/@ucanto/transport
- Repository: https://github.com/storacha/ucanto
- Issues: https://github.com/storacha/ucanto/issues
- npm.io page: https://npm.io/package/@ucanto/transport

## Dependencies (2)

- [@ucanto/core](https://npm.io/package/@ucanto/core.md) ^10.4.5
- [@ucanto/interface](https://npm.io/package/@ucanto/interface.md) ^11.0.1

## Recent versions

- 9.2.1 (latest) — 2025-10-24
- 9.2.0 — 2025-04-03
- 9.1.1 — 2024-04-04
- 9.1.0 — 2024-02-21
- 9.0.2 — 2024-01-15
- 9.0.1 — 2024-01-15
- 9.0.0 — 2023-10-05
- 8.0.0 — 2023-05-22
- 7.0.3 — 2023-04-26
- 7.0.2 — 2023-04-11
- 7.0.1 — 2023-04-11
- 7.0.0 — 2023-04-11
- 5.1.1 — 2023-03-15
- 5.1.0 — 2023-03-07
- 5.0.0 — 2023-03-01
- … 23 more at https://npm.io/package/@ucanto/transport/versions

## README

# @ucanto/transport

`@ucanto/transport` provides encoding, decoding, and transport mechanisms for UCAN-based RPC. It ensures reliable communication between clients and servers using standardized serialization formats.

## What It Provides
- **Pluggable Transport Layer**: Supports multiple encoding formats like CAR and CBOR.
- **Standardized Encoding**: Ensures consistency in UCAN invocation serialization.
- **Extensible Communication**: Enables integration with various network protocols.

## How It Fits with Other Modules
- [`@ucanto/core`](../core/README.md): Uses transport mechanisms for executing capabilities.
- [`@ucanto/server`](../server/README.md): Relies on transport modules for request handling.
- [`@ucanto/interface`](../interface/README.md): Defines standard transport-related types.
- [`@ucanto/principal`](../principal/README.md): Facilitates secure communication using identity-based encryption.

For an overview and detailed usage information, refer to the [main `ucanto` README](../../Readme.md).

## Installation
```sh
npm install @ucanto/transport
```

## Example Usage
```ts
import * as CAR from '@ucanto/transport/car';
import * as CBOR from '@ucanto/transport/cbor';

const encoded = CAR.encode({ invocations: [] });
const decoded = CBOR.decode(encoded);
```

For more details, see the [`ucanto` documentation](https://github.com/storacha/ucanto).

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