# Example apps

Five full sample apps, each a made-up company's own admin tool on the Provenance sandbox, plus Android and iOS capture samples, that you can clone, run with a sandbox key and deploy to your own account.

The example apps are full sample apps, each a made-up company's own admin tool, that show Provenance working end to end in an app like yours. Each one calls only the SDKs, the public API and the embedded components, and runs from a clean clone with a sandbox key.

The repository isn't public yet. Each app below names its folder there.

## When to use it

- See how rules, results and approvals fit together in a store, an agent, a bank or an insurer before you write code.
- Start your own integration from a working app instead of an empty folder.
- Try a flow on your own phone in a live demo, with nothing charged and sandbox data only.

## The apps

| App | Example | Stack | Shows |
| --- | --- | --- | --- |
| `merchant-checkout` | Brightbox | Next.js | Store rules |
| `agent-trip` | Scout | Next.js | Agent limits |
| `compliance-onboarding` | Roadside | Next.js | ID capture |
| `claim-intake` | Harbortide Insurance | Next.js, FastAPI | Claim photos |
| `card-issuer` | Larkmoor Bank | Next.js | Card rules |
| `capture-android` | Roadside, Harbortide | Kotlin | Native capture |
| `capture-ios` | Roadside, Harbortide | Swift | Native capture |

Brightbox's agents shop at a store and its rules sort them, with the rules, traffic and checkout components. Scout books a trip through sub-agents and asks past its limit, with the mandate limits and run components.

Roadside captures a driver's license and a selfie on a phone, with the capture request, list and result components. Harbortide builds its own claim photo panels on the API with the Python SDK. Larkmoor Bank decides an agent's purchase on a card and asks the cardholder when the agent is new on it, on the API's issuer routes. The two native samples are a company's own Android and iOS app taking a capture link's photos.

The repository's README has a Deploy button for each web app that copies it into your own Vercel account (and `claim-intake`'s backend into Railway) and asks for your sandbox keys. The native samples build from source in Android Studio or Xcode.

![Brightbox · Orders, the merchant-checkout app](https://provenanceauth.com/example-apps/merchant-checkout.light.1280.jpg)

![Scout · Runs, the agent-trip app](https://provenanceauth.com/example-apps/agent-trip.light.1280.jpg)

![Roadside · Reviews, the compliance-onboarding app](https://provenanceauth.com/example-apps/compliance-onboarding.light.1280.jpg)

![Harbortide Insurance · Reviews, the claim-intake app](https://provenanceauth.com/example-apps/claim-intake.light.1280.jpg)

## Live demos

Five of the apps are built to run as live demos on Provenance's sandbox, on a demo account, so you can try them without a key. A demo session lasts up to 30 minutes, and the photos a capture takes are discarded when it ends. A demo you can open has its link below.

| Demo | App | Try it |
| --- | --- | --- |
| Merchant: agents shop at Brightbox, your rules decide | `merchant-checkout` | [Open demo](https://demo-brightbox.provenanceauth.com/) |
| Agent: Scout books a trip through sub-agents | `agent-trip` | [Open demo](https://demo-scout.provenanceauth.com/) |
| Compliance: capture an ID and a selfie, see the grade | `compliance-onboarding` | [Open demo](https://demo-roadside.provenanceauth.com/) |
| Card issuer: Larkmoor Bank asks the cardholder when an agent is new on her card | `card-issuer` | Not open yet |
| Insurance: claim photos, signed and scored | `claim-intake` | Not open yet |

## How it works

1. **Clone the repository** and open an app's folder. Its README starts it in under five minutes.
2. **Add your sandbox keys** to the app's environment file. The secret key stays on the app's server; the browser gets only the publishable key the embedded components use.
3. **Run it.** The app's own check walks its main flow against your sandbox account, the same run the repository's CI makes against each release.

The rules the apps ship with (a bot likelihood under 30, 20% margins over a budget, 100 km and 500 km from an address) are examples that show how rules sort orders, trips and captures. Tune them for your own traffic.

## Related

- [Sandbox and keys](https://provenanceauth.com/docs/get-started/sandbox.md): the keys the apps run with.
- [Embeds](https://provenanceauth.com/docs/embeds.md): the components the web apps use.
- [Rules in your admin](https://provenanceauth.com/docs/embeds/rules.md): the rules component in Brightbox, Scout and Roadside.
- [Native capture SDK](https://provenanceauth.com/docs/attest/guides/native-sdk.md): what the Android and iOS samples call.
