> ## Documentation Index
> Fetch the complete documentation index at: https://api.fanvue.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Session recording in on-platform apps

> What Fanvue records when your on-platform app or fan experience runs inside Fanvue, what it never records, and what your app must do to comply.

Fanvue may record sessions of on-platform apps and fan experiences running inside Fanvue. Fanvue's review team uses the recordings to see what an app showed a user when the app is reported or reviewed. The recorder ships in `@fanvue/builder-sdk` and starts when your frame's bridge connects to Fanvue. Read this page if your app has a creator surface or a fan surface that Fanvue loads in an iframe, as set up in [Run your app inside Fanvue](https://api.fanvue.com/docs/app-store/sdk/embedded.md) and [Build the fan surface](https://api.fanvue.com/docs/app-store/experiences/build-the-fan-surface.md).

## Requirement for listed apps and fan experiences

Apps listed on the App Store and published fan experiences must run `@fanvue/builder-sdk` with session recording. Recording is how Fanvue checks a report against what the app actually showed, so an app without it cannot be reviewed that way. A release of the SDK without the recorder counts as not running the SDK.

Fanvue checks recent launches of your app inside Fanvue for the SDK. An app with no recent launches is not out of compliance. When an app is out of compliance, these consequences may follow.

* Creators who use the app may see a notice that it may be removed.
* Fanvue may refuse to accept the app when you submit it for review.
* Fanvue may refuse to publish a new fan experience for the app.
* Fanvue may remove the app from the App Store.

Fanvue refuses from 8 January 2027. [Required: run the Fanvue Builder SDK in on-platform apps](https://api.fanvue.com/docs/app-store/sdk/requirement.md) covers the deadline, how to check that your app connects, and what a refusal looks like.

A fan experience publish that Fanvue refuses for this reason returns `403` with `{ error: "app_sdk_required", message }`. Deploying an updated app does not clear the refusal by itself, because the check reads launches, not your code. Deploy a release that runs the SDK with recording, open the app once inside Fanvue so that launch reports the SDK, then publish again. One launch with the SDK is enough. [Publish experiences](https://api.fanvue.com/docs/app-store/experiences/publish.md#direct-api) lists the other error values.

## What a recording contains

A session recording captures what your app displayed and how the user moved through it.

| Captured | Detail |
| - | - |
| Page structure | The page's elements and every change to them, with clicks, scrolling, touches, viewport size and navigation. Text is masked as listed in [What is never recorded](#what-is-never-recorded). |
| Image thumbnails | Small, low-resolution JPEG thumbnails of the images on the page. For video, a poster frame and a still every 10 seconds while it plays. Thumbnails come only from pixels the browser already holds, so the recorder never fetches an image. |
| Request list | The method, address, kind, status, size and timing of each address the app loads or calls, including loads from before the bridge connected. Query strings and fragments are stripped from every address. |

## What is never recorded

Session recording never captures typed text, credentials, payment details, request contents or the user's identity.

* **Typed input.** Every character typed into an input, and the values of `input`, `textarea`, `select` and `option`, becomes `*`, so the length is kept up to 64 characters. Hidden form values are removed. Whether a checkbox or radio button is checked is recorded, so wrap a sensitive choice in `data-fv-block`, as shown in [Hide more of your app](#hide-more-of-your-app).
* **Passwords and payment fields.** A field with `type="password"`, an `autocomplete` value of `cc-*`, `one-time-code` or `password`, and card frames from payment providers are replaced by a blank box of the same size.
* **Address queries.** The query string and fragment of every address, in links, images, forms, stylesheets, the page address and the request list, are removed, along with any `user:password@`.
* **Request contents.** Request and response bodies and headers are never read.
* **Identity.** The viewer's Fanvue handle, display name and avatar are masked by Fanvue before a recording is stored.
* **Other content.** Script contents, HTML comments, canvas content, fonts, audio, camera and screen-share video, DRM-protected video and frames from another origin nested in your app are not captured. `data-*` attributes are removed, except `data-fv-*`.

Rendered text is recorded with these patterns masked.

| Pattern | In the recording |
| - | - |
| Email address | Local part masked, as in `***@example.com` |
| Phone, card and other numbers of 7 or more digits, alone or grouped by spaces, dots, dashes or parentheses | Digits become `*`. ISO dates (`2026-11-19`), day-first dates (`19.11.2026`) and shorter numbers are kept. |
| Bank account number (IBAN) | Masked in full |
| Token (JWT-like strings, long hex or base64url runs) | Replaced with `[token]` |

Long token-like segments in the path of the page address, links, forms and requests are also replaced with `[token]`. Image, media, font, stylesheet and script addresses keep their full path, so keep secrets out of URL paths.

## Where recordings go

Recordings go to Fanvue only. The recorder sends each part of a recording over the bridge's private channel to the Fanvue page in the same browser, never to your servers. Your app makes no network requests to deliver it.

You cannot read recordings of your app, and Fanvue does not share them with builders. Fanvue keeps a recording for 30 days, or longer when it is kept for an investigation.

## What your app must do

An on-platform app supports session recording when it meets these four conditions.

1. **Use a current SDK.** Keep `@fanvue/builder-sdk` on its latest release. Older releases have no recorder, so their sessions cannot be recorded and they count as not running the SDK.

2. **Connect the bridge when the page loads.** The page is not recorded until the bridge connects, so connect at startup. `AuthProvider` and `useEmbeddedAuth` connect when they mount. Surfaces without React call `connectFanvueBridge()` on load.

   ```typescript theme={null}
   import { connectFanvueBridge } from "@fanvue/builder-sdk/bridge";

   void connectFanvueBridge();
   ```

   Every call in a window shares one connection, so connecting more than once is safe. A late connection starts with a full snapshot of the page at that moment, and what was on screen before it is not recorded.

3. **Serve images with CORS.** The recorder reads image pixels from the page, which the browser allows only for images loaded with CORS. Make sure the image host sends an `Access-Control-Allow-Origin` header that permits your app's origin, then give each image `crossorigin="anonymous"`. An image the recorder cannot read is stored as a placeholder with its address and size. The same applies to `<video>` posters and stills.

   ```html theme={null}
   <img src="https://cdn.example.com/cover.jpg" crossorigin="anonymous" alt="Course cover" />
   ```

4. **Leave the recorder in place.** Do not block, strip or patch out the recorder or the bridge, in your build or at runtime.

> [!WARNING]
>
> Add `crossorigin="anonymous"` only for image hosts that send `Access-Control-Allow-Origin`. On a host without the header, the browser refuses to load the image and your users see it broken. If that happens, remove the attribute for that host or add the header on the host.

## Hide more of your app

Two attributes let you hide more of an element than the built-in session recording rules do. You can only hide more, never less, and nothing in your app can widen what is captured.

`data-fv-mask` masks all text inside the element, including `alt`, `title`, `placeholder` and `aria-label`. Use it for private text you still want laid out in the recording, because layout and images are still recorded.

```tsx theme={null}
<section data-fv-mask>
  <h2>Your notes</h2>
  <p>{privateNotes}</p>
</section>
```

`data-fv-block` replaces the element with a blank box of the same size, and nothing inside it is recorded, including thumbnails of its images. Use it for any sensitive field or payment frame that the built-in rules do not cover.

```tsx theme={null}
<div data-fv-block>
  <PaymentWidget />
</div>
```

The request list covers the whole page, so an image inside a blocked element still appears there by its address.

## Performance cost

The session recorder stays off your app's critical path.

| Cost | Detail |
| - | - |
| Download | About 30 KB gzipped, in separate chunks loaded with a dynamic `import()` only when Fanvue starts a recording, never as part of your app's initial load. |
| Capture | Starts in an idle period. Sanitising and sending run in short idle slices off the main interaction path. Mouse moves and scrolls are sampled, and typing is recorded as its final value. |
| Thumbnails | Encoded in a worker loaded from a `blob:` URL, or in short idle slices on the main thread when your `Content-Security-Policy` does not allow `worker-src blob:`. |
| Full snapshot | Walks the page in a single task when recording starts and periodically afterwards, so a very large page pays for that walk at once. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.