# Ink Bloom

> WebGL ink dropped into a clear tank. Each drop sinks as a curling vortex ring with a stem back to where it fell, then slows and tears into wisps in the water's slow turbulence. By day the inks absorb the light behind them; at night milk and pigments glow against black. Drops arrive on their own; a click adds one and the pointer stirs the water.

- Slug: `ink-bloom`
- Category: [Backgrounds](https://www.assembli.design/category/backgrounds.md)
- Type: block
- Tags: webgl, shader, ink, water, organic, pointer, calm
- npm dependencies: motion
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/ink-bloom
- Page: https://www.assembli.design/components/ink-bloom

![Ink Bloom preview](https://www.assembli.design/thumbnails/ink-bloom-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `palette` | `InkPalette \| Inks` | `"sumi"` | Water and inks in light mode: a preset, or four colors (water first). |
| `darkPalette` | `InkPalette \| Inks` | `"milk"` | Water and inks in dark mode. |
| `mode` | `"auto" \| "light" \| "dark"` | `"auto"` | Follow the page theme, or force one. |
| `every` | `number` | `5` | Seconds between drops. 0 drops nothing on its own. |
| `scale` | `number` | `1` | Size of a bloom: below 1 is smaller, above 1 bigger. |
| `speed` | `number` | `1` | Time scale. 0 holds the ink still. |
| `interactive` | `boolean` | `true` | A press drops ink at the pointer, and moving it stirs the water. |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/ink-bloom/ink-bloom.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/ink-bloom
```

Registry item JSON: https://www.assembli.design/r/ink-bloom.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
