testzeus-hearth

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Basarisiz
  • network request — Outbound network request in .github/ISSUE_TEMPLATE/bug_report.yml
  • rm -rf — Recursive force deletion command in .github/workflows/ci.yml
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Open-source, self-hosted browser and device farm for Kubernetes: one Selenium Grid and Playwright endpoint plus Appium on iOS simulators and Android emulators, with live view and video of every session. A free BrowserStack and Sauce Labs alternative by TestZeus, built in to the Hercules QA agent.

README.md

Hearth by TestZeus

CI
Release
License: AGPL v3
OpenSSF Scorecard
Docs
TestZeus
Hercules
Playwright 1.65

Hearth is an open-source browser and device farm for Kubernetes by TestZeus
(docs, videos), the makers of
Hercules, the open-source QA agent.
You install one Helm chart; from
then on your Playwright, Selenium and Appium tests point at one URL. Hearth starts a fresh browser
for every session, queues requests when the farm is full, grows and shrinks its pools, and keeps a
video of every session. A web UI on the same URL shows sessions live and lets you take control.

It is for teams that run end-to-end tests in CI and want their own grid: no client plugins, no
per-minute bill, and the browsers run next to the apps they test. iOS capacity grows by adding
Macs from the farm's UI with one pasted command.

Hearth sends anonymous usage telemetry (errors, session timing and an hourly farm snapshot, never
keys, names, URLs or artifacts) to help us fix what breaks; --no-telemetry or
telemetry.enabled: false turns it off. See Telemetry. Otherwise the
farm reaches outside your cluster only to pull its images, and a Mac or Linux host downloads
hearth-agent from GitHub releases when it joins.

Status: v0.1.0, the first
release (0.x, so APIs and CRDs may still change before 1.0). Browsers (Playwright, CDP, Selenium),
Android emulators and iOS simulators, the web UI, teams, limits, warm pools and recordings all
work. See the changelog and the roadmap.

Get started in one line

curl -fsSL https://raw.githubusercontent.com/test-zeus-ai/testzeus-hearth/main/install.sh | sh
hearth up local

Hearth, in ninety seconds (1:09)

Hearth, in ninety seconds (1:09). More in Videos.

The first line installs hearth and hearth-agent into ~/.local/bin after checking their
SHA-256 (other ways to install). The second creates a local
kind cluster, installs the chart, and prints a URL and an API key; it
needs Docker, kind, Helm and kubectl (hearth doctor checks). hearth up aws and
hearth up gcp do the same in your cloud account.

import { chromium } from "playwright"; // 1.65.x, to match the farm

const browser = await chromium.connect("ws://localhost:8080/playwright/chromium", {
  headers: { Authorization: `Bearer ${process.env.HEARTH_KEY}` }, // export HEARTH_KEY="$(hearth key)"
});

Or let your coding agent set it up

Paste this into your coding agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, ...) in your
test project's folder. It looks around, asks you a few questions, installs Hearth, runs one of your
tests on it and connects itself to the farm. Your API key never goes through the chat.

Set up Hearth (open-source browser and device farm for Kubernetes, https://test-zeus-ai.github.io/testzeus-hearth) for this
project's end-to-end tests. Guide: https://test-zeus-ai.github.io/testzeus-hearth/guide/coding-agents/

1. Look first, don't ask yet: which test frameworks this project uses (Playwright and its exact
   version, Selenium, Appium), whether docker, kind, helm and kubectl are installed and Docker is
   running, which Kubernetes contexts exist, and whether `hearth` is installed.
2. Install the CLI if it is missing: `curl -fsSL https://raw.githubusercontent.com/test-zeus-ai/testzeus-hearth/main/install.sh | sh` (no sudo),
   then `hearth skills install` and follow the hearth-setup skill. Run `hearth doctor`.
3. Ask me, one question at a time, with your best guess as the default:
   - Where should the farm run: on this machine (`hearth up local`), AWS (`hearth up aws`),
     GCP (`hearth up gcp`), or an existing cluster with Helm (which context)?
   - Which browsers or devices do the tests need?
   Cloud setups cost money: show me what `hearth up aws|gcp --help` says it creates and wait for
   my yes. Show me every command that changes infrastructure before you run it.
