# Stack

> Vitro pack: two thick glass rings stacked off-center on a column of three matte balls. A glossy hoop runs through the wall of each ring, poking out above and below as it precesses, another circles the ball inside, and thin glass collars cap the ends. The glass bends every color into its walls. A tap twists the rings apart and lets them settle. Raymarched in WebGL.

- Slug: `vitro-stack`
- Category: [Asset packs](https://assembli-rho.vercel.app/category/asset-packs.md)
- Subcategory: [Vitro](https://assembli-rho.vercel.app/category/asset-packs/vitro.md) (`vitro`)
- Type: component
- Tags: 3d, webgl, raymarching, asset, glass, abstract, refraction, rings, stack, spheres, hoops
- npm dependencies: none
- shadcn/ui dependencies: none
- Added: 2026-10-22
- Live preview: https://assembli-rho.vercel.app/preview/vitro-stack
- Page: https://assembli-rho.vercel.app/components/vitro-stack

## Install

One-time setup (needs a subscription):

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

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

```bash
npx shadcn@latest add @assembli/vitro-stack
```

Registry item JSON: https://assembli-rho.vercel.app/r/vitro-stack.json (send `Authorization: Bearer <api key>`)

## Code

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