Antonio Braccolino, Identity & Access, home
EN · Language: English
← All projects

Mac app · October–November 2026

Xbox Cloud Mac

A Mac app for cloud gaming with sharpening, live stats and stream control. Free.

  • Electron 44
  • JavaScript
  • WebRTC
  • WebGL2
  • Chrome DevTools Protocol
A synthwave racing game inside the app: performance overlay top left (1920×1080, 60 FPS, 9.6 Mbps, 10 ms buffer, VP8 codec), circle crosshair in the centre, speed and lap bottom right

The real app in test mode: overlay, stats and crosshair are real. The game is a test scene I drew, not a commercial game.

Why
On a Mac, Xbox Cloud Gaming runs in the browser, which is clumsy, and the apps that improve streaming are paid. I built my own, free, with the features I needed to play better.
How it’s built
A three-layer Electron app opens the official xbox.com/play client. main.js (about 220 lines) handles window, shortcuts, settings validated by key and type, permissions and screenshots, and presents itself as Microsoft Edge because xbox.com doesn’t recognise Electron. preload.js exposes a few functions through contextBridge and injects the script into the “main world” before xbox.com’s own scripts. enhance.js (about 940 lines) replaces the page’s RTCPeerConnection, fetch, getUserMedia and getGamepads.
Network and WebRTC
It sets jitterBufferTarget and playoutDelayHint on the video receivers (0 ms, automatic or 80 ms) and prioritises outgoing audio, with a low-latency 48 kHz microphone. It adds b=AS to the session SDP request for the maximum bitrate (1 to 60 Mbps) and the game language to the start request. Everything else passes through untouched.
Rendering
A WebGL2 canvas over the video, at Retina resolution, with an AMD CAS-style adaptive sharpening shader: it samples 4 neighbouring pixels and sharpens more where contrast is lower, without halos. “Ambient lightspill” fills the black bars with blurred mipmaps of the edges.
Controller and UI
getGamepads returns an Xbox controller built from mouse and keyboard (WASD left stick, mouse right stick, clicks as triggers), updated every 8 ms, and switches off when a real controller is plugged in. The panel lives in a shadow DOM and in full screen it moves inside the fullscreen element, so it stays clickable without touching the Xbox page.
Features
Overlay with resolution, FPS, bitrate, latency, decode time, buffer, packet loss and codec. Brightness, contrast, saturation and “ambient lightspill”. Mouse and keyboard as a controller, rumble, voice chat, screenshots with ⌘⇧S and a custom crosshair (shape, colour, size, opacity).
Security
contextIsolation and sandbox on, nodeIntegration off. Pop-ups allowed only to Microsoft and Xbox domains for sign-in. Microphone only with voice chat on, camera always denied. Sign-in happens on the official page and the app never sees or stores credentials. On sign-in pages it hides passkeys, which without an Apple developer signature hang on “Verifying…”. No features that alter requests to Microsoft servers, such as forced resolution or data-centre picking.
Problems solved
A crash after copying from iCloud, because framework links were lost: it now installs with ditto. A cropped image in full screen and a panel you couldn’t click. The microphone permission lost on every build: fixed by signing with a stable designated requirement.
Tests
45 end-to-end checks: a test launches the real app on a local page that simulates a WebRTC stream and verifies every feature through the Chrome DevTools Protocol, on the packaged app too. The two screenshots at the bottom come from those tests, so no real games or accounts.
Status and limits
Built, ad-hoc signed and installed on my Mac. Apple Silicon only, and no passkeys. It is a personal project, not affiliated with Microsoft: the name uses the Xbox trademark, so it stays an experiment and I don’t distribute it.
Test stream with the performance overlay top left (resolution, FPS, bitrate, latency, buffer, packet loss, codec), a red crosshair in the centre and the settings panel on the right
The settings panel during an automated test.
The same test stream full screen with a circle crosshair and the video settings: sharpness, brightness, contrast, saturation and ambient lightspill
Full screen with a circle crosshair and video controls.

Other projects

← All projects