# werift-rtp

> RTP,RTCP,SRTP,SRTCP implementation for TypeScript.

Latest version **0.8.9** (published 2026-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install werift-rtp
pnpm add werift-rtp
yarn add werift-rtp
bun add werift-rtp
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.8.9 |
| Published | 2026-07-29 |
| First published | 2020-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 628 |
| Author | shinyoshiaki |
| Maintainers | shinyoshiaki |

## Links

- npm: https://www.npmjs.com/package/werift-rtp
- Repository: https://github.com/shinyoshiaki/werift-webrtc
- Issues: https://github.com/shinyoshiaki/werift-webrtc/issues
- npm.io page: https://npm.io/package/werift-rtp

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) 4.4.0
- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [mediabunny](https://npm.io/package/mediabunny.md) ^1.45.2

## Recent versions

- 0.8.9 (latest) — 2026-07-29
- 0.8.2-alpha.0 (alpha) — 2024-04-23
- 0.8.8 — 2025-10-02
- 0.8.7 — 2025-10-01
- 0.8.6 — 2025-10-01
- 0.8.5 — 2025-09-30
- 0.8.4 — 2025-01-13
- 0.8.3 — 2025-01-05
- 0.8.2 — 2024-10-28
- 0.8.1 — 2024-02-11
- 0.8.0 — 2023-12-31
- 0.8.0-beta.1 — 2023-12-22
- 0.8.0-beta.0 — 2023-12-22
- 0.7.26 — 2023-12-13
- 0.7.25 — 2023-12-12
- … 58 more at https://npm.io/package/werift-rtp/versions

## README

# werift-rtp

RTP/RTCP/SRTP/SRTCP implementation for TypeScript

# install

`npm install werift-rtp`

# basic usage

```typescript
const buffer: Buffer = something;
const rtpPacket: RtpPacket = RtpPacket.deSerialize(buffer);

const buffer: Buffer = rtpPacket.serialize();
```

# When using in browser

```sh
npm i buffer
```

```ts
import "buffer";
import {} from "werift-rtp";
```

# advanced usage

see `./tests/**/*.test.ts`

# reference

https://github.com/pion/srtp

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