Your iOS Simulator, Now in a Browser Tab
You've probably got an iOS Simulator running on your Mac right now, and you're the only person who can see it. Maybe you're working with an agent tool like Codex or Cursor and want it to interact with the app you're building. Or maybe you want to test hosted infrastructure locally before pushing it somewhere remote. Either way, getting the simulator off your machine and into a browser has traditionally meant wiring up your own streaming stack. serve-sim is a small tool that does exactly that, and it's about as close to npx serve for Apple Simulators as you're going to get.
What It Does
serve-sim spawns a small Swift helper that captures your simulator's framebuffer using simctl io, exposes it as an MJPEG stream with a WebSocket control channel, and serves a React preview UI on top. Run npx serve-sim and you get a preview at http://localhost:3200. That's the whole setup.
It works with any booted iOS Simulator — no Xcode plugin, no instrumentation in your app. The README is explicit that this is agnostic to React Native (the author develops Expo, but the tool doesn't care), so it works for any iOS interaction you need to expose. You can run it locally, share it over your LAN, or host it on a remote Mac and tunnel the URL anywhere.
Why It's Cool
-
The zero-config angle is the real draw. There's no plugin to install and nothing to add to your app. If a simulator is booted,
serve-simcan capture it. That's a refreshingly low bar for a tool that usually involves a lot of moving parts. -
It streams at a full 60 FPS. The README leads with this, and it matters — a laggy preview is worse than no preview when you're trying to actually use the thing.
-
Input isn't an afterthought. You get swipe-from-the-bottom to go home, pinch to zoom by holding the option key, and keyboard commands forwarded to the simulator (including CMD+SHIFT+H). Drag and drop videos and images to add them to the device. Recent simulator actions show up in a browser tools panel and via
serve-sim event-log. -
The agent-tool use case is well thought out. Simulator logs are forwarded to the browser so browser-use MCP tools can read them. That's a small detail that makes a big difference if you're trying to give an agent eyes on what's happening inside the app.
-
It covers more than iPhone. Apple Watch, iPad, and iOS are all supported. There's also a fairly involved iPhone Duo section — hinge controls, pose buttons, an interactive RealityKit preview with live screen textures — that suggests the author is chasing the newer form factors rather than stopping at the basics.
How to Try It
You'll need macOS with Xcode command line tools (xcrun simctl) and a maintained Node.js LTS release (currently Node 20+). Older or end-of-life Node versions aren't supported, and bun isn't required to run the CLI. Camera injection uses a host-side helper built for macOS 14+.
One important caveat: Apple Silicon only. The bundled serve-sim-bin helper ships as an arm64 binary and won't run on Intel Macs.
- Boot a simulator.
- Run the CLI:
npx serve-sim
# → Preview at http://localhost:3200
- Open the URL in your browser and start interacting.
If you're on Xcode 27, there's a keyboard input quirk worth knowing about: Device Hub needs to be running with the target simulator window visible and frontmost, and macOS may require the app that launched serve-sim (Terminal, for example) to be enabled in System Settings → Privacy & Security → Accessibility. Xcode 26 and older use the legacy HID path. You can opt out of the Xcode 27 bridge with SERVE_SIM_DISABLE_DEVICE_HUB_KEYBOARD=1.
For iPhone Duo, there are CLI commands for driving the hinge directly:
serve-sim fold 180 -d <udid> # flat, 180°
serve-sim fold 130 -d <udid> # 130°
The full repo is at github.com/evanbacon/serve-sim.
Final Thoughts
serve-sim is a focused tool that solves a specific problem well: getting a simulator into a browser without asking you to instrument anything. The Apple Silicon requirement and the Xcode 27 keyboard caveats mean it won't be frictionless for everyone, and the Duo features are clearly early-days territory. But if you're building agent workflows, testing hosted infra, or just want to hand someone a URL instead of a screen share, this is a genuinely useful piece of glue. It's the kind of tool that feels obvious in retrospect — which is usually a good sign.
Follow @githubprojects for more developer tools and open source projects.