Skip to main content
Install version 0.2.5 from the URL above. Import it as @heretic-hq/collector.
heretic() runs once per page; later calls return the same run. result.requestId is a 32-character hex string. When ok is true, your backend can read the result immediately at GET /v1/verdict. See collector results for incomplete runs.
ESM, CommonJS, and types are included. dist/heretic.js is the browser bundle for serving from your own origin.

Content security policy

Options and result lists every heretic(config) option.