Skip to content
RevylAIPublic

About

Verify

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

Verify

Terminal output from one Verify script that opens a Mac computer, an Android emulator, an iOS simulator and a cloud browser. Each device passes one instruction and one validation, then the script clicks into TextEdit on the Mac by description and types the results. Below the terminal are the screens the run ended on: TextEdit on the Mac listing the three passed checks, the Verify page of revyl.com in the cloud browser, the Android version screen on Android and the About screen on iOS

Verify runs end-to-end checks in a cloud browser, iOS simulator, or Android emulator on Revyl. You write what the agent should do and what must be true afterward, in plain sentences, and call it from a script, a coding agent, CI, or the test runner you already use. When you know exactly what to press, you can tap, type and swipe yourself instead. Verify also opens Mac computers for commands, files, screenshots, and clicks and keys on the screen.

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();
}

You maintain sentences instead of selectors and coordinates that break when a screen changes, and every run prints a session link that keeps the report and available recording after the session closes.

One release, three languages. TypeScript @revyl/verify 0.9.0 = Python revyl-verify 0.7.0 = Go github.com/RevylAI/verify/go v0.8.0: the same release with the same features. Each language keeps its own version line, so "since" notes below name all three.

Quick start

Paste this prompt into your coding agent, and it sets up Verify in the project's language:

Set up Verify in this project.

Read https://docs.revyl.com/verify.md and follow it. It's the current Revyl guide for this, so prefer it over anything you remember about Revyl.

Use the SDK for this project's language: @revyl/verify on Node.js 22.18 or later for Node.js or TypeScript, revyl-verify on Python 3.10 or later for Python (install it with pip or uv), or the github.com/RevylAI/verify/go module for Go. Write the iOS Settings example in that language: open the com.apple.Preferences bundle, run one instruction, and run one validation that checks the operating system version. Ask before starting a paid cloud session, then run the example.

You're done when the example has opened iOS Settings, the operating system version validation has passed, and the session has closed.

Ask me before anything that needs my login or approval.

Or set it up yourself:

npx @revyl/verify init --platform ios

init adds Verify to your project, writes verify.config.ts and an example script for the platform you pass (web, ios, android or mac; in a terminal, leave --platform out and it asks), adds .verify/ and node_modules/ to .gitignore, signs you in through the browser on the first interactive run, and prints the command that runs the example. With no app id, the iOS and Android examples open the built-in Settings app, so they run on a new account before you upload anything. A web check needs only a URL, open({ platform: 'web', app: { url: 'https://www.revyl.com/pricing' } }) or init --platform web --url https://…: Verify finds or creates one Revyl web app per origin and prints its id, which app: { appId } pins (web). To skip the config, run npm install @revyl/verify and save the example above as verify/check.mts, then run node verify/check.mts. Getting started covers sign-in, your own app, and CI. To read a finished session's result after your script exited, run npx @revyl/verify report <session-id>, or --json for JSON. To use another Revyl environment, set REVYL_BACKEND_URL and REVYL_APP_URL; npx @revyl/verify whoami prints the API it asks (configuration).

init also sets up your coding agent; see below.

For finished projects, see examples/: a web store, mobile Settings, a Mac workspace, a small agent platform that runs web and iOS side by side, and your own model (with Python and Go versions).

Set up your coding agent

npx @revyl/verify init gives your coding agent the revyl-verify skill, which teaches it when and how to check a web page, an iOS or Android app, or a Mac with Verify, so that "check that the pricing page loads" ends in a script that runs on a real cloud browser. It writes the skill to .agents/skills/ and .claude/skills/, where Claude Code, Cursor, Codex, Capy and other agents find skills, and a short Verify section to AGENTS.md, or to CLAUDE.md when the repository has that and no AGENTS.md. Running it again changes nothing; --no-agents-md and --no-skill skip either part, and --no-config sets up only the agent. In a Python or Go project, see Python or Go.

Or install the skill as a plugin, which keeps it out of your repository and up to date:

  • Claude Code: /plugin marketplace add RevylAI/verify, then /plugin install revyl-verify@revyl-verify.
  • Cursor: in Customize, add a plugin From GitHub Repository with https://github.com/RevylAI/verify.
  • Capy: under Settings → MCP & plugins, choose Add → From GitHub repository with https://github.com/RevylAI/verify.

The plugin holds the skill only: Verify runs in your scripts, so it needs no MCP server.

Exact actions

Tap, double-tap, long-press, drag, type, swipe and press keys yourself, by a description Revyl locates on screen or by coordinates, in the same script as your steps:

await session.type({ target: 'Email field' }, 'demo@example.com');   // Revyl finds the element you describe
await session.pressKey('enter');
await session.swipe('up');                                            // scrolls the content down
await session.tap({ x: 196, y: 640 });                                // or a point in screenshot pixels
await session.longPress({ target: 'First message row' });             // press and hold, 1.5 s by default
await session.drag({ target: 'Third item handle' }, { target: 'First item' });  // press, move, release
await session.instruction('Accept the terms if they are shown');      // the agent where it's fuzzy
await session.validation('The welcome screen is shown');

