Skip to content

Interface: AttachOptions<S>

Defined in: devtools/src/bridge.ts:11

S extends Schema<Record<string, AnyTable>>

readonly dbName: string

Defined in: devtools/src/bridge.ts:12


readonly schema: S

Defined in: devtools/src/bridge.ts:13


readonly optional refreshIntervalMs?: number

Defined in: devtools/src/bridge.ts:15

Milliseconds between snapshot broadcasts. Default 500.


readonly optional targetOrigin?: string

Defined in: devtools/src/bridge.ts:22

Post messages only to origins listed here. Default is "*" which matches the Chrome DevTools “any” bridge. A production runtime behind sensitive schemas should narrow this to the extension’s exact origin.


readonly optional allowedOrigins?: readonly string[] | "same-origin" | "*"

Defined in: devtools/src/bridge.ts:33

Accept command messages from these origins only. Defaults to "same-origin" — the current page origin. Pass an explicit list of extension origins (chrome-extension://…) to authorise them. v1.0 zeus W2 fix: without this check, any embedded iframe / cross-frame parent could post a command: "reset-local-state" message and wipe the user’s local database. Ignored (any origin accepted) only when set to "*" — the caller has taken explicit responsibility.


readonly optional runtime?: { name: string; version: string; }

Defined in: devtools/src/bridge.ts:38

Runtime identity broadcast on the initial hello. Defaults to { name: "@sh1n4ps/plasma-client", version: "unknown" }.

readonly name: string

readonly version: string