Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llmverify

Stop shipping unsafe AI output. Local-first verification, safety monitoring, and guardrails for any LLM — in one npm install.

npm version CI License: MIT

100% Local | No Telemetry | Privacy-First | 500 free calls/day


Links


The Problem

You're building with GPT-4, Claude, Gemini, or any LLM. Your AI:

  • Hallucinates facts and citations that don't exist
  • Leaks PII — emails, phone numbers, SSNs in responses
  • Gets prompt-injected — users trick it into ignoring instructions
  • Returns broken JSON that crashes your parser
  • Drifts in quality over time without anyone noticing

You need a safety layer between your LLM and your users. That's llmverify.

What You Get

npm install llmverify
Feature One-liner What it catches
Verify output await verify(aiResponse) Hallucinations, harmful content, quality issues
Block injections isInputSafe(userMessage) Prompt injection, jailbreaks, malicious input
Redact PII redactPII(text) Emails, phones, SSNs, credit cards, API keys
Fix broken JSON repairJSON(broken) Missing brackets, trailing commas, unquoted keys
Monitor health monitorLLM(client) Latency spikes, token drift, behavioral changes
Sentinel tests sentinel.quick(client, model) LLM regressions before users see them
Classify output classify(prompt, response) Intent detection, content categorization
Audit trail audit.log(event) SOC2, HIPAA, GDPR compliance evidence

Everything runs locally. No data leaves your machine. No API keys needed for free tier.

Part of the HAIEC AI governance platform. Use alongside AI Security Scanner, CI/CD Pipeline, and Runtime Injection Testing.


Install

npm install llmverify

Quick Start (30 seconds)

const { verify, isInputSafe, redactPII } = require('llmverify');

if (!isInputSafe(userMessage)) {
  return { error: 'Invalid input detected' };
}

const aiResponse = await yourLLM.generate(userMessage);
const result = await verify(aiResponse);

if (result.risk.level === 'critical') {
  return { error: 'Response failed safety check' };
}

const { redacted } = redactPII(aiResponse);
console.log(redacted);

Three lines of safety between your LLM and your users.


Documentation


Support


License

MIT License — See LICENSE for details.


Made with care for AI safety and developer experience.

About

AI model health monitor for LLM apps – runtime checks for drift, hallucination risk, latency, and JSON/format quality on any OpenAI, Anthropic, or local client.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages