Abd Alftah Salem
Hire me
←All case studies

Case study · Open source

flutter-remote

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

iOS needs a Mac. Many Flutter developers don't have one.

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

Creator and maintainer

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

From one command to a live simulator link

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.

Request path

Request pathflutter-remote upyour PC: push + dispatchGitHub ActionsmacOS runneriOS Simulatorflutter build iosWebRTC peerMJPEG → H.264Gatetoken + tunnelBrowservideo + tap, swipe, keys
$ 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 choices that shaped it

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.

WebRTC for video and input

H.264 over WebRTC keeps latency low enough to interact; DataChannels carry taps, swipes and key presses back to the Simulator.

Security by default

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

What made it more than a script

Upgrading files it already wrote

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.

A preflight that explains the fix

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.

One source for encoder settings

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.

Clean, guarded publishing

A prepublishOnly check now refuses to publish when bin/ or src/ holds uncommitted or ignored files, so the npm package always matches git.

06Outcome

iOS testing from Windows and Linux

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.

5npm releases
45end-to-end tests
24-byterandom token per session

Commits per week · 55 total

293112361
Sep 14Oct 26

Weeks starting Sep 14 to Oct 26, 2026. Source: git history of main.

07Stack & links

Built with

© 2026 Abd Alftah Salem · Back to portfolio