Videos¶
Short videos of Hearth, with a spoken walkthrough and subtitles. They were recorded on a real
farm (hearth up local on a Mac) and show real commands and real output. Click a picture, or the player under it on GitHub, to play the video. The steps under each one do the same on your machine. The MP4 files, their pictures and
.srt subtitles are in
docs/assets/videos.
The demos use a team called checkout with its own key; any team works. To make one:
hearth keys create checkout (see Teams and keys).
Explainers¶
| # | Video | Length |
|---|---|---|
| 1 | Hearth, in ninety seconds | 1:09 |
| 2 | How a session flows | 1:19 |
Hearth, in ninety seconds¶
https://github.com/user-attachments/assets/55674aaf-7c6b-4c4e-87a1-d5e9628ced14
What Hearth is and the problem it solves: one Helm chart, one URL for Playwright, Selenium and Appium, a fresh browser or device for every session, a fair queue, pools that grow and shrink, a video of every session, and agents that use the farm. To try it: Getting started.
How a session flows¶
https://github.com/user-attachments/assets/18e950bc-f2df-45e2-9003-392bc1c90dc3
The path of one session: the gateway checks the key and reads what the client asks for, picks a
pool (or refuses a Playwright version the farm does not run), hands out a warm browser or queues
the request while the operator starts another pod, and, at the end, stores the video, frees the
team's slot and deletes the pod. Devices take the same path through hearth-agent. In depth:
Architecture.
Features¶
| # | Video | Length |
|---|---|---|
| 1 | Run your Playwright tests on Hearth | 1:27 |
| 2 | Watch a session live, and take control | 1:07 |
| 3 | Selenium on the same URL | 0:45 |
| 4 | iOS simulators and Android emulators | 1:06 |
| 5 | Pools, queues and team limits | 1:12 |
| 6 | Let your coding agent use the farm | 0:56 |
| 7 | Hercules on Hearth | 1:10 |
1. Run your Playwright tests on Hearth¶
https://github.com/user-attachments/assets/e286e081-0458-484c-8507-7e1933887647
- Check the farm:
hearth statuslists each pool, its engine and Playwright version, and how many browsers are ready. - Put your team's key in the environment, never in a file:
export HEARTH_KEY="$(hearth key checkout)". - In
examples/playwright-node, each Playwright project connects to the farm with the key as a bearer header, names its session withx-hearth-name, and setsheadless: falseso the session has a video and a live view. - Match the client to the farm:
npx playwright --versionmust be 1.65.x for the default pools. - Run
npx playwright test: Chromium, Firefox and WebKit, each test in its own fresh browser. - Open the farm's address, sign in with the key, and open a session to see its client, duration and video.
- In CI, find a test's sessions by name:
GET /api/sessions?name=<name>(HTTP API).
2. Watch a session live, and take control¶
https://github.com/user-attachments/assets/b014706a-6a9f-401c-8ab5-7304b0b0709a
- Start a test that waits for a person: it opens a sign-in page, fills in the user name, and waits for the next page (as with a one-time code only a person has).
- In Sessions, the running session is at the top, marked Live, with a moving thumbnail. Open it.
- Click Take control. Your mouse and keyboard now go to the browser in its pod: type the password and click Login.
- Press Escape to give control back. The test carries on in the same browser.
- When the session ends, its recording plays on the same page; Download the recording saves it.
- For a session that is stuck for good, Stop session, then Yes, stop: the test gets an error at once instead of waiting for a timeout. See The web UI.
3. Selenium on the same URL¶
https://github.com/user-attachments/assets/3d55364b-c482-4776-931b-6982ad65b285
- Point the remote WebDriver at
$HEARTH_URL/wd/hub, with the key as the basic-auth password; the user name is ignored. hearth:optionsnames the session ({"name": "..."}) or picks a pool ({"pool": "selenium-chrome"}).- In
examples/selenium-python, runpytest -q: Chrome and Firefox, each in its own pod, with the same queue and team limits. - In the UI, the sessions show the WebDriver protocol, their names and a video. See Selenium.
4. iOS simulators and Android emulators¶
https://github.com/user-attachments/assets/39e2d16b-dd1b-488d-871c-5e5da9009704
- Device pools come from
hearth-agenton a Mac or Linux host (Add a Mac), or from emulator pods.hearth statusand the Pools page show each one's device, OS version and ready count. - Upload the app once:
hearth app upload HearthDemo.app.zipprints itshearth:app:<sha256>reference. Links to apps elsewhere are refused. - Start an Appium session at
/wd/hubwithplatformNameiOS,appium:deviceNameiPhone 17,appium:platformVersion27.2,appium:appset to the reference, andhearth:options.name. - Open the session: the live view is the simulator's screen; Take control taps, swipes, types and presses Home.
- When it ends, the device is reset for the next session, and
video.mp4anddevice.logare kept. See Mobile devices.
5. Pools, queues and team limits¶
https://github.com/user-attachments/assets/1e80908a-4cde-4ee7-809f-ab8868e2b94d
- A pool keeps
warmbrowsers ready and grows tomaxSessionswhile there is work. - Start four sessions: two take the warm browsers, and the operator starts pods for the other two within seconds.
- With the team at its limit (
maxSessions: 4on theTeam), a fifth is refused at once:429 team_limit, "your team is already running its limit of 4 sessions". - When a pool itself is full, requests wait in a first-come, first-served queue; after
queueTimeoutSecondsthe answer is429 pool_busywithRetry-After. - Idle browsers above
warmgo afterscaleDownDelaySeconds.BrowserPoolandTeamare set in the chart's values. See Pools and scaling and Teams and keys.
6. Let your coding agent use the farm¶
https://github.com/user-attachments/assets/d5956ff0-537c-4940-8549-a6da901008ac
- Register the MCP server:
claude mcp add --env HEARTH_URL=http://localhost:8080 --transport stdio hearth -- hearth mcp. The key comes from the environment, never from the chat. - Ask in plain words, for example "Which of our sessions on the farm failed today, and why? One line each, with its link." The agent lists failed sessions, reads each error and links to each session's page.
hearth skills install(or--project) adds thehearth-setup,hearth-connect-tests,hearth-debug-sessionandhearth-devicesskills. See Coding agents.
7. Hercules on Hearth¶
https://github.com/user-attachments/assets/692a9287-9ca3-4f2e-acc3-04e9f29134c6
- Connect Hercules once:
echo "$HEARTH_KEY" | hercules cloud connect hearth --url $HEARTH_URL, thenhercules cloud check hearth. - Run the case from
examples/hercules:hercules run login.feature --base-url https://www.saucedemo.com. - Run the passed run on the farm:
hercules cloud run <run-id> --cloud hearth. It prints the session's link; the session is named after the case. - For CI:
hercules cloud bundle <run-id> --cloud hearth --out login-hearth.zip, thenpytest testswithHEARTH_URLandHEARTH_KEYset. See QA agents and Hercules.








