@ariada-org/surface-browser
v0.1.1
Published
In-browser surface adapter for @ariada-org/core-engine — bookmarklet, DevTools panel entry point, and importable ES module for multi-domain compliance scanning in any browser context.
Maintainers
Readme
@ariada-org/surface-browser
In-browser surface adapter for @ariada-org/core-engine. Ships three entry
points for running a multi-domain compliance scan directly inside a browser
context: a bookmarklet entry, a DevTools panel entry, and an importable ES
module.
License: EUPL-1.2 (European Union Public Licence v1.2).
Install
npm install @ariada-org/surface-browserEntry points
- Bookmarklet (
dist/bookmarklet-entry.js) — run a scan of the current tab from a browser bookmark. - DevTools panel (
dist/devtools-entry.js) — the panel entry referenced by the extension'ssrc/panel.html. - ES module (
import from '@ariada-org/surface-browser') — embed the scan surface in your own page or tooling.
Usage
import { scan } from '@ariada-org/surface-browser';
const report = await scan(document);The adapter ships a first-party guard that blocks cross-origin analyzer injection, so the scan surface only runs against the page that hosts it.
Documentation
https://github.com/ariada-org/ariada/tree/main/packages/surface-browser.
