Personas
A persona is the device a profile shows to sites: the operating system it names, its CPU, memory, display, input,
GPU identity, fonts and media defaults. Every persona is an entry of the persona catalog, a capture of a real
machine running Chrome. The catalog shipped with the SDK and embedded in the engine is
2026.10-40: 694 Windows, 109 Apple-silicon Mac and 18 Android entries. Intel Macs are
not supported. A profile pins one entry; the same entry always reports the same identity.
The persona fields are set inside the browser engine, not by JavaScript injected into the page. Each capability's
state, entrypoints and tests are listed in Capabilities, generated from
contracts/capabilities/capabilities.json.
A persona reproduces a machine's identity, not its operating system. The network stack, the canvas renderer and the devices underneath remain the host's (see what a persona changes). NinjaSurfer makes no promise that a site will not show a CAPTCHA, block a session or recognise automation.
Choosing a persona
Desktop and the SDK pick an entry when a profile is created: by persona OS (win, mac, android), by fingerprint
options (persona_options over MCP, client.fingerprints in the SDK), or by the entry's id. The profile keeps
it. Keep the identity coherent with the network: a persona's locale and timezone should match its proxy's exit IP;
timezone: "auto" and locale: "auto" take them from the exit (see profiles). One exit IP per persona:
several personas behind one IP look like one visitor changing devices.
When the catalog version changes, a profile pinned to an older one gets a typed catalog-outdated error and is
migrated with profile migrate; there is no compatibility path to older catalogs.
Mobile and OS persona
| Persona OS | Identity |
|---|---|
win |
Windows desktop Chrome (Windows 10 and 11 personal computers) |
mac |
macOS desktop Chrome on Apple silicon (M1 to M5) |
android |
Android phone Chrome: mobile UA and Client Hints, touch points, the phone's display and GPU |
The OS named in the User-Agent, Client Hints and Sec-CH-UA-Platform, navigator.platform and OS-specific engine
details (for example Math.tanh, which V8 takes from the C runtime) follow the entry. A hardwareConcurrency above
the CPUs the process may use is capped to them (cgroup quota and affinity).
Canvas, WebGL and WebGPU
WebGL UNMASKED_VENDOR/UNMASKED_RENDERER and WebGPU adapter.info name the GPU of the entry's capture in every realm
(main frame, iframes, workers): an Intel or NVIDIA GPU on D3D11 for Windows, the Apple M-series GPU on Metal for
macOS, the phone's Adreno, Mali or Xclipse for Android. Without a hardware GPU the browser renders on SwiftShader, and
navigator.gpu.requestAdapter() still returns an adapter presented as the persona GPU (isFallbackAdapter: false).
What the browser declares is what it really does: WebGL limits and WebGPU features and limits are the backend's. A
persona may lower a limit, hide an extension its GPU lacks or emulate KHR_parallel_shader_compile, but never declares
something the backend cannot run.
Canvas, WebGL and WebGPU pixels are what the local renderer drew. There is no canvas noise and no canvas bridge.
Geolocation (GPS)
A profile can carry a fixed position. NinjaSurfer then replaces the position, not the permission: every frame gets
the given position and the real location providers are never asked; the permission works as in Chrome (prompt until
the origin is granted; a cross-origin iframe also needs allow="geolocation").
| Flag | Required | Description |
|---|---|---|
--persona-lat=<deg> |
yes | Latitude in decimal degrees. |
--persona-lng=<deg> |
yes | Longitude in decimal degrees. |
--persona-accuracy=<m> |
no | Horizontal accuracy in meters (default 40). |
--persona-geolocation-auto-grant |
no | Grant the permission to every origin without a prompt (needs both coordinates). |
Invalid or partial coordinates stop the start. Keep the position coherent with the proxy and timezone.
import { NinjaSurfer } from "ninjasurfer";
const browser = await NinjaSurfer({ args: ["--persona-lat=48.8584", "--persona-lng=2.2945"] });
const page = await browser.newPage();
await page.context().grantPermissions(["geolocation"], { origin: "https://example.com" });
await page.goto("https://example.com");What a persona changes
From the catalog entry: User-Agent, Client Hints (platform, version, architecture, model, mobile),
navigator.platform, hardwareConcurrency (capped by usable CPUs), deviceMemory, maxTouchPoints, the screen and
work area, devicePixelRatio, color depth, the pointer/hover/color-gamut/dynamic-range media features, the
AudioContext default sample rate and latencies (an explicit AudioContext({ sampleRate }) is honoured), the GPU
identity, and the fonts.
Fonts: a Windows or macOS persona uses the original OS fonts for that OS version (and Office, where the
entry has it), downloaded from the CDN like every other asset, under their real family names for CSS, local() and Local
Font Access. Without them no Windows or macOS family name is offered.
From the profile: locale, timezone, proxy, geolocation. On an Android persona behind a proxy, navigator.connection.type
follows the proxy's network class (from the same exit-IP lookup the timezone uses, so no extra probe): a mobile-carrier exit
reports cellular, a residential or business exit wifi; a datacenter or unclassified exit keeps the catalog entry's own
interface. Desktop personas and direct launches are left as the engine reports them.
From the host: prefers-* media features, canvas pixels, the TLS/HTTP stack, TCP options and the exit IP, cameras,
microphones and platform authenticators (a persona creates no Touch ID or Windows Hello; passkeys work only with the
host's authenticators).
Known gaps (each entry lists its own in gaps): Windows graphics are not D3D11 and text is not DirectWrite; macOS
graphics are not Metal and text is not CoreText; emoji are rasterized by Skia. An Android persona on a fixed-timezone
profile keeps the catalog entry's navigator.connection.type even behind a mobile proxy: the proxy class is only applied
when the exit-IP lookup is fail-closed (an "auto" timezone), so the value stays identical across every launch rather than
flipping. Realistic mobile personas use timezone: "auto", which follows the proxy and gets the cellular/Wi-Fi class.
WebRTC policy and actual OS TCP egress
Without an explicit policy the browser uses Chromium's disable_non_proxied_udp WebRTC IP handling policy: no direct
UDP, no STUN and no TURN over UDP. WebRTC connects only through a TURN server over TCP/TLS, through the proxy when one
applies. A proxy change or failure does not enable UDP. An explicit --webrtc-ip-handling-policy (or
--force-webrtc-ip-handling-policy) always wins; default_public_interface_only behaves as in Chrome and lets UDP
bypass the proxy.
The private mDNS host-only mode is off by default; --enable-features=NinjaSurferWebRtcMdnsHostOnly gathers only
private-interface mDNS host candidates.
Outbound TCP carries the host's OS options (TCP/IP stack fingerprint), not the persona's.