<!-- KeepSnappy docs for keepsnappy CLI 0.1.0-alpha.35 -->

# What KeepSnappy does

> KeepSnappy measures your React Native app in CI and tells you whether a pull request made it slower.

KeepSnappy tells you whether a pull request made your React Native app slower, before you merge it. It measures iOS and Android apps. This page says what it measures, what a result looks like, and which setup page is yours.

## What it measures

KeepSnappy runs your own end-to-end tests on a [measuring build](https://keepsnappy.com/docs/glossary.md#measuring-build) of your app. That is your app with the KeepSnappy SDK in it. A test that KeepSnappy repeats is a [journey](https://keepsnappy.com/docs/glossary.md#journey).

The measuring build records each screen, tap and scroll your journeys reach. Each one is a [place](https://keepsnappy.com/docs/glossary.md#place). For each place it records times, such as how long a screen took to show or a tap took to respond. It also records how long React spent rendering each component, and how much memory the app kept.

In CI, every push to a pull request or to your [comparison branch](https://keepsnappy.com/docs/glossary.md#main) (usually `main`, and these pages write `main` for it) starts a [session](https://keepsnappy.com/docs/glossary.md#session). A session builds your app once and runs each journey 5 times. With 3 journeys that is 15 runs, which the result counts as `15/15 runs used`. KeepSnappy compares the pull request's session with the 3 latest sessions of `main` on the same [phone model](https://keepsnappy.com/docs/glossary.md#phone-model).

## What a result looks like

Each journey gets one result for each phone model: **Worse**, **Slightly worse**, **No change**, **Better** or **Can’t tell**. A pull request that runs before `main` has any sessions on that phone model reads **No main to compare**.

With **Worse** or **Slightly worse**, the result says how many places got slower, and by how many milliseconds. On the dashboard, each place shows its value on `main` and on your branch.

You see the result in the pull request's KeepSnappy check, on the dashboard, and in Slack if your team connects a channel. [Your pull request's result](https://keepsnappy.com/docs/pull-request-result.md) says what each result means and what to do about it.

A result covers only the journeys that ran. **No change** doesn't prove the whole app is fast, because a screen no journey visits is not measured. A place can also be over its own budget when it didn't get slower ([Over budget](https://keepsnappy.com/docs/over-budget.md)).

## What your app needs

<span id="who-it-fits"></span><span id="what-you-need"></span>KeepSnappy needs:

- An Expo app, or a bare React Native app with the `expo` package and Expo modules.
- End-to-end tests in [Maestro](https://keepsnappy.com/docs/test-tools/maestro.md), [Appium](https://keepsnappy.com/docs/test-tools/appium.md) or [e2e](https://keepsnappy.com/docs/test-tools/e2e.md) that run in CI, or a first one you add (below).
- Node.js 22.12 or newer, for the `keepsnappy` command.
- For iOS, a macOS [CI machine](https://keepsnappy.com/docs/glossary.md#ci-machine), such as GitHub Actions `macos-15`.
- For Android, an emulator that your CI job starts, or an Android phone on a cable ([Android](https://keepsnappy.com/docs/android.md)).

The setup command, [`keepsnappy init`](https://keepsnappy.com/docs/glossary.md#init), doesn't set up Detox. You can still measure Detox tests with the `command` setting ([Any other test command](https://keepsnappy.com/docs/journeys.md#any-other-test-command)).

<span id="react-native-and-expo-versions"></span>KeepSnappy is tested with Expo SDK 57 and React Native 0.86. If yours is older, try it on one journey first. It works on the New Architecture and on the old one.

No end-to-end tests yet? KeepSnappy measures any journey your tests walk, so one test is enough to start. A first [Maestro flow](https://keepsnappy.com/docs/journeys.md#maestro-flows) is a few lines. Any other framework works through the [command setting](https://keepsnappy.com/docs/journeys.md#any-other-test-command). A coding agent can write that first test for you, then set KeepSnappy up around it with KeepSnappy's [setup instructions for coding agents](https://keepsnappy.com/docs/coding-agent.md).

KeepSnappy measures test runs, on test devices with test accounts. It doesn't watch your production users. It doesn't build your app either. On iOS, your own workflow builds and installs it. On Android, `keepsnappy run --app` installs an APK you built.

## Choose your setup

<span id="plan"></span>KeepSnappy is in a pilot, by invite. If you don't have an account yet, start with [Get access](https://keepsnappy.com/docs/access.md). Then follow [Getting started](https://keepsnappy.com/docs/getting-started.md). It takes an iOS app from no KeepSnappy to a first result on a pull request in four steps. To have Claude Code or Codex do the steps, see [Set up with a coding agent](https://keepsnappy.com/docs/coding-agent.md).

Two choices decide your setup: your platform, and where your tests run.

- A simulator or emulator in your own CI. For iOS, see [Getting started](https://keepsnappy.com/docs/getting-started.md). For Android, see [Android](https://keepsnappy.com/docs/android.md#android-emulator). `keepsnappy init` can set up both the iOS and the Android job.
- A phone on a cable. For iOS, see [An iPhone on a cable](https://keepsnappy.com/docs/on-your-mac.md#an-iphone-on-a-cable). For Android, see [Android](https://keepsnappy.com/docs/android.md#android-usb-phone).
- Real phones on BrowserStack, iOS and Android. See [BrowserStack](https://keepsnappy.com/docs/browserstack.md).

During the pilot, a **Worse** does not fail your CI ([why](https://keepsnappy.com/docs/ci.md#required-or-advisory-checks)). Slack and the dashboard show it with `Would block the merge; advisory during the pilot, CI passes`.

If your setup already runs and fails, see [Troubleshooting](https://keepsnappy.com/docs/troubleshooting.md).

## Time, cost and your data

<span id="what-one-session-costs-in-runner-time"></span><span id="your-data"></span>Each session uses CI minutes. [Time and cost](https://keepsnappy.com/docs/cost.md) shows how to estimate them. [Your data](https://keepsnappy.com/docs/data.md) lists what KeepSnappy receives and how long it keeps it.

To look around first, open [the dashboard with demo data](https://keepsnappy.com/?demo). It needs no account.

All KeepSnappy docs for agents: https://keepsnappy.com/llms.txt
