# @leumas/leviathan

The embeddable Leviathan chatbot — React widget + client. Drops into every product; talks to the leviathan runtime via the API.


The embeddable **Leviathan chatbot** — a React widget + client. Drops into every product; bots are
programmed & priced in Studio and metered by PassNode. The runtime lives in `shared/engines/leviathan`.

**Absorbs (DRY-consolidated from):** new widget wrapping the `x-leviathan-realtime` / `leviathan-runtime` client.

## Usage

```jsx
import { LeviathanWidget, createLeviathanClient } from '@leumas/leviathan';

const client = createLeviathanClient({ baseUrl: API_BASE, getToken });
<LeviathanWidget client={client} botId="assistant" title="Leviathan" />
```

Token-driven (uses `@leumas/theme` CSS vars) and self-contained — one import gives every app a
floating, metered assistant.


---
Source: shared/packages/leviathan/README.md
Canonical: https://docs.leumas.tech/p/packages/leviathan