Typing: one rule on every platform. To type, call type({ target: 'Email field' }, text): it taps the field you describe and types into it, replacing its text unless you pass { clear: false }. It works the same on Web, iOS, Android and a Mac computer. typeFocused(text) types wherever focus already is, without tapping, for example after tap({ target }), on every platform (iOS and Android since 0.8.1). When no field has focus it throws ACTION_FAILED with reason no_focused_input and types nothing. A device that can't tell which field has focus, such as a real iPhone, throws NOT_AVAILABLE_ON_PLATFORM with reason focused_input_unavailable; use type({ target }, text) there.

doubleTap, typeFocused, back, goHome, openUrl, launchApp, locate and screenSize round them out; which call works where shows the platform limits. Early access. Since TypeScript (@revyl/verify) 0.4.0, Python (revyl-verify) 0.2.0 and Go v0.3.0. doubleTap, longPress, drag, typeFocused, goHome, and Web keys and modifiers in pressKey, are new in TypeScript 0.5.0, Python 0.3.0 and Go v0.4.0. On a Mac computer's screen, tap (by point or by description), screenSize, typeFocused and pressKey are new in TypeScript 0.6.0, Python 0.4.0 and Go v0.5.0, and type in TypeScript 0.7.1, Python 0.5.1 and Go v0.6.1; typeFocused on iOS and Android is new in TypeScript 0.8.1, Python 0.6.1 and Go v0.7.1. The Python and Go READMEs show them with each language's names. The web and mobile guides have runnable scripts, and api.md lists every call.

Your own model

Steps run on Revyl's agent unless you pass a model. Then the agent loop runs on your machine with your key, and Revyl provides the device and finds the elements your model names:

const session = await open('ios', { model: 'anthropic/claude-sonnet-5-5' });       // key from ANTHROPIC_API_KEY
await session.instruction('Open General, then About');
await session.instruction('Open Privacy', { model: 'openai/gpt-5.5' });              // or per step

await open('ios', { model: { id: 'qwen-3.8-27b', baseURL: 'https://api.cerebras.ai/v1', apiKey: process.env.CEREBRAS_API_KEY } });

Since TypeScript (@revyl/verify) 0.4.0, Python (revyl-verify) 0.2.0 and Go v0.3.0; the Python and Go READMEs show them with each language's names. Built in: anthropic, openai, google, openrouter, groq, cerebras, xai and ollama; anything OpenAI-compatible works through baseURL. Early access; Use your own model covers the providers, picking a model, what Revyl still sees, limits and troubleshooting.

Packages

Package Install Status
@revyl/verify npm install @revyl/verify TypeScript SDK and the verify CLI (init, login, logout, whoami, report). Published on npm, Node.js 22.18 or later.
revyl-verify (npm) npm install revyl-verify Alias of @revyl/verify at the same version.
Go module go get github.com/RevylAI/verify/go@v0.8.0 Published as the go/v0.8.0 tag, Go 1.26.9 or later. Calls return errors instead of throwing.
revyl-verify (PyPI) pip install revyl-verify or uv add revyl-verify Python SDK, published on PyPI. Python 3.10 or later, sync and asyncio APIs, no CLI; see the Python guide.

Platforms

Platform Instructions / validations Exact actions Commands / files / processes PNG screenshot
Web Yes Yes — Yes
iOS simulator Yes Yes — Yes
Android emulator Yes Yes — Yes
Mac computer Validations and extract on a Mac opened with inference: true; no instructions Screen: tap, type, typeFocused, pressKey Yes Yes

Which call works where

Own model is a Web, iOS or Android session opened with model or agent; inside a cloud Mac is an iOS or Web session that computer.open(target) starts on a Mac. "Same" means as on that session's platform.

