Verification is the bottleneck

Verify is Revyl's open-source SDK. A coding agent or script opens an iOS simulator, Android emulator, web browser or macOS workspace from code, acts in plain language or with exact actions, and checks the result.

$ npm install @revyl/verify
check.mts
import { open } from '@revyl/verify';

const session = await open({ platform: 'ios', app: { bundleId: 'com.apple.Preferences' } });
try {
  await session.instruction('Open General, then About');
  await session.validation('The screen shows the operating system version');
  await session.screenshot({ path: '.verify/about.png' });
} finally {
  await session.close();
}

Runtimes

The computers your agent verifies on

One SDK opens a cloud browser, iOS simulator, Android emulator or macOS workspace on Revyl, and your agent drives it from code.

  • iOS simulators

    Open an app by its bundle ID or your own uploaded build, then give it steps in plain language or exact taps, typing and swipes.

  • Android emulators

    The same calls run on a cloud Android emulator, along with the system back button and the home screen.

  • Web browsers

    A cloud browser loads your site from a public HTTPS URL. Web is available to every Revyl organization.

  • macOS workspaces

    Build and test in a Revyl computer: run commands, work with files and processes, and drive the screen with tap and type. Open one with inference and validation() and extract() run on its own model; instruction() doesn't run in a macOS workspace. Revyl computers come with paid Revyl plans.

Workspace inference

Checks on the workspace's own model

Open a macOS workspace with inference, and its own model answers your checks inside the agent's session. Workspace inference comes with paid Revyl plans.

  • Validate and extract in the workspace

    validation() checks a statement against the workspace's screen and extract() reads a value off it. instruction() still doesn't run in a macOS workspace, so act with tap({ target }) instead.

  • Apps inside the workspace use its model

    iOS simulator and web sessions started inside an inference workspace run their steps on its model first, with Revyl's hosted model as the fallback. Pass inference: false to run them on the hosted model.

  • Inference included in the session

    Checks the workspace's model answers carry no separate inference charge; they are part of the session. Steps that go to Revyl's hosted model are AI usage, from the same allowance as session time.

  • Each step names its engine

    Inside an inference workspace, every step result reports which engine answered it, the workspace's model or Revyl's hosted model.

mac-check.mts
import { open } from '@revyl/verify';

const mac = await open({ platform: 'mac', inference: true });
try {
  console.log('Model:', mac.inference);                                        // 'ready', 'unavailable' or 'unknown'
  await mac.validation('The Dock is visible at the bottom of the screen');      // throws VALIDATION_FAILED if not
  const date = await mac.extract('the date at the right end of the menu bar');
  console.log(date.value, date.engine);                                         // e.g. 'Thu Nov 26' 'local'
} finally {
  await mac.close();
}
Drive a macOS workspace from code

How it works

Open, act, check, close

On iOS, Android and Web, a check takes four calls. In a macOS workspace you act with tap() and type(), and an inference workspace answers validation() and extract(). Every run prints a session link: the live viewer while it runs and the report after it closes.

  1. 01open()

    Open a runtime

    Start an iOS simulator, Android emulator or web browser from your script or your coding agent.

  2. 02instruction()

    Act in plain language or exactly

    Describe a step in a sentence and Revyl's agent does it. For exact control, call tap(), type() and swipe() yourself, by a description or by coordinates.

  3. 03validation()

    Check the result

    Say what must be true afterward, or read a value off the screen with extract(). A failed validation throws, so the script or CI job exits non-zero. Pass { soft: true } to record it without throwing.

  4. 04close()

    Close and keep the report

    Close the session when the check is done. The session link then opens the report.

From code

The same check in TypeScript, Python or Go

Each example opens the Settings app on a cloud iOS simulator, runs one instruction and one validation, and closes the session.

Terminal
npm install @revyl/verify
check.mts
import { open } from '@revyl/verify';

const session = await open({ platform: 'ios', app: { bundleId: 'com.apple.Preferences' } });
try {
  await session.instruction('Open General, then About');
  await session.validation('The screen shows the operating system version');
  await session.screenshot({ path: '.verify/about.png' });
} finally {
  await session.close();
}

Questions

Verify SDK questions

Is Verify a test framework?

No. Verify is an SDK, not a test runner, so it has no test, describe or expect. Call it from a script, a coding agent, CI or the test runner you already use.

How does a coding agent set it up?

Give it the setup prompt in the Verify docs. It reads docs.revyl.com/verify.md and writes the iOS Settings example in your project's language. The npm package also ships its docs, with an llms.txt index, for the version you installed.

How does Verify sign in?

On the first interactive run, Verify opens Revyl's browser approval once and saves the login for the Revyl CLI and SDKs to share. In CI it never opens a browser, so set REVYL_API_KEY from the job's secret store.

Can I open my own app?

Yes. Use appId instead of bundleId to open your own uploaded app on iOS or Android. Web targets need a public HTTPS URL, because the cloud browser can't reach localhost.

Which plans include macOS workspaces?

Revyl computers, workspace inference and persistent computers come with paid Revyl plans. Web is available to every organization.

Is Verify open source?

Yes. Verify is licensed under Apache 2.0, and its TypeScript, Python and Go SDKs live in one repository at github.com/RevylAI/verify.

Keep exploring

Give your agent a computer to verify on

Install Verify in TypeScript, Python or Go, then point your coding agent at the docs.