4. Never ask me for an API key or token, never print one, and never write one into a file that
   is committed. Use `export HEARTH_KEY="$(hearth key)"`, or tell me what to run myself.
5. Bring the farm up and check it: `hearth status` shows every pool READY.
6. Connect my tests through config only (hearth-connect-tests skill): read HEARTH_URL and
   HEARTH_KEY from the environment, keep local runs working, and match the Playwright client's
   major.minor to the farm. Run one test on the farm and show me its session in the web UI.
7. Register the Hearth MCP server with yourself (`hearth mcp`, see the guide) so you can read
   sessions, errors and videos when tests fail. Tell me which CI secret to add (HEARTH_KEY);
   do not add it yourself.

Agent skills and the MCP server are also a Claude Code plugin:
/plugin marketplace add test-zeus-ai/testzeus-hearth, then /plugin install hearth@testzeus-hearth. See
Coding agents.

Three ways to use it

  • Playwright: chromium.connect, firefox.connect, webkit.connect and connectOverCDP
    from Node, Python, Java and .NET. Every session gets a whole browser in its own pod.
    See Playwright.
  • Selenium: a Grid-compatible W3C endpoint at /wd/hub for Chrome and Firefox, with the key as
    the basic-auth password. See Selenium.
  • Appium: the same /wd/hub serves Android emulators and iOS simulators, from hearth-agent
    on Macs and Linux hosts or emulator pods in the cluster. Apps are uploaded once
    (hearth app upload app.apk) and referenced by hash.
    See Mobile devices.
  • More iOS capacity = another Mac: hearth hosts add mac-2 (or Hosts in the UI) prints one
    line to paste on the Mac; hearth hosts plan mac-2 "iPhone 17@iOS 27.2=3" picks its simulators.
    Drain, remove and reconnect are one command each.
    See Add a Mac.

And the web UI: running sessions with live view and take control, recordings, pools, app
uploads and copy-paste connect snippets. See The web UI.

Why not Selenium Grid, Selenoid, Moon or a hosted farm?

Tool What it is Where Hearth differs Where it beats Hearth
Selenium Grid 4 The standard open-source grid Hearth serves the same /wd/hub, and adds Playwright and Appium on the same URL, with a fresh pod per session Years in production and a large community
Selenoid Selenium browsers in Docker containers Its README marks it unmaintained and points to Moon Runs on plain Docker, no cluster
Moon Aerokube's farm for Kubernetes Moon is commercial and closed-source, free up to four parallel pods. Hearth is open source with no cap Mature, and also runs Cypress and Puppeteer
BrowserStack, Sauce Labs Hosted farms No bill per minute, and the browsers run beside your app Real phones, old browser versions, and nobody on your team runs the grid

For QA agents, and Hercules

A QA agent tests your app the way a tester would: it reads a case, drives a browser or a phone,
and reports what passed and why. Hearth gives it a clean browser or device for every run, as many
in parallel as your cluster holds, inside your network, with a video of every session, names to
find them again, live view and take control for a person in the loop, and hearth mcp to read
failures. See QA agents and Hercules.

Hercules, the open-source QA agent by TestZeus,
has Hearth built in as its first cloud. Run a case, then run the passed run on your farm in any
engine:

echo "$HEARTH_KEY" | hercules cloud connect hearth --url http://localhost:8080
hercules cloud run <run-id> --cloud hearth --browser firefox

Each run is a session named after the case, with live view and a video. A ready-made case is in
examples/hercules.

Videos

Short videos with a spoken walkthrough and subtitles, recorded on a real farm. Click a picture to
play one (all of them in one place); Videos has the steps to do the same on your machine.

Hearth, in ninety seconds (1:09)
Hearth, in ninety seconds (1:09)

How a session flows (1:19)
How a session flows (1:19)

Run your Playwright tests on Hearth (1:27)
Run your Playwright tests on Hearth (1:27)

Watch a session live, and take control (1:07)
Watch a session live, and take control (1:07)

Selenium on the same URL (0:45)
Selenium on the same URL (0:45)

iOS simulators and Android emulators (1:06)
iOS simulators and Android emulators (1:06)

Pools, queues and team limits (1:12)
Pools, queues and team limits (1:12)

