npm Packages forAI Compliance & Safety
Production-ready TypeScript/JavaScript SDKs for AI system safety, compliance monitoring, and security. Install in seconds, integrate in minutes.
Available npm Packages
Choose the package that fits your AI compliance and safety needs
@haiec/kill-switch
Emergency AI shutdown system with 5-layer defense architecture
What It Does
Provides emergency shutdown capabilities for AI systems with automated compliance monitoring. Stop rogue AI in <1 second with application-level execution control.
- 5-layer defense (throttle, circuit break, kill, network, DB)
- Persistent metrics storage with retry logic
- Manual, semi-auto, and full-auto modes
- Real-time WebSocket monitoring
Use Cases
Healthcare AI
Auto-kill when model accuracy drops below safety threshold
Hiring AI
Circuit breaker when bias score exceeds limits
Trading AI
Full kill on anomalous patterns in <15 seconds
How to Use
// 1. Install
npm install @haiec/kill-switch
// 2. Initialize
import { KillSwitch } from '@haiec/kill-switch';
const ks = new KillSwitch({
apiKey: process.env.KILL_SWITCH_API_KEY,
systemId: 'my-ai-system',
mode: 'semi-auto'
});
// 3. Report metrics
await ks.reportMetrics({
accuracy: 0.85,
biasScore: 0.12,
latencyP95: 1.5
});
// 4. Manual trigger if needed
await ks.trigger({
layer: 2,
reason: 'Suspicious pattern detected'
});Key Benefits
Lightning Fast Response
Layers 1-3 respond in <1 second vs 5-30 minutes manual
EU AI Act Compliant
Audit-grade evidence with actor, reason, timestamps
Zero Data Loss
Persistent metrics storage survives restarts and crashes
Developer Friendly
5-minute setup, TypeScript support, Express/Koa middleware
LLMVerify
Prompt injection detection and LLM security scanning. Currently being migrated to new architecture.
Ready to Secure Your AI Systems?
Install our npm packages and get production-ready AI safety in minutes.
MIT Licensed • TypeScript Support • Production Ready