# castv2: reconstructing the Chromecast CASTV2 protocol

> castv2 documents and implements the Chromecast CASTV2 protocol over TLS. Its Node.js client exchanges length-prefixed Protocol Buffers messages with a dongle, and its protocol notes describe namespaces, virtual connections, heartbeat messages and device authentication.

- Type: Case study
- Targets: Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/thibauts/node-castv2>
- Primary source: <https://github.com/thibauts/node-castv2/blob/41d589abbf8619ec582e2b2707eb5e3266e7a14a/README.md>
- Catalog page: <https://awesomerea.org/resources/node-castv2-case/>
- Record JSON: <https://awesomerea.org/resources/node-castv2-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/node-castv2-case/index.md)

## Requirements & limits

- **Prerequisites:** Node.js and a Chromecast device for client use.
- **Limits:** The server implementation is limited by device authentication.
- **License:** MIT license.

## Primary sources

1. <https://github.com/thibauts/node-castv2/blob/41d589abbf8619ec582e2b2707eb5e3266e7a14a/README.md>

## More in Protocols

- [wycliffe: a clean-room Dante protocol implementation](https://awesomerea.org/resources/wycliffe-case/index.md) · Case study
- [ps4-waker: a client for the PS4 companion app protocol](https://awesomerea.org/resources/ps4-waker-case/index.md) · Case study
- [NJUConnect: reconstructing the NJU EasyConnect VPN client](https://awesomerea.org/resources/njuconnect-vpn-protocol-case/index.md) · Case study
- [LGTV: reconstructing LG webOS TV control exchanges](https://awesomerea.org/resources/lgtv-js-case/index.md) · Case study
- [Inferno: implementing Dante audio networking](https://awesomerea.org/resources/inferno-dante-protocol-case/index.md) · Case study
- [Wireshark](https://awesomerea.org/resources/wireshark/index.md) · Tool

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
