# Sea Glint

> WebGL sea horizon at golden hour, moonlit after dark. Eighteen wave trains roll at deep-water speeds, and each hands its slope to a roughness lobe once a pixel can't resolve it, so the glitter sparkles up close and calms into a streak at the hazy horizon. The sun follows the pointer; stirring freshens the wind. Pauses off-screen; still frame for reduced motion.

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

![Sea Glint preview](https://www.assembli.design/thumbnails/sea-glint-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `hour` | `SeaHour` | `"golden"` | Light in light mode. |
| `darkHour` | `SeaHour` | `"moon"` | Light in dark mode. |
| `mode` | `"auto" \| "light" \| "dark"` | `"auto"` | Follow the page theme, or force one. |
| `horizon` | `number` | `0.34` | Where the horizon sits, as a fraction of the height from the bottom. |
| `sun` | `number` | `0.68` | Where the sun sits across the sky, 0 (left) to 1 (right), when the pointer is away. |
| `wind` | `number` | `0.5` | Wind on the water, 0 (glassy) to 1 (choppy). Moving the pointer freshens it. |
| `speed` | `number` | `1` | Time scale. 0 holds the sea still. |
| `interactive` | `boolean` | `true` | The sun follows the pointer across the sky. |

## 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/sea-glint/sea-glint.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/sea-glint
```

Registry item JSON: https://www.assembli.design/r/sea-glint.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.
