# ondine

Mount precompiled diagrams in the browser without the compiler.

The root `ondine` entrypoint is 210 bytes gzip and imports nothing from the compiler. It inserts SVG that `ondine/vite`, the CLI, `ondine/compiler`, or the image Worker compiled ahead of time.

```ts title="main.ts"
import { mount } from 'ondine'
import flow from './flow.mmd'

// Inserts the precompiled SVG
mount(document.getElementById('flow')!, flow)
```

## Functions

- [mount](/docs/api/ondine/mount): Insert a precompiled diagram into an element.

## Namespaces

| Export  | Contents                                                       |
| ------- | -------------------------------------------------------------- |
| `Mount` | `mount` and its types, `mount.Diagram` and `mount.ReturnType`. |

```ts
import type { Mount } from 'ondine'

// Accepts anything mount accepts
function show(diagram: Mount.mount.Diagram) {}
```
