Skip to content

Packages

The repository is organized around a strict dependency direction: the contract layer sits at the bottom, the batteries-included runtime depends on it, and the service layer depends on both.

Responsibilities

PackageContainsDoes not contain
arc-guard-coreTyped models, Protocols, lifecycle events, stage constants, exceptions, placeholder registryHeavy provider-specific dependencies or transport code
arc-guardFull GuardPipeline, built-in inspectors and strategies, lifecycle sinks, semantic helpers, OTEL integration, evaluation utilitiesHTTP transport and dashboard route handling
arc-guard-serviceFastAPI routes, request settings, SSE events, dashboard read surfaces, request IDsGuardrail rules or detection logic
apps/guardrail-flowBrowser-based operator dashboardPython runtime or transport logic

Important Directories

  • packages/core/src/arc_guard_core: contracts and stable data model
  • packages/pip/src/arc_guard: runtime pipeline, inspectors, strategies, middleware, observability
  • packages/api/src/arc_guard_service: service transport, events, and request surfaces
  • apps/guardrail-flow/src: operator dashboard views and flow tooling

Optional Runtime Extras

ExtraAdds
[semantic]Embedding-backed intent and policy components
[jailbreak-ml]ML-backed jailbreak classification
[otel]OpenTelemetry metric and trace adapters
[fastapi]Service transport runtime for the API package

This split keeps the stable contract smaller than the total runtime implementation, which is important for downstream compatibility and lightweight integrations.

Open source but Use responsibly 🛡️