# Hamlet Pack

> The whole Hamlet asset pack in one install: ten toy diorama scenes floating in a sky that keeps the time. One clock drives the sky, the sun and moon on their arcs, stars and clouds, and every island: scrub the day or play it through and shadows swing round, then windows and lamps come on island by island. Five palettes, plus HamletSky, HamletIsland, a 24-hour scrubber and a palette picker.

- Slug: `hamlet-pack`
- Category: [Asset packs](https://www.assembli.design/category/asset-packs.md)
- Subcategory: [Hamlet](https://www.assembli.design/category/asset-packs/hamlet.md) (`hamlet`)
- Type: block
- Tags: 3d, webgl, asset-pack, diorama, isometric, day-night, houses, city, landscape, illustration
- npm dependencies: motion
- shadcn/ui dependencies: @assembli/hamlet-alpine, @assembli/hamlet-beach, @assembli/hamlet-canal, @assembli/hamlet-city, @assembli/hamlet-cottage, @assembli/hamlet-desert, @assembli/hamlet-farm, @assembli/hamlet-lakeside, @assembli/hamlet-lighthouse, @assembli/hamlet-suburb
- Added: 2026-10-23
- Live preview: https://www.assembli.design/preview/hamlet-pack
- Page: https://www.assembli.design/components/hamlet-pack

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

```bash
npx shadcn@latest add @assembli/hamlet-pack
```

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