# Boundary ## Docs - [createBoundaryLogger](https://docs.withboundary.com/api-reference/create-boundary-logger.md): Full options reference for the SDK logger factory - [defineContract](https://docs.withboundary.com/api-reference/define-contract.md): Create a reusable contract from schema and rules - [enforce](https://docs.withboundary.com/api-reference/enforce.md): One-shot contract execution - [Engine Primitives](https://docs.withboundary.com/api-reference/engine.md): clean, verify, classify, repair, instructions - [Types](https://docs.withboundary.com/api-reference/types.md): All public types exported from @withboundary/contract and @withboundary/sdk - [Contracts](https://docs.withboundary.com/concepts/contracts.md): Schema + rules — define what correct means - [Guarantees](https://docs.withboundary.com/concepts/guarantees.md): What Boundary promises — and what it doesn't - [The Repair Loop](https://docs.withboundary.com/concepts/repair-loop.md): How Boundary turns failures into fixes - [Results](https://docs.withboundary.com/concepts/results.md): The ContractResult discriminated union - [Rules](https://docs.withboundary.com/concepts/rules.md): Encode domain correctness as named, deterministic checks - [Security & Data Handling](https://docs.withboundary.com/concepts/security.md): Local-first, inspectable, opt-in — what Boundary sees and what it doesn't - [When to Use Boundary](https://docs.withboundary.com/concepts/when-to-use.md): Where Boundary fits — and where it doesn't - [Add Boundary to an LLM Feature](https://docs.withboundary.com/guides/add-boundary-to-an-llm-feature.md): Put a contract boundary around an existing model call - [Agent Tool Validation](https://docs.withboundary.com/guides/agent-actions.md): Validate proposed agent actions before tools execute side effects. - [Use Boundary With AI Coding Agents](https://docs.withboundary.com/guides/ai-coding-agents.md): Prompt AI coding agents to add Boundary to existing or new LLM workflows. - [Anthropic Integration](https://docs.withboundary.com/guides/anthropic.md): Use Boundary with Claude - [ContractLogger Hooks](https://docs.withboundary.com/guides/contract-logger.md): Tap into every step of the contract execution loop - [Email Parsing](https://docs.withboundary.com/guides/email-parsing.md): Validate parsed email intent, priority, department, and summary before creating tickets. - [enforce() vs defineContract()](https://docs.withboundary.com/guides/enforce-vs-define.md): Two entrypoints, one engine — when to pick which - [Engine Primitives](https://docs.withboundary.com/guides/engine-primitives.md): Use clean, verify, classify, repair, and instructions directly - [Healthcare Document Extraction](https://docs.withboundary.com/guides/healthcare-extraction.md): Validate identifiers, dates, codes, and totals in extracted claim data. - [Invoice & Financial Extraction](https://docs.withboundary.com/guides/invoice-extraction.md): Validate invoice math before extracted financial data reaches accounting. - [Lead Scoring](https://docs.withboundary.com/guides/lead-scoring.md): Validate lead tiers, scores, reasons, and qualification flags before updating your CRM. - [Local Development](https://docs.withboundary.com/guides/local-development.md): Debug Boundary contracts without the hosted dashboard - [OpenAI Integration](https://docs.withboundary.com/guides/openai.md): Use Boundary with OpenAI structured outputs - [Production Observability](https://docs.withboundary.com/guides/production-observability.md): Send contract runs to the Boundary dashboard when local logs are not enough - [Testing Contracts](https://docs.withboundary.com/guides/testing-contracts.md): Deterministic tests with no LLM, no network, no flakiness - [Introduction](https://docs.withboundary.com/introduction.md): Make LLM outputs correct before your application uses them - [Quickstart](https://docs.withboundary.com/quickstart.md): Install the local contract package and accept your first LLM output - [Batching](https://docs.withboundary.com/sdk/batching.md): Size, interval, and queue behavior for outbound events - [beforeSend](https://docs.withboundary.com/sdk/before-send.md): Per-event transform and drop hook - [BoundaryLogEvent](https://docs.withboundary.com/sdk/boundary-log-event.md): The wire format sent to the ingest endpoint - [Capture Policy](https://docs.withboundary.com/sdk/capture-policy.md): Decide which buckets of data leave the process - [Custom Sinks](https://docs.withboundary.com/sdk/custom-sinks.md): Mirror events to your own logger or replace the network entirely - [SDK Overview](https://docs.withboundary.com/sdk/overview.md): Capture production contract runs for the Boundary dashboard - [Browser](https://docs.withboundary.com/sdk/platforms/browser.md): Client-side contracts with pagehide + visibilitychange drain - [Cloudflare Workers & Edge](https://docs.withboundary.com/sdk/platforms/cloudflare-workers-edge.md): No lifecycle hook — ctx.waitUntil is your drain point - [Next.js](https://docs.withboundary.com/sdk/platforms/nextjs.md): App Router route handlers, server components, and the Edge runtime - [Node.js](https://docs.withboundary.com/sdk/platforms/node.md): Long-running servers with beforeExit and your own signal handlers - [Vercel Functions & AWS Lambda](https://docs.withboundary.com/sdk/platforms/vercel-aws-lambda.md): Per-invocation flush for serverless Node runtimes - [SDK Quickstart](https://docs.withboundary.com/sdk/quickstart.md): Install the hosted SDK and send contract events to the dashboard - [Redaction](https://docs.withboundary.com/sdk/redaction.md): Three composable layers to scrub data before it leaves the process - [Resilience](https://docs.withboundary.com/sdk/resilience.md): Retry, circuit breaker, rate limits, and timeouts - [Shutdown](https://docs.withboundary.com/sdk/shutdown.md): Drain the queue correctly on every runtime ## OpenAPI Specs - [openapi](https://docs.withboundary.com/api-reference/openapi.json)