npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-risk-card

v0.1.1

Published

Generate clean HTML AI disclosure cards aligned with the MindForge AI Risk Management Framework

Readme

ai-risk-card

Generate clean, shareable HTML AI disclosure cards aligned with the MindForge AI Risk Management Framework (MAS, January 2026).

AI Cards are structured disclosure documents that AI vendors provide to financial institutions (FIs) to support risk assessment and governance. This tool turns a JSON description of your AI system into a formatted, printable HTML card based on Appendix E of the MindForge Operationalisation Handbook.

Install

npm install -g ai-risk-card

Usage

ai-risk-card <input.json> [options]

Options:
  --output, -o <file>   Output file path (default: auto-generated)
  --help,  -h           Show help

Examples:

ai-risk-card my-model.json
ai-risk-card my-model.json --output credit-scorer-ai-card.html

Auto-generated filename format: <ai-name>-<timestamp>-ai-card.html

Input format

See examples/sample-credit-scorer.json for a complete example.

{
  "general": {
    "name": "Credit Risk Scorer",
    "version": "3.2.1",
    "lastUpdated": "2026-03-10",
    "provider": "FinAI Solutions Pte. Ltd.",
    "contact": "[email protected]",
    "license": "Proprietary"
  },
  "aiType": "Predictive",           // Diagnostic | Predictive | Generative | Agentic
  "modalities": ["Text", "Image"],  // for Generative/Agentic only, or null
  "purpose": {
    "intendedUse": "...",
    "usageGuidance": "..."
  },
  "techniques": {
    "description": "...",
    "architecture": "...",
    "externalServices": "..."       // or null
  },
  "risks": [
    {
      "risk": "Lack of explainability",
      "dimension": "Transparency",  // MindForge Appendix B risk dimension
      "mitigation": "...",
      "guidance": "..."             // optional
    }
  ],
  "datasets": [
    {
      "name": "Training dataset",
      "type": "Structured tabular",
      "sources": "...",
      "preprocessing": "...",
      "personalData": "...",
      "representativeness": "..."
    }
  ],
  "evaluation": [
    {
      "metric": "Equal Opportunity Difference (EOD)",
      "justification": "...",
      "result": "0.018",
      "methodology": "..."
    }
  ],
  "cybersecurity": {
    "dataShared": "...",
    "dataHandling": "...",
    "securityMetrics": "...",
    "attestations": "SOC 2 Type II"
  },
  "changes": [
    {
      "change": "Quarterly model retraining",
      "frequency": "Quarterly",
      "expectedImpact": "..."
    }
  ],
  "standards": [
    {
      "standard": "ISO/IEC 42001:2023",
      "details": "...",
      "link": "https://..."         // optional
    }
  ],
  "components": {                   // optional addendum
    "components": [
      {
        "name": "XGBoost model",
        "version": "3.2.1",
        "description": "...",
        "source": "https://..."     // optional
      }
    ],
    "dataFlowDescription": "..."
  }
}

Risk dimensions

Risk entries should reference one of the seven MindForge AI Risk Taxonomy dimensions (Appendix B):

  • Fairness & Bias
  • Accountability & Governance
  • Transparency
  • Legal & Regulatory
  • Robustness & Stability
  • Cyber & Data Security
  • Ethics

MindForge alignment

This tool implements the AI Card Template from Appendix E of the MindForge AI Risk Management Operationalisation Handbook (January 2026), published by MAS and the MindForge Consortium.

The nine sections of the output card correspond directly to the nine sections of the Appendix E template:

| Section | Template section | |---|---| | General Information | Section 1 | | Purpose and Usage | Section 2 | | Techniques and Development | Section 3 | | Risks | Section 4 | | Datasets | Section 5 | | Evaluation and Testing | Section 6 | | Cybersecurity and Data Protection | Section 7 | | Pre-Determined Changes | Section 8 | | Standards and Certifications | Section 9 | | Components and Architecture | Optional Addendum |

License

MIT