@maiife-ai-pub/shared

v0.2.2

Published

> Shared types, formatters, and utilities used by all packages in the Maiife AI Governance Toolkit.

Readme

@maiife-ai-pub/shared

Shared types, formatters, and utilities used by all packages in the Maiife AI Governance Toolkit.

npm License

Part of the Maiife AI Governance Toolkit.


Install

npm install @maiife-ai-pub/shared

Usage

import type { RiskLevel, Finding, ToolHealth } from "@maiife-ai-pub/shared";
import { formatTable, formatJSON, formatHTML } from "@maiife-ai-pub/shared";

// Format a list of findings as a terminal table
const output = formatTable(findings);

// Format as JSON
const json = formatJSON(findings);

// Format as HTML report
const html = formatHTML(findings);

Exported Types

| Type | Description | |------|-------------| | RiskLevel | "low" \| "medium" \| "high" \| "critical" | | Finding | Security/audit finding with severity and description | | ToolHealth | Health status for an AI tool | | ToolHeartbeat | Telemetry heartbeat from a running tool |


Note

This package is a peer dependency of all other @maiife-ai-pub/* packages. You rarely need to install it directly unless building your own toolkit integrations.


License

Apache 2.0 — Built by Maiife