framework
Next.js
Compose Playstack server contracts, React bindings, SSR handoff, and route adapters at the Next.js application edge.
Establish same-user peer trust across mobile, desktop, and extension surfaces through a versioned protocol with selectable discovery and transport profiles.
planned
Use versioned Noise handshakes, explicit human confirmation, and application device identity to establish revocable peer trust.
Packages
@playstack/pairing
@playstack/devicesplanned
Locate peers through account lookup, mDNS, QR codes, native host manifests, or port files without treating discovery as proof.
Packages
@playstack/pairing
Frameworks and integrations
@playstack/pairing
A registered device is a client authenticated to an application. A paired device has established mutual trust with another device. Both peers may belong to the same user, but signing in does not automatically authorize direct device-to-device communication.
The protocol fixes trust establishment and identifies compatible discovery and transport profiles. A QR code, mDNS record, or account lookup helps locate a peer; none of them proves its identity. The authenticated handshake does that.
import { createPairing } from '@playstack/pairing'
const pairing = createPairing({
identity: platformIdentityKey,
devices,
protocolVersion: 1,
discovery: mdnsDiscovery(),
transport: lanWithRelayFallback({ relay }),
})
const request = await pairing.begin({ peerDeviceId })
await pairing.confirm(request.id, displayedShortCode)Desktop, mobile, and companion products span TypeScript, Swift, and Rust. The normative artifact is therefore the versioned wire protocol and its shared conformance vectors. @playstack/pairing is one implementation, not the definition every other language must reverse engineer.
The protocol, discovery profiles, transport profiles, and deterministic vectors are specified. The feature remains planned until the TypeScript, Swift, and Rust implementations agree on those vectors and at least one real product integration validates revocation and relay fallback.