Implementation:Promptfoo Promptfoo Plugins Data Catalog
| Knowledge Sources | |
|---|---|
| Domains | Red_Teaming, Documentation |
| Last Updated | 2026-02-14 07:45 GMT |
Overview
Concrete data catalog defining the complete set of red team plugins with their categories, descriptions, configurations, and application type mappings for the documentation site.
Description
The Plugins_Data_Catalog (plugins.ts) defines the authoritative list of all red team vulnerability plugins available in promptfoo. Each plugin entry includes its category (Brand, Security, Trust and Safety, etc.), display name, description, configuration examples, and which application types (agent, chat, RAG) it applies to. This data drives the plugin tables and configuration guides on the documentation website.
Usage
Import this module in documentation site components to render plugin reference tables, configuration guides, and category-based filtering.
Code Reference
Source Location
- Repository: Promptfoo_Promptfoo
- File: site/docs/_shared/data/plugins.ts
- Lines: 1-2088
Signature
export const PLUGIN_CATEGORIES: readonly string[]
export type PluginCategory = (typeof PLUGIN_CATEGORIES)[number]
export interface Plugin {
id: string;
category: PluginCategory;
displayName: string;
description: string;
// ... additional fields
}
export const plugins: Plugin[]
Import
import { plugins, PLUGIN_CATEGORIES, type PluginCategory } from '../data/plugins';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | — | — | Static data export, no runtime inputs |
Outputs
| Name | Type | Description |
|---|---|---|
| PLUGIN_CATEGORIES | readonly string[] | Array of category names (Brand, Security, etc.) |
| plugins | Plugin[] | Complete array of plugin definitions |
Usage Examples
import { plugins, PLUGIN_CATEGORIES } from '../data/plugins';
// Filter plugins by category
const securityPlugins = plugins.filter(p => p.category === 'Security and Access Control');
// Get all categories
console.log(PLUGIN_CATEGORIES);
// ['Brand', 'Compliance and Legal', 'Dataset', 'Security and Access Control', 'Trust and Safety', 'Custom']