Let your coding agent use the farm (0:56)
Let your coding agent use the farm (0:56)

Hercules on Hearth (1:10)
Hercules on Hearth (1:10)

Quick start, step by step

hearth up local does steps 1 to 3 for a laptop. On a real cluster:

1. Install the CRDs and the chart.

kubectl create namespace hearth
helm show crds oci://ghcr.io/test-zeus-ai/charts/hearth | kubectl apply --server-side -f -
helm install hearth oci://ghcr.io/test-zeus-ai/charts/hearth -n hearth

You get two gateway replicas, the operator, a bundled Valkey and S3 store, five browser pools and a
default team. Browser pods take a minute to pull on first install.

2. Get the key and reach the gateway.

export HEARTH_KEY=$(kubectl -n hearth get secret hearth-key-default -o jsonpath='{.data.key}' | base64 -d)
kubectl -n hearth port-forward svc/hearth-gateway 8080:80 &
export HEARTH_URL=http://localhost:8080

For CI, expose the gateway with gateway.ingress.* or a LoadBalancer; see
Getting started.

3. Check the farm.

hearth status        # or: kubectl -n hearth get browserpools

You should see your team with 0 running sessions, and every pool with READY browsers.

4. Run a session.

cd examples/playwright-node && npm install && npx playwright test --project chromium

5. Watch it. Open $HEARTH_URL in a browser, sign in with the key, and open the session: its
recording is there, and running sessions show live.

Documentation

Everything is at test-zeus-ai.github.io/testzeus-hearth, also readable in docs/guide:

Guide
Install the CLI, Getting started The installer, a laptop with hearth up local, then a real cluster with Helm
QA agents and Hercules, Videos What a QA agent gets from Hearth, Hercules on your farm, and narrated videos of every feature
Coding agents hearth mcp for Claude Code, Codex, Cursor, VS Code, Gemini CLI; skills and the plugin
Architecture Gateway, operator, browser pods, agents, and how a session flows
Playwright, Selenium, Mobile devices Connecting your tests
Add a Mac, Device agents on hosts Macs and Linux hosts with simulators and emulators: one pasted line, then choose devices
Pools and scaling, Teams and keys Sizing, queueing, limits
Artifacts, Configuration Storage and every Helm value
Security, Operations, Troubleshooting Running it for real
HTTP API, Development, Testing Reference

Runnable clients for Playwright (Node, Python, Java, .NET), Selenium (Python, Java, Node) and
Appium (Python, WebdriverIO) are in examples/, with a
Hercules example for QA agents.

Repository layout

Path What
crates/hearth-gateway The one public endpoint: auth, queue, protocol proxies, live view, API, UI
crates/hearth-operator Keeps pools sized to demand; publishes pools, teams, keys and agent tokens
crates/hearth-node Runs in each browser pod: virtual screen, browser server, recording
crates/hearth-agent Runs next to devices: Android emulators, iOS simulators, Appium, reset
crates/hearth-core Shared model, Redis state (Lua scripts), WebSocket proxy
crates/hearth-cli The hearth command: up, down, status, key, app upload, mcp, ...
ui The web UI; see ui/README.md
charts/hearth The Helm chart
e2e, examples End-to-end tests and client examples
docs, site The guides and the docs site
skills, .claude-plugin Agent skills and the Claude Code plugin marketplace
install.sh The one-line installer (served at https://raw.githubusercontent.com/test-zeus-ai/testzeus-hearth/main/install.sh)

Contributing

Bug reports, docs fixes and features are welcome. See CONTRIBUTING.md,
Development and, for coding agents, AGENTS.md. make help
lists the build, test and lint commands. Questions go to Discussions; report security
issues privately: SECURITY.md. This project follows the
Contributor Covenant and is run as described in GOVERNANCE.md.

Part of TestZeus

Hearth is made by TestZeus, the team behind
Hercules (website), the open-source QA agent that tests web apps,
APIs and mobile apps from plain-language cases and runs them on Hearth, BrowserStack, Sauce Labs
or TestMu AI. Hearth is Hercules's free, self-hosted farm.

License

AGPL-3.0. Ember, the fire spirit in the logo, keeps the browsers burning.

Yorumlar (0)

Sonuc bulunamadi