@safebrowse/playwright-adapter
v0.1.5
Published
Playwright reference adapter for the SafeBrowse runtime
Maintainers
Readme
@safebrowse/playwright-adapter
Reference payload builder for wiring Playwright-hosted agents to the SafeBrowse V6 daemon surface.
Install
npm install @safebrowse/playwright-adapter playwright-coreplaywright-core stays a peer dependency so hosts can control their own browser runtime.
What It Provides
- page snapshot helpers for
/v6/observe - artifact ingest helpers for rendered page captures
- email observe payload builders
- office artifact ingest payload builders for DOCX, XLSX, and PPTX
- external API observe payload builders
- attachment extraction payload builders
- action payload builders for minted V6 authorities
Useful exports include:
createSurfaceCaptureFromSnapshotbuildObservePayloadV6buildArtifactIngestPayloadV6buildEmailObservePayloadV6buildOfficeArtifactIngestPayloadV6buildExternalApiObservePayloadV6buildAttachmentExtractPayloadV6buildActionEvaluatePayloadV6
The email and office snapshot types also support direct raw binary handoff through:
EmailSnapshot.rawMimeBase64OfficeDocumentSnapshot.contentBase64
See the repository README for the full runtime contract:
