Skip to content
reaatech

reaatech/guardrail-chain

0Last commit: Jun 15, 2026GitHub →

These packages give you a composable pipeline of input and output guardrails for LLM calls, with built-in budget management that can skip non-essential checks under latency or token pressure. You'd adopt them to add safety layers—PII redaction, prompt injection detection, toxicity filtering, hallucination detection, and others—without wiring each guardrail from scratch or guessing how they interact under load. The most distinctive thing is that guardrails are scheduled and prioritized by a budget-aware orchestrator, so the chain can short-circuit on failure and degrade gracefully when resources are tight, rather than running every check unconditionally.

Packages

4 packages

@reaatech/guardrail-chain

v0.1.0
Core types, chain orchestration, budget management, and utilities for the Guardrail Chain framework, providing the `Guardrail` interface and `GuardrailChain` orchestrator that every guardrail implementation must satisfy.
status
published
published
1 month ago

@reaatech/guardrail-chain-config

v0.1.0
Loads and validates Guardrail Chain configuration from JSON, YAML, and environment variables, providing functions like `loadConfig`, `validateConfig`, and `validateConfigSafe` that deep-merge sources and validate against a Zod schema.
status
published
published
1 month ago

@reaatech/guardrail-chain-guardrails

v0.1.0
Thirteen built-in guardrail implementations for the Guardrail Chain framework, covering input validation, output filtering, and result caching. Each guardrail is a class implementing the `Guardrail<TInput, TOutput>` interface from `@reaatech/guardrail-chain`, designed to be composed into a chain with budget-aware scheduling.
status
published
published
1 month ago

@reaatech/guardrail-chain-observability

v0.1.0
Pluggable observability interfaces for the Guardrail Chain framework providing structured logging, metrics collection, and distributed tracing via module-level singletons (`getLogger`/`setLogger`, `getMetrics`/`setMetrics`, `getTracer`/`setTracer`). Ships with no-op defaults and a `ConsoleLogger` for development, with zero runtime dependencies.
status
published
published
1 month ago

Comments

Sign in with GitHub to comment and vote.

Loading comments…