Axonpack

Overview

Over-the-air PR previews for Expo apps. Publish a JS bundle per branch to your own S3-compatible bucket and switch to it in the build you already have.

This package lets QA try a branch or pull request of your Expo app over the air. You publish the branch's JS bundle, called a preview, to your own S3-compatible bucket. In the app, QA opens a list, picks a preview, and the app restarts into it without a new native build. Going back to the default bundle is one tap.

Your store releases and expo-updates keep working as they do.

npx expo install @axonpack/preview expo-file-system
v0.4.0Released 9 November 2026What changed →
import { PreviewList, PreviewProvider } from '@axonpack/preview';

export default function App() {
  return (
    <PreviewProvider
      config={{ enabled: true, s3Config: { url: process.env.EXPO_PUBLIC_PREVIEW_S3_URL as string } }}
    >
      <PreviewList style={{ flex: 1 }} />
    </PreviewProvider>
  );
}
npx preview publish   # builds this branch for Android and iOS and uploads it

For AI agents

The axonpack agent skill has your coding agent learn this package from these docs, including the preview CLI that publishes, removes and prunes previews. Agent skill has the command for each package manager.

npx skills add axonpack/skills

Agents working in separate git worktrees can each start a Metro with npx preview start, and one debug build switches between them live. See Dev preview servers.

How it works

  1. preview publish runs the same expo export:embed step a release build runs, so the preview is Hermes bytecode with its images beside it.
  2. It uploads the files to your bucket, writes the preview's manifest, and only then adds it to the list for the native build it was made for.
  3. The app reads the list for its own native build. QA downloads a preview into the app's documents folder. Every file is checked against its sha256.
  4. QA taps Switch. The native side starts the app from the downloaded bundle on the next start and on every start after, until QA goes back to the default bundle.

There is no server of your own to run. The bucket is the whole backend.

Plain words

WordMeaning
PreviewOne published JS bundle, with its images. Its id is the branch name
Default bundleWhat the app runs with no preview chosen: the bundle inside the app, an expo-updates update, or Metro
KeyThe native build a preview was made for: version-<app version> or fingerprint-<hash>
CompatibleMade for the same key as the installed build. Only those are listed
IncompatibleA download made for another key, for example before a native update. It is kept apart and can't run
Write keyThe S3 key preview publish uses. It never goes in the app
Read keyA read-only S3 key the app uses for a private bucket. Leave it out for a public bucket

What you get

  • Your own bucket. AWS S3, Cloudflare R2, MinIO, or any host with the S3 API. Public or private.
  • A ready-made list for QA. What runs now, then download, switch, update, delete, and back to the default bundle. Light and dark, or your own theme.
  • Only previews that can run. Each build lists only previews made for its own native code.
  • A fallback. A preview that fails while starting is marked broken and the default bundle loads.
  • CI in one file. Sample GitHub Actions workflows publish every pull request and remove it on close.
  • Several Metro servers in one debug build. One per worktree, switched live, for people and AI agents.
  • Files beside the JS. A folder such as a WebView's web app can go with each preview. See Files with a preview.

Next: Installation

On this page