View as Markdown

Get started · Concept

Example apps

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

AppExampleStackShows
merchant-checkoutBrightboxNext.jsStore rules
agent-tripScoutNext.jsAgent limits
compliance-onboardingRoadsideNext.jsID capture
claim-intakeHarbortide InsuranceNext.js, FastAPIClaim photos
card-issuerLarkmoor BankNext.jsCard rules
capture-androidRoadside, HarbortideKotlinNative capture
capture-iosRoadside, HarbortideSwiftNative 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
Brightbox · Orders · merchant-checkout
Scout · Runs, the agent-trip app
Scout · Runs · agent-trip
Roadside · Reviews, the compliance-onboarding app
Roadside · Reviews · compliance-onboarding
Harbortide Insurance · Reviews, the claim-intake app
Harbortide Insurance · Reviews · claim-intake

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.

DemoAppTry it
Merchant: agents shop at Brightbox, your rules decidemerchant-checkoutOpen demo
Agent: Scout books a trip through sub-agentsagent-tripOpen demo
Compliance: capture an ID and a selfie, see the gradecompliance-onboardingOpen demo
Card issuer: Larkmoor Bank asks the cardholder when an agent is new on her cardcard-issuerNot open yet
Insurance: claim photos, signed and scoredclaim-intakeNot 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.