---
title: "openvibe-sdk/checks · OpenVibe.Services"
canonical: "https://openvibe.services/docs/sdk/checks"
updated: null
---

# openvibe-sdk/checks · OpenVibe.Services

HTML: [openvibe-sdk/checks · OpenVibe.Services](https://openvibe.services/docs/sdk/checks)

# `openvibe-sdk/checks`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

From `types/checks.d.ts` (server only). Declarations are shown verbatim.

## type Severity

~~~~
export type Severity = 'critical' | 'serious' | 'moderate' | 'minor' | 'info';
~~~~

## type CheckId

~~~~
export type CheckId = 'gitleaks' | 'osv' | 'semgrep' | 'headers' | 'lighthouse' | 'axe';
~~~~

## type LoopId

~~~~
export type LoopId = 'accessibility' | 'security' | 'latency';
~~~~

## interface Where

~~~~
export interface Where { file?: string; line?: number; commit?: string; url?: string; width?: number; selector?: string; package?: string; version?: string; ecosystem?: string }
~~~~

## interface Finding

~~~~
export interface Finding { check: CheckId; rule: string; severity: Severity; title: string; where: Where; help?: string; count?: number; fingerprint?: string }
~~~~

## interface PageMetrics

~~~~
export interface PageMetrics { url: string; width: number; form_factor: string | null; score: number | null; lcp_ms: number | null; cls: number | null; tbt_ms: number | null; fcp_ms: number | null; si_ms: number | null }
~~~~

## interface CheckResult

~~~~
export interface CheckResult { id: CheckId; tool: string; available: boolean; findings: Finding[]; metrics?: PageMetrics[]; install?: string; error?: string; skipped?: string; note?: string; took_ms: number }
~~~~

## interface Report

~~~~
export interface Report { schema: 'openvibe.checks@1'; at: string; dir?: string; site: string | null; pages: string[]; widths: number[]; checks: CheckResult[]; summary: { total: number; by_severity: Record<Severity, number>; by_check: Partial<Record<CheckId, number>> } }
~~~~

## interface Comparison

~~~~
export interface Comparison { schema: 'openvibe.checks.compare@1'; checks: CheckId[]; fixed: Finding[]; added: Finding[]; kept: Finding[]; metrics: Array<{ check: CheckId; url: string; width: number; metric: string; before: number; after: number; delta: number }>; better: boolean }
~~~~

## interface ExecResult

~~~~
export interface ExecResult { code: number; stdout: string; stderr: string }
~~~~

## interface RunOptions

~~~~
export interface RunOptions {
    dir?: string; site?: string | null; pages?: string[] | null; widths?: number[] | string; timeoutMs?: number;
    exec?: (cmd: string, args: string[], o: { cwd?: string; timeoutMs?: number }) => Promise<ExecResult>;
    fetch?: typeof fetch; browser?: unknown; axeSource?: string; log?: ((line: string) => void) | null;
}
~~~~

## export export const SCHEMA: 'openvibe.checks@1';

~~~~
export const SCHEMA: 'openvibe.checks@1';
~~~~

## export export const SEVERITIES: readonly Severity\[\];

~~~~
export const SEVERITIES: readonly Severity[];
~~~~

## export export const CHECKS: Readonly<Record<CheckId, { tool: string

~~~~
export const CHECKS: Readonly<Record<CheckId, { tool: string; loop: LoopId; what: string; install: string | null }>>;
~~~~

## export export const LOOPS: Readonly<Record<LoopId, readonly CheckId

~~~~
export const LOOPS: Readonly<Record<LoopId, readonly CheckId[]>>;
~~~~

## export export const LIGHTHOUSE\_VERSION: string;

~~~~
export const LIGHTHOUSE_VERSION: string;
~~~~

## export export const AXE\_VERSION: string;

~~~~
export const AXE_VERSION: string;
~~~~

## export export const AXE\_TAGS: readonly string\[\];

~~~~
export const AXE_TAGS: readonly string[];
~~~~

## export export function run(what: string | Array<CheckId | LoopId |

~~~~
export function run(what: string | Array<CheckId | LoopId | 'all'>, opts?: RunOptions): Promise<Report>;
~~~~

## export export function compare(before: Report, after: Report): Comp

~~~~
export function compare(before: Report, after: Report): Comparison;
~~~~

## export export function markdown(doc: Report | Comparison, o?: { lim

~~~~
export function markdown(doc: Report | Comparison, o?: { limit?: number }): string;
~~~~

## export export function checkHeaders(url: string, o?: { fetch?: type

~~~~
export function checkHeaders(url: string, o?: { fetch?: typeof fetch; timeoutMs?: number }): Promise<Finding[]>;
~~~~

## export export function severityOf(v: unknown): Severity;

~~~~
export function severityOf(v: unknown): Severity;
~~~~

## export export function resolve(what: string | string\[\]): CheckId\[\];

~~~~
export function resolve(what: string | string[]): CheckId[];
~~~~

## export export function urlsOf(site: string | null | undefined, page

~~~~
export function urlsOf(site: string | null | undefined, pages?: string[] | null): string[];
~~~~

## export export function fingerprint(findings: Finding\[\]): Finding\[\];

~~~~
export function fingerprint(findings: Finding[]): Finding[];
~~~~

## export export const parse: { gitleaks(json: unknown, ctx?: { di

~~~~
export const parse: {
    gitleaks(json: unknown, ctx?: { dir?: string }): Finding[];
    osv(json: unknown, ctx?: { dir?: string }): Finding[];
    npmAudit(json: unknown): Finding[];
    semgrep(json: unknown, ctx?: { dir?: string }): Finding[];
    lighthouse(lhr: unknown, ctx?: { width?: number }): { findings: Finding[]; metrics: Omit<PageMetrics, 'width'> };
    axe(results: unknown, ctx?: { url?: string; width?: number }): Finding[];
};
~~~~
