mm.tech
securitystableTypeScript

AI Shield Classifier (ONNX)

Optional ONNX ML classifier sibling for AI Shield

Pluggable DeBERTa-style ML classifier for prompt-injection detection alongside the regex-only heuristics. Dependency-injected ONNX runtime and tokenizer so the package is hermetic and unit-testable. Graceful-degrade on inference error keeps the chain non-blocking. Designed for protectai/deberta-v3-base-prompt-injection-v2 and any HF model exported via optimum-cli. MIT, TypeScript.

Stars

★ 2

Language

TypeScript

Updated

2026-05-20

Install

npx -y ai-shield-classifier-onnx