Self-hosted iOS & Android simulator streaming for the whole team
Run iOS simulators and Android emulators in any browser — no toolchain setup, no device pool, no cloud uploads.
Your builds, streams, and recordings stay on infrastructure you control.
No WebDriverAgent · 2-line setup · MIT
📖 Docs · 🚀 Quick Start · 🎥 Demo · 🎬 Setup
https://github.com/user-attachments/assets/dbba8bde-74b6-4fb9-bdb6-3919bc4295c4
Streams over H.264 with a zero-buffer decoder (no MSE) — latency measurements ↗
v0.x, actively developed — backward-compatible by default; breaking changes are rare and always noted in the changelog. Roadmap →
Mobile QA usually depends on access to simulators, emulators, or physical devices — and that access is uneven across a team.
For mobile developers it means opening Xcode or Android Studio on a Mac. For everyone else, it often means asking a mobile developer every single time:
Backend developer — "How do I install the sandbox build to check what was deployed?"
Product manager — "I keep installing and removing versions just to compare behavior."
Designer — "I need to check the layout across screen sizes, but I don't have the right devices."
Physical devices add their own overhead — OS-version coverage, availability, charging, storage, handoff. Cloud simulator services solve access, but they require uploading internal builds to a third-party service and paying for remote devices while your own Macs can already run the same simulators.
We hit this exact problem, so we built tapflow.
| Solution | The catch |
|---|---|
| Appetize / BrowserStack | Recurring cost — and app builds are uploaded to a third-party cloud |
| Physical devices | Cost, availability, OS coverage, management overhead |
| Xcode / Android Studio | Each teammate needs a Mac and a full mobile toolchain |
| tapflow | Reuse your own Macs — data stays on infrastructure you control, and the whole team does QA from a browser |
tapflow connects three parts:
Browser (your team) ←─ WebSocket ─→ Relay Server ←─ WebSocket (outbound) ─→ Mac Agent
(Linux / Mac) (iOS · Android)
tapflow doesn't replace native mobile development tools. Mobile developers still use Xcode, Android Studio, and their build tooling. tapflow makes the running simulators and emulators accessible to the rest of the team through a browser, and it is not a device farm. It does include automation — a deterministic flow runner, and an MCP server for LLM agents — but wiring in external automation frameworks like WebDriverAgent or Appium is out of scope; tapflow ships its own minimal runner instead.
Where this is heading is laid out in VISION.md: three ways to use one shared layer, and work that moves from something done once to something every build runs.
npm install -g tapflow
# or: yarn global add tapflow | pnpm add -g tapflow
On the Mac that will run an agent, install the simulator/emulator prerequisites in one step:
tapflow setup
Skip this on a relay-only server (Linux). See Environment Setup for details.
tapflow start
# ✓ Relay started on http://localhost:4000
# ✓ iOS Agent connected (3 simulators available)
This starts both the relay and the agent on the same Mac (local mode).
Open http://localhost:4000 in your browser. tapflow redirects you to /setup to create the admin account.
tapflow status cannot connect to a relay that serves HTTPS
https://github.com/jo-duchan/tapflow/issues/1329
Labels: bug, good first issue
Removing a member who uploaded a build or wrote a comment fails silently
https://github.com/jo-duchan/tapflow/issues/1327
Labels: bug, maintainers
rathole: uploaded server config binds to serverAddr, which fails on a VPS behind NAT
https://github.com/jo-duchan/tapflow/issues/1325
Labels: bug, good first issue
Flaky test: AppObserver 'names the app it asks about' misses the request on CI
https://github.com/jo-duchan/tapflow/issues/1324
Labels: bug, help wanted
Ctrl+C exits before the rathole server on the VPS is stopped
https://github.com/jo-duchan/tapflow/issues/1319
Labels: bug, help wanted
rathole tunnel cannot start on a Linux relay host
https://github.com/jo-duchan/tapflow/issues/1318
Labels: bug, maintainers
Common rules: AGENTS.md | Full index: INDEX.md | Community standards: Code of Conduct
Requirements: Node.js ≥ 22, pnpm ≥ 9
Windows relay tests: the relay suite shells to unzip and tar (packages/relay/src/api/builds.ts), so both must resolve on PATH before pnpm --filter @tapflowio/relay test can pass. tar.exe ships with Windows in C:\Windows\System32; unzip.exe comes from Git for Windows (C:\Program Files\Git\usr\bin, or %LocalAppData%\Programs\Git\usr\bin for user installs). If either is missing, the suite fails fast naming the tool instead of reporting a misleading archive assertion.
git clone https://github.com/jo-duchan/tapflow.git
cd tapflow
pnpm install
pnpm dev
pnpm dev starts the relay, dashboard, iOS agent, and Android agent concurrently.
All dev/test commands run from the repo root. The playground/ package holds the underlying implementations (relay, agents, seeders) — you do not run them from there directly.
| Command | What it runs |
|---|---|
pnpm dev | relay + dashboard + iOS agent + Android agent |
pnpm dev:lean | pnpm dev with Lean mode on, for both agents (Configuration — Lean mode) |
pnpm dev:pool | relay + iOS agent + mock agents (multi-device testing without real simulators) |
pnpm dev:relay / pnpm dev:ios / pnpm dev:android | a single component |
pnpm seed / pnpm seed:demo | seed the local DB with test / demo data |
pnpm doctor / pnpm reset | run the CLI doctor / reset against your local environment |
pnpm mcp | start the MCP server (AI-agent path) |
pnpm pre-release | build the dashboard and serve it from the relay — mirrors the installed-user experience at http://localhost:4000 |
The dashboard runs on http://localhost:3001 (Vite dev server) and the relay API on http://localhost:4000.
packages/
agent-core/ ← shared DeviceAgent interface
ios-agent/ ← IOSAgent (macOS)
android-agent/ ← AndroidAgent (macOS)
relay/ ← relay server + REST API + SQLite
dashboard/ ← React SPA (served by relay)
cli/ ← tapflow CLI
docs/ ← documentation site (VitePress)
playground/ ← local integration test environment
packages/cli/README.md is what npm renders for the published CLI, and it is README.md with two URL
prefixes absolutised — npm resolves neither repo-relative paths nor blob/main links. Edit both, and
write the cli copy's links absolute. scripts/__tests__/readmeSync.test.mjs compares them and runs in
CI; a block that genuinely has to differ goes between <!-- readme-sync:exempt <reason> --> markers in
both files. Today one does: GitHub renders <video> and npm does not.
Issues are not assigned in advance. Open a draft PR or post your findings on the issue to claim it. A comment saying you intend to work on something does not reserve it.
Check the labels before you start. requires: macOS means the change must be tested on a real simulator or emulator, which requires a Mac with Xcode or the Android SDK. A good first issue without that label only requires Node.js and pnpm.
Issues labeled maintainers need a design decision or touch work in progress, so maintainers handle them. To find something to work on, look at good first issue and help wanted.
tapflow is built with coding agents, and AI-assisted contributions are welcome. We hold all contributions to the same standard, regardless of how the code was written.
Verify your own changes. Maintainer review is for checking your reasoning, not for running your code for the first time. Before opening a PR, test what you changed. Run the test that reproduces the bug, and use a real simulator or emulator if the behavior depends on one.
Claim only what you verified. In your PR description, distinguish between what you tested and what you couldn't test. Don't claim results you haven't measured, whether in the PR summary, changeset, or changelog.
Take only issues you can verify. If an issue has the requires: macOS label, you need a Mac with Xcode or the Android SDK to verify the fix. PRs submitted without testing on the required simulator or emulator will be closed, even if the code looks correct. If you don't have the required environment, you can still contribute your findings from the code or logs in an issue comment.
You are responsible for your PR. Using a coding agent doesn't change that. Answer review questions yourself, in your own words, and be prepared to explain your changes.
Disclose AI use and follow the PR template. State that you used a coding agent and start with .github/pull_request_template.md. Keep the PR description short. Put technical reasoning near the code and release notes in the changeset. The PR description should link to them rather than repeat them.
main is always deployable. Direct commits are not allowed. Start work on a feature/{topic} branch → PR → merge.origin/main (git fetch origin && git checkout -b feature/{topic} origin/main). Your local main may be behind.Backfills: #413 (quoting it inside a code block does not count, same as the marker below). The release-time audit judges each merge on its own, so without that line it keeps reporting the original merge as a gap for the rest of the cycle — and the only way to tell a real gap from a filled one is to match them up by hand.changeset job fails otherwise