Call Web iOS simulator Android Cloud Mac Own model Inside a cloud Mac
tap({ x, y }), tap({ target }), screenSize Yes Yes Yes Yes Same Same
locate Yes Yes Yes No, use tap({ target }), which returns the point it clicked, or read the point off screenshot() Same Same
type({ target }, text), the way to type Yes Yes Yes Yes: clicks the field, selects its text unless { clear: false }, then types Same Same
doubleTap, longPress, swipe, drag Yes Yes Yes No Same Same
pressKey(key, { modifiers }) Yes: 'enter', 'backspace', 'tab', 'escape', arrows and more, with modifiers 'enter' and 'backspace' only 'enter' and 'backspace' only Yes: the Web keys and modifiers, where 'meta' is Command Same Same
typeFocused(text, { clear }) Yes, types into the focused field; ACTION_FAILED (no_focused_input) when none has focus Yes since 0.8.1, the same; a real iPhone throws NOT_AVAILABLE_ON_PLATFORM (focused_input_unavailable) Yes since 0.8.1, the same Yes, with { clear: false } Same Same
back() Yes, browser history No, tap the on-screen back control Yes, the system back button No Same Same
goHome() No, use openUrl or navigate Yes, the home screen Yes, the home screen No Same Same
openUrl(url) Yes, loads an http(s) URL in the tab Yes, a URL or deep link Yes, a URL or deep link No Same Same
launchApp(bundleId) No, use openUrl or navigate Yes Yes No, use exec(['open', '-a', 'Safari']) Same Yes on iOS, such as launchApp('com.apple.Preferences')
Target app: { bundleId } and device: { model, osVersion } No, Web takes app: { url } Yes Yes No Same iOS: yes, or app: { appId, buildId }. Web takes app: { appId, buildId }. Android doesn't run inside a Mac
navigate(url) Yes No, use openUrl No, use openUrl No Same Web: yes, and http://localhost:<port> reaches a service already listening on the Mac
cdp(), for Playwright and Puppeteer Yes, see CDP No No No Same Not verified yet
instruction Yes Yes Yes No, use tap({ target }), type({ target }, text) and exec() Yes, on your model Yes; on a Mac opened with inference: true, a single tap runs on the Mac's model first
validation Yes Yes Yes Yes, on a Mac opened with inference: true, answered by its own model; see the guide Yes, on your model Yes; on a Mac opened with inference: true, on the Mac's model first
extract Yes Yes Yes Yes, on a Mac opened with inference: true No, throws INVALID_ARGUMENT: read screenshot() with your model Yes, on Revyl's hosted model
open(target, { model }), your own model Yes Yes Yes No, NOT_AVAILABLE_ON_PLATFORM Yes No, computer.open() takes only a target
open(target, { profile }), a session profile Yes Yes Yes Yes Same No, computer.open() takes only a target
screenshot() Yes Yes Yes Yes Same Same
exec, files, processes No, open a Mac computer No, open a Mac computer No, open a Mac computer Yes No No; call them on the Mac

A persistent computer gets the Mac's model only when openPersistent() creates it: inference is fixed then and kept on every later open.

Coordinates. Prefer a description, such as tap({ target: 'Sign in button' }): Revyl finds the element on the current screen, and you never handle coordinates. Otherwise a point is { x, y } in screenshot pixels on every platform: whole numbers from the top-left corner of the image screenshot() returns. So a position you read off a screenshot goes to tap(), type(), swipe() and every other exact action unchanged. screenSize() returns the screenshot's width and height, and locate() and the points tap(), doubleTap(), longPress() and type() return use the same pixels. A point outside the screenshot is refused with INVALID_ARGUMENT before any action is sent, and the message names the valid range. On iOS, Verify converts the pixels to the screen's points for you. On Web they equal CSS pixels at the default device scale factor of 1, and you still pass screenshot pixels at any other. This holds from TypeScript 0.4.1, Python 0.2.1 and Go v0.3.1; earlier versions took iOS points. On a Mac computer a point is in screenshot pixels too, and tap({ target }) returns the point it clicked in the same pixels. Verify refuses a negative or fractional point before sending it, and Revyl refuses one past the screen's edge without clicking; both throw INVALID_ARGUMENT naming the valid range.

A call a platform doesn't support throws NOT_AVAILABLE_ON_PLATFORM, and its message names the alternative.

Web is available to every organization. Mac computers are available to organizations on a current paid Revyl plan and have a server-bounded lifetime; see computers. To get a Mac computer's screen recording, call await computer.close() and then await computer.recording() on the same object, in the same process: it waits until Revyl has saved the video, usually a few seconds, and returns { url, durationSeconds?, startedAt? }, or null if none was saved within timeoutMs (15 minutes by default; a check under way at that point can take up to 30 seconds more). attach() can't reopen a closed computer, so fetch the recording before your script exits.

Documentation

Three guides cover the Mac's own model and persistence: checks on a Mac's own model, testing an iOS or Web app inside an inference Mac, where its steps run on the Mac's model with no inference charge, and keeping a Mac between runs with persistent computers and snapshots. Runnable examples are in examples/mac-inference, python/examples/mac_inference.py and go/examples/macinference.

The documentation covers the API, configuration, web, mobile, computers, CI, your own model, errors and troubleshooting, coding agents, and live end-to-end results. The npm package ships these pages in node_modules/@revyl/verify/docs/, with an llms.txt index, so a coding agent can read the docs for the version you installed. The Revyl docs site has an overview at docs.revyl.com/verify.

Step-by-step guides build one runnable script each, in TypeScript with Python and Go: check an iOS change from your coding agent, one script on iOS, Android and the web, start signed in with a session profile, Playwright over CDP with Verify's validations and a cloud Mac your agent can drive.

Status

Verify is at 0.x, so APIs can still change between minor releases; the changelog records each release. See Contributing and Releasing to work on Verify.

License

Apache 2.0.

About

Verify

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages