Skip to content
wobsorianoPublic

About

A live iOS simulator and Android emulator panel for Herdr

Topics

Resources

Stars

41 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Herdr Sim

Your iOS simulator and Android emulator, live inside Herdr, next to your code and terminals.

Herdr Sim: a test file, its passing run, and the iPhone simulator showing the result

Pick any simulator or emulator on your Mac and use it right in Herdr. Run your mobile tests and watch them tap through the app while the results print beside it.

What you can do

  • See the device live. The screen updates about 30 times a second.
  • Use it in place. Click to tap, drag to swipe, scroll with your mouse or trackpad, and type with your keyboard. The buttons above the screen press Home, Lock and the volume keys, rotate the device, and on iOS show or hide the on-screen keyboard.
  • Switch devices. The picker lists every iOS simulator and Android emulator on your Mac, with the running ones marked green. Pick one that's off and it starts. Android emulators run without a window of their own.
  • Show two at once. Each panel and pane has its own device, so an iPhone and an Android emulator can run side by side. A new pane starts on the device you picked last.
  • Put it where you want it. Open it from a Simulator button in the tab bar, next to Files and Changes, or as a pane in any layout.
  • Fix stuck taps. On Xcode 27, taps on a simulator sometimes stop working. Repair input in the picker fixes them. It restarts SpringBoard, so open apps close.

Install

Ask your Herdr agent to "add the layout at github.com/wobsoriano/herdr-sim".

Or by hand:

git clone https://github.com/wobsoriano/herdr-sim
cd herdr-sim
cp -R mods/herdr-sim mods/herdr-sim-screen mods/tabs-herdr-sim ~/.config/herdr-app/mods/
cp layouts/herdr-sim.json ~/.config/herdr-app/layouts/
herdr-app do layout.switch --name herdr-sim

Then add the two shortcuts in keys.json to ~/.config/herdr-app/keys.json. In Herdr, the layout and the mod are both named herdr-sim.

If you only want the pane, copy mods/herdr-sim and mods/herdr-sim-screen and skip the rest.

You need macOS, Xcode with at least one simulator, and Node. For Android you also need the Android SDK and an emulator image built for your Mac's chip.

Use it

From the tab bar

Switch to the herdr-sim layout. Click Simulator next to Files and Changes, or press ⌘⇧S. Click it again to close the panel. Each space remembers whether the panel was open.

As a pane

In any other layout, press ⌘⇧S, or run:

herdr-app do pane.split --direction right --mod herdr-sim

Close it like any other pane.

What it runs on your Mac

Herdr Sim sends nothing over the internet itself.

  • For iOS it runs Xcode's simulator tools and serve-sim, which downloads from npm the first time.
  • For Android it runs adb and the emulator from your Android SDK, plus a small helper that comes with the mod.
  • It saves the latest frames of the screen as image files in its own folder, because Herdr shows pictures from files.

Limits

  • It works on macOS only. It's tested with Herdr 0.1.13, Xcode 27 and Android emulator 37.2.
  • The picture is about 0.2 seconds behind the device, because Herdr takes that long to show a changed image. Taps and typing reach the device right away.
  • Showing an iPhone takes about 175 MB of memory.
  • The Simulator button lives in a copy of Herdr 0.1.13's tab bar. If a Herdr update changes the tab bar, this copy keeps the old one until it's updated here.

License

MIT, see LICENSE. The tab bar in mods/tabs-herdr-sim is adapted from Herdr's own and keeps Herdr's Apache-2.0 license, in mods/tabs-herdr-sim/LICENSE. The icons are from Lucide under the ISC license, except the Android icon.

About

A live iOS simulator and Android emulator panel for Herdr

Topics

Resources

Stars

41 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages