jsonguard

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 1 Imported by: 0

README

StructuredShield

Your LLM responses always match your schema. Always.

StructuredShield validates LLM responses against JSON schemas and automatically retries when validation fails. 96%+ pass rate with zero code changes.

Quickstart

export OPENAI_API_KEY=sk-...
npx @stockyard/jsonguard

# Dashboard → http://localhost:4102/ui

What You Get

  • JSON Schema validation on every response
  • Auto-retry (up to 3x) with the validation error in the prompt
  • Pass rate dashboard — see your success rate in real-time
  • Per-schema stats — track which schemas cause issues
  • Failure browser — expected vs actual JSON, side by side

Part of Stockyard.

Documentation

Overview

JSONGuard — "Guarantee valid JSON from any LLM."

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL