planck

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: Apache-2.0

README

Planck

Open-source, low-latency game streaming: a host and a native desktop client, written in pure Go (CGO_ENABLED=0) with a MyGo interface.

Download

Platform File
Windows 10 (2004) or later, x64 Installer (planck-<version>-windows-x64-setup.exe), or the portable planck-<version>-windows-x64.zip
macOS 14 or later Apple silicon DMG (planck-<version>-macos-arm64.dmg), or planck-<version>-macos-amd64.dmg for Intel Macs
Linux x86_64, aarch64 planck-<version>-linux-<arch>.tar.gz: a command-line preview with no desktop window or streaming yet

Every file is on the Releases page, with SHA256SUMS.txt.

The Windows installer needs no administrator rights. It installs planck-client.exe (the app) and planck-host.exe (a command-line host for headless machines). The macOS app holds both in Planck.app/Contents/MacOS/.

What it does

  • Stream a desktop or a game from a Windows or macOS host to a Windows or macOS client. Any client can also host from its Hosting switch.
  • Hardware encode on every major GPU: NVIDIA NVENC, AMD AMF and Intel oneVPL (Quick Sync) on Windows, and VideoToolbox on macOS. Codecs are HEVC, AV1 and H.264, with 4:4:4 chroma and 10-bit HDR10 where the GPU supports them.
  • Low-latency transport: encrypted UDP media with adaptive forward error correction and rate control. QUIC carries control and pairing.
  • Tailscale-aware: finds your own devices on your tailnet, sizes packets for its MTU, and prefers a direct LAN path when both ends share one.
  • Audio, microphone, gamepads, keyboard, mouse and clipboard go both ways where the platform allows.
  • Pairing with a 6-digit PIN, or no PIN between two devices of the same Tailscale user.

Privacy: anonymous usage telemetry

Planck sends a few anonymous signals to TelemetryDeck, so its developers can see how many people use it and which codecs and kinds of route their streams take. It is on by default. Turn it off in Settings › General › Anonymous usage telemetry. Off takes effect at once and drops any signals still waiting to be sent. The switch also covers planck-host on the same machine; on a machine without the app, run planck-host -no-telemetry, or set "telemetryEnabled": false in client.json in Planck's config folder.

There are four signals: app.installed (once per install), app.launched, session.started and session.ended. Each holds only these fields:

Field What it is
clientUser The SHA-256 of a random ID that Planck makes on first use and keeps on the device (telemetry.json in the config folder). TelemetryDeck hashes it again with a salt. It is not linked to you, your accounts or your hardware.
sessionID A random ID for each launch
os, arch, platform For example windows, amd64, desktop
appVersion, buildChannel For example 0.1.0, release
mode client or host: the side of the stream
codec Only in session.*: h264, hevc, av1, pyrowave or unknown
transportKind Only in session.*: lan, tailscale_direct, tailscale_relay or unknown

Planck never sends host or device names, IP addresses, Tailscale addresses or identities, usernames, window titles, screen content, audio, input, clipboard contents, or pairing PINs and keys. TelemetryDeck sees your IP address, as any server does, and its privacy FAQ says it never stores IP addresses.

A build from source sends nothing: only the release builds carry a TelemetryDeck App ID. A source build given one with PLANCK_TELEMETRY_APP_ID marks its signals as test signals. planck-client -headless never sends telemetry.

Experimental drivers (not installed)

The release files contain no drivers. These are separate, optional, and experimental. Install them only to test them:

  • Planck Virtual Audio, a virtual speaker and microphone that carries the client's microphone into games and voice chat on the host. The Windows kernel driver is in drivers/audio/windows and the macOS HAL plug-in in drivers/audio/darwin. Without it, the host uses Steam Streaming Microphone, VB-CABLE or BlackHole if one is installed.
  • SudoVDA (Windows, a third-party virtual display driver), which lets the host stream at the client's resolution and refresh rate on a display that does not exist. Planck uses it when it is installed and falls back to a real display when it is not.

Build from source

Planck needs Go (the version in go.mod) and no C toolchain.

CGO_ENABLED=0 go build ./cmd/planck-client ./cmd/planck-host
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go test ./cmd/... ./internal/... ./pkg/...

planck-client -version and planck-host -version print the version. planck-client -headless streams without a window and prints latency figures; -help lists every option.

The release packages are built by these scripts, which docs/releasing.md describes:

Script Output in dist/
scripts/release-macos.sh --skip-sign planck-<version>-macos-<arch>.dmg, unsigned
scripts\bundle-windows.ps1 -Installer the Windows zip and installer (needs Inno Setup 6)
scripts/bundle-linux.sh the Linux tarballs

The cmd/spike-* and cmd/planck-spike2 programs are Phase 0 experiments, and cmd/planck-trace and cmd/planck-vdd are developer tools. None of them ship.

License

Planck is licensed under the Apache License 2.0. THIRD_PARTY_NOTICES.md lists the parts that come from other projects.

Directories

Path Synopsis
Package assets holds Planck's brand files.
Package assets holds Planck's brand files.
cmd
planck-client command
Command planck-client is the Planck desktop client: the native window with the hosts, pairing and settings screens and the stream view.
Command planck-client is the Planck desktop client: the native window with the hosts, pairing and settings screens and the stream view.
planck-host command
Command planck-host streams this machine's display, audio and input to a Planck client.
Command planck-host streams this machine's display, audio and input to a Planck client.
planck-spike2 command
Command planck-spike2 runs the Phase 0 capture and encode measurements.
Command planck-spike2 runs the Phase 0 capture and encode measurements.
planck-trace command
Command planck-trace summarizes the per-frame stage traces planck-host and planck-client write when PLANCK_TRACE_HOST and PLANCK_TRACE_CLIENT name a file: p50, p95, p99 and max of each stage, in microseconds.
Command planck-trace summarizes the per-frame stage traces planck-host and planck-client write when PLANCK_TRACE_HOST and PLANCK_TRACE_CLIENT name a file: p50, p95, p99 and max of each stage, in microseconds.
planck-vdd command
Command planck-vdd checks the SudoVDA virtual display driver, which only exists on Windows.
Command planck-vdd checks the SudoVDA virtual display driver, which only exists on Windows.
spike-mygo-surface command
Command spike-mygo-surface measures the vendored MyGo gpusurface: it draws synthetic frames on the GPU, as a hardware decoder would leave them, and presents each with no CPU copy, reporting submit-to-present latency, frame rate, CPU time and Go heap allocations per frame.
Command spike-mygo-surface measures the vendored MyGo gpusurface: it draws synthetic frames on the GPU, as a hardware decoder would leave them, and presents each with no CPU copy, reporting submit-to-present latency, frame rate, CPU time and Go heap allocations per frame.
spike-transport command
Command spike-transport benchmarks Planck media transports between a host (sender) and a client (receiver): quic-go RFC 9221 datagrams versus raw UDP sealed with keys exported from a QUIC control connection, with sub-frame slicing, Reed-Solomon FEC and simulated loss and jitter.
Command spike-transport benchmarks Planck media transports between a host (sender) and a client (receiver): quic-go RFC 9221 datagrams versus raw UDP sealed with keys exported from a QUIC control connection, with sub-frame slicing, Reed-Solomon FEC and simulated loss and jitter.
internal
apple
Package apple loads the CoreFoundation, CoreMedia, CoreVideo, and VideoToolbox entry points Planck needs through purego, with no cgo.
Package apple loads the CoreFoundation, CoreMedia, CoreVideo, and VideoToolbox entry points Planck needs through purego, with no cgo.
bench
Package bench collects latency samples and summarizes them.
Package bench collects latency samples and summarizes them.
clock
Package clock reads the platform's high resolution monotonic counter, the same clock DXGI and ScreenCaptureKit stamp frames with.
Package clock reads the platform's high resolution monotonic counter, the same clock DXGI and ScreenCaptureKit stamp frames with.
rtprio
Package rtprio raises the scheduling class of the threads on Planck's media path: receive, decode and present on the client, receive and encode on the host.
Package rtprio raises the scheduling class of the threads on Planck's media path: receive, decode and present on the client, receive and encode on the host.
synth
Package synth draws deterministic desktop-like test frames: gradients, fine text-like detail, and a vertical scroll per frame index, so encoders see realistic spatial detail and motion without a live display.
Package synth draws deterministic desktop-like test frames: gradients, fine text-like detail, and a vertical scroll per frame index, so encoders see realistic spatial detail and motion without a live display.
telemetry
Package telemetry sends anonymous usage signals to TelemetryDeck (Ingest API v2): that Planck was installed and launched, and that a stream started and ended, with its codec and the kind of route it took.
Package telemetry sends anonymous usage signals to TelemetryDeck (Ingest API v2): that Planck was installed and launched, and that a stream started and ended, with its codec and the kind of route it took.
ui
Package ui is Planck's desktop client interface, drawn with MyGo: the icon rail, the Hosts, Statistics and Settings screens, and the stream view with its overlay.
Package ui is Planck's desktop client interface, drawn with MyGo: the icon rail, the Hosts, Statistics and Settings screens, and the stream view with its overlay.
ui/theme
Package theme turns Planck's design tokens into a MyGo theme, and registers the brand fonts and icons the client draws with.
Package theme turns Planck's design tokens into a MyGo theme, and registers the brand fonts and icons the client draws with.
version
Package version is the one source of Planck's version.
Package version is the one source of Planck's version.
win
Package win holds the minimal COM, DXGI, and Direct3D 11 bindings Planck needs, called through syscall with no cgo.
Package win holds the minimal COM, DXGI, and Direct3D 11 bindings Planck needs, called through syscall with no cgo.
winres
Package winres makes the Windows resources of planck-client.exe and planck-host.exe and checks a built exe for them.
Package winres makes the Windows resources of planck-client.exe and planck-host.exe and checks a built exe for them.
pkg
audio
Package audio carries Planck's game audio: capture on the host, Opus encode and decode, a jitter buffer on the client, and playback.
Package audio carries Planck's game audio: capture on the host, Opus encode and decode, a jitter buffer on the client, and playback.
capture
Package capture defines the screen capture contract shared by the platform backends: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS, and PipeWire or KMS on Linux.
Package capture defines the screen capture contract shared by the platform backends: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS, and PipeWire or KMS on Linux.
capture/cursor
Package cursor reads the host's system cursor: whether it shows, whether an app holds the mouse, and where it is.
Package cursor reads the host's system cursor: whether it shows, whether an app holds the mouse, and where it is.
capture/display
Package display lists the capturable displays of this machine and opens one with the platform's capture backend: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS.
Package display lists the capturable displays of this machine and opens one with the platform's capture backend: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS.
capture/dxgi
Package dxgi captures a Windows display with DXGI Desktop Duplication.
Package dxgi captures a Windows display with DXGI Desktop Duplication.
capture/sck
Package sck captures a macOS display with ScreenCaptureKit through purego, with no cgo.
Package sck captures a macOS display with ScreenCaptureKit through purego, with no cgo.
clipboard
Package clipboard reads, writes and watches the system clipboard for sharing it between host and client.
Package clipboard reads, writes and watches the system clipboard for sharing it between host and client.
config
Package config persists Planck host and client settings as JSON in the user's config directory, and manages the host's TLS identity and the client's pinned host certificates.
Package config persists Planck host and client settings as JSON in the user's config directory, and manages the host's TLS identity and the client's pinned host certificates.
decode
Package decode defines the hardware video decoder contract shared by the platform backends: Media Foundation on Direct3D 11 (Windows) and VideoToolbox (macOS).
Package decode defines the hardware video decoder contract shared by the platform backends: Media Foundation on Direct3D 11 (Windows) and VideoToolbox (macOS).
decode/d3d11
Package d3d11 decodes HEVC and AV1 on the GPU of a Direct3D 11 device through a Media Foundation decoder transform made aware of the device (DXVA).
Package d3d11 decodes HEVC and AV1 on the GPU of a Direct3D 11 device through a Media Foundation decoder transform made aware of the device (DXVA).
decode/vt
Package vt decodes HEVC and AV1 with Apple VideoToolbox through purego, with no cgo.
Package vt decodes HEVC and AV1 with Apple VideoToolbox through purego, with no cgo.
defaults
Package defaults picks a session's stream settings from what the host, the client and the route between them can do, with user overrides on top.
Package defaults picks a session's stream settings from what the host, the client and the route between them can do, with user overrides on top.
discovery
Package discovery finds Planck hosts on the LAN and the tailnet and picks the best path to one.
Package discovery finds Planck hosts on the LAN and the tailnet and picks the best path to one.
encode
Package encode defines the hardware video encoder contract shared by the vendor backends: NVENC, AMF, oneVPL (Quick Sync), and VideoToolbox.
Package encode defines the hardware video encoder contract shared by the vendor backends: NVENC, AMF, oneVPL (Quick Sync), and VideoToolbox.
encode/all
Package all registers every hardware encoder backend of the platform with pkg/encode, for encode.Open.
Package all registers every hardware encoder backend of the platform with pkg/encode, for encode.Open.
encode/encodetest
Package encodetest runs hardware encoders on synthetic GPU frames for the encode, decode and player tests.
Package encodetest runs hardware encoders on synthetic GPU frames for the encode, decode and player tests.
encode/nvenc
Package nvenc drives NVIDIA's hardware encoder through nvEncodeAPI64.dll's function table, with no cgo and no NVIDIA SDK at build time.
Package nvenc drives NVIDIA's hardware encoder through nvEncodeAPI64.dll's function table, with no cgo and no NVIDIA SDK at build time.
encode/vt
Package vt drives Apple VideoToolbox hardware HEVC encode and decode through purego, with no cgo.
Package vt drives Apple VideoToolbox hardware HEVC encode and decode through purego, with no cgo.
fec
Package fec protects video slices with Reed-Solomon parity sized from the receiver's measured loss, and rebuilds them on the receiving side.
Package fec protects video slices with Reed-Solomon parity sized from the receiver's measured loss, and rebuilds them on the receiving side.
gamepad
Package gamepad reads the controllers attached to a client, maps their raw buttons and axes onto the XInput layout Planck sends (with SDL gamecontrollerdb mapping strings for import and export), applies the user's calibration, and drives virtual controllers on a host.
Package gamepad reads the controllers attached to a client, maps their raw buttons and axes onto the XInput layout Planck sends (with SDL gamecontrollerdb mapping strings for import and export), applies the user's calibration, and drives virtual controllers on a host.
gpu
Package gpu names graphics adapters across platforms so that capture and encode backends can agree on which device owns a frame.
Package gpu names graphics adapters across platforms so that capture and encode backends can agree on which device owns a frame.
input
Package input carries keyboard, mouse, and gamepad input from the client to the host: a fixed binary wire format, key code tables, and host injectors.
Package input carries keyboard, mouse, and gamepad input from the client to the host: a fixed binary wire format, key code tables, and host injectors.
linkinfo
Package linkinfo finds the local interface that routes to a peer, whether it is wired, and its link speed.
Package linkinfo finds the local interface that routes to a peer, whether it is wired, and its link speed.
player
Package player shows a stream of encoded pictures in a window: a hardware decoder on the window surface's own GPU device, each picture presented from the decoder's texture with no copy.
Package player shows a stream of encoded pictures in a window: a hardware decoder on the window surface's own GPU device, each picture presented from the decoder's texture with no copy.
power
Package power keeps this machine awake while it hosts, and locks it.
Package power keeps this machine awake while it hosts, and locks it.
pyrowave
Package pyrowave is a Go port of PyroWave, Hans-Kristian Arntzen's intra-only wavelet video codec for local game streaming (https://github.com/Themaister/pyrowave, MIT, bitstream v1 at a32b05e0).
Package pyrowave is a Go port of PyroWave, Hans-Kristian Arntzen's intra-only wavelet video codec for local game streaming (https://github.com/Themaister/pyrowave, MIT, bitstream v1 at a32b05e0).
pyrowave/ref
Package ref is a CPU PyroWave encoder and decoder in float32, the reference the GPU kernels are tested against.
Package ref is a CPU PyroWave encoder and decoder in float32, the reference the GPU kernels are tested against.
ratectl
Package ratectl picks the video bitrate from receiver feedback, in the style of Google Congestion Control: a delay-gradient trendline detects queue build-up early, loss caps the rate when the path drops packets, and a per-path ceiling bounds both.
Package ratectl picks the video bitrate from receiver feedback, in the style of Google Congestion Control: a delay-gradient trendline detects queue build-up early, loss caps the rate when the path drops packets, and a per-path ceiling bounds both.
tailscale
Package tailscale is a small client for the local Tailscale daemon's LocalAPI.
Package tailscale is a small client for the local Tailscale daemon's LocalAPI.
transport
Package transport carries Planck sessions.
Package transport carries Planck sessions.
vdd
Package vdd drives the SudoVDA indirect display driver on Windows: it adds a virtual monitor per client at the client's resolution and refresh rate, binds its rendering to a chosen GPU, and removes it again.
Package vdd drives the SudoVDA indirect display driver on Windows: it adds a virtual monitor per client at the client's resolution and refresh rate, binds its rendering to a chosen GPU, and removes it again.
wire
Package wire defines Planck protocol v1: control messages carried as length-prefixed frames on the QUIC control stream, and the plaintext layouts of media datagrams carried over AEAD-sealed UDP.
Package wire defines Planck protocol v1: control messages carried as length-prefixed frames on the QUIC control stream, and the plaintext layouts of media datagrams carried over AEAD-sealed UDP.
scripts
winres command
Command winres makes the Windows resources (icon and version) of planck-client.exe and planck-host.exe, and checks a built exe for them (internal/winres).
Command winres makes the Windows resources (icon and version) of planck-client.exe and planck-host.exe, and checks a built exe for them (internal/winres).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL