> ## Documentation Index
> Fetch the complete documentation index at: https://claritylabs.inc/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarity Labs Developer Docs

> Open-source TypeScript SDKs for regulated AI agents, local-first sync, and durable workflow execution. Available on npm and GitHub.

Clarity Labs publishes three open-source TypeScript SDKs designed for developers building production AI agents and data-intensive applications. Each package ships as ESM + CJS with full TypeScript declarations and is available on npm under the `@claritylabs` scope.

<CardGroup cols={3}>
  <Card title="CL SDK" icon="shield-check" href="/docs/cl-sdk/index">
    Insurance intelligence primitives — PDF extraction, citation-backed queries, PCE workflows, and composable agent prompts.
  </Card>

  <Card title="CL Sync" icon="refresh-cw" href="/docs/cl-sync/index">
    Local-first browser sync with IndexedDB, optimistic mutations, React hooks, and a Convex adapter.
  </Card>

  <Card title="CL Pipelines" icon="workflow" href="/docs/cl-pipelines/index">
    Durable execution primitives — crash-safe phase runners, LLM agent loops, and headless status UI.
  </Card>
</CardGroup>

## Get Started

<CardGroup cols={2}>
  <Card title="CL SDK Quickstart" icon="rocket" href="/docs/cl-sdk/quickstart">
    Install `@claritylabs/cl-sdk` and run your first policy extraction in minutes.
  </Card>

  <Card title="CL Sync Quickstart" icon="bolt" href="/docs/cl-sync/quickstart">
    Add local-first sync to your React app with a few lines of code.
  </Card>

  <Card title="CL Pipelines Quickstart" icon="play" href="/docs/cl-pipelines/quickstart">
    Build your first durable multi-phase pipeline with crash-safe checkpoints.
  </Card>

  <Card title="GitHub" icon="external-link" href="https://github.com/claritylabs-inc">
    Browse source code, open issues, and contribute on GitHub.
  </Card>
</CardGroup>

## Installation

All packages are published to npm under the `@claritylabs` scope.

<CodeGroup>
  ```bash npm theme={"system"}
  npm install @claritylabs/cl-sdk pdf-lib zod
  npm install @claritylabs/cl-sync
  npm install @claritylabs/cl-pipelines zod
  ```

  ```bash yarn theme={"system"}
  yarn add @claritylabs/cl-sdk pdf-lib zod
  yarn add @claritylabs/cl-sync
  yarn add @claritylabs/cl-pipelines zod
  ```

  ```bash pnpm theme={"system"}
  pnpm add @claritylabs/cl-sdk pdf-lib zod
  pnpm add @claritylabs/cl-sync
  pnpm add @claritylabs/cl-pipelines zod
  ```
</CodeGroup>

## License

All Clarity Labs SDKs are released under the [Apache 2.0 license](https://github.com/claritylabs-inc/cl-sdk/blob/main/LICENSE).
