Real Simulator, streamed — not Flutter Web
The browser shows the actual iOS build in Apple's Simulator, so iOS-specific behaviour is what you test, not a web approximation.
Case study · Open source
A Node.js CLI that runs your Flutter app in a real iOS Simulator on a GitHub-hosted Mac and streams it to your browser — iOS development without owning a Mac.
01Problem
Building and testing the iOS side of a Flutter app requires Xcode, which only runs on macOS. For developers on Windows or Linux that means borrowing a Mac or skipping iOS testing until late. flutter-remote turns a free GitHub-hosted macOS runner into a remote iOS Simulator you can use from any browser.
02My role
I created the tool and maintain it on npm: the CLI, the workflow and gate that run on the runner, the browser client and the test suite.
03How it works
flutter-remote up pushes the project, dispatches a GitHub Actions workflow and waits. On the macOS runner the app is built with flutter build ios --simulator, the Simulator boots, and its screen is converted from MJPEG to H.264 and sent over WebRTC. Taps, swipes and keys travel back over WebRTC DataChannels. A small gate checks a per-session token, and a cloudflared tunnel gives the session a public HTTPS link.
$ npm install -g flutter-remote $ gh auth login $ cd my_flutter_app $ flutter-remote doctor $ flutter-remote up --public [1/5] Checking prerequisites ✓ Node.js, Git, GitHub CLI and project look good [2/5] Pushing your project to GitHub [3/5] Starting the macOS runner
04Key technical decisions
The browser shows the actual iOS build in Apple's Simulator, so iOS-specific behaviour is what you test, not a web approximation.
H.264 over WebRTC keeps latency low enough to interact; DataChannels carry taps, swipes and key presses back to the Simulator.
Every session gets a new random 24-byte token. The gate swaps it for an HttpOnly cookie and removes it from the URL; secrets reach gh through stdin, never the command line.
05Hard parts solved
Scaffolded runner files carry a content hash, so a newer version upgrades the files it wrote, keeps the ones you edited, and isn't confused by Windows line endings.
Before anything is pushed, doctor checks Node, Git, the GitHub CLI login, the workflow token scope and the project, and lists every problem with the command that fixes it.
A drifted copy of the FFmpeg arguments once dropped repeat-headers and caused black screens; the fix moved every path to a single argument builder.
A prepublishOnly check now refuses to publish when bin/ or src/ holds uncommitted or ignored files, so the npm package always matches git.
06Outcome
The tool is published on npm (v0.2.2) with an end-to-end suite that drives the real CLI, gate, WebRTC peer and headless Chrome. First runs take about 8–12 minutes and cached runs about 3, as stated in the README.
Weeks starting Sep 14 to Oct 26, 2026. Source: git history of main.
07Stack & links
© 2026 Abd Alftah Salem · Back to portfolio