# For agents

> Every page is available as Markdown or JSON. Every component is one bundle of files.

## Prompt

```
Use the Viewership UI library (copy-in Astro components) for UI work in this project.
Start from the index: https://viewership.ai/ui/llms.txt
For a component, read https://viewership.ai/ui/components/<slug>.md and create every file listed in https://viewership.ai/ui/components/<slug>.bundle.txt at its path.
Import src/styles/foundation.css once in the base layout. Style new UI with --vs-* tokens.
```

## Endpoints

- [llms.txt](https://viewership.ai/ui/llms.txt): Start here. Index of docs and components.
- [llms-full.txt](https://viewership.ai/ui/llms-full.txt): Every doc and component source in one file.
- [index.md](https://viewership.ai/ui/index.md): Overview, install steps, catalogue.
- [conventions.md](https://viewership.ai/ui/conventions.md): The component contract.
- [foundations.md](https://viewership.ai/ui/foundations.md): Design tokens and foundation.css.
- [registry.json](https://viewership.ai/ui/registry.json): Catalogue with dependencies and URLs.
- [foundation.css](https://viewership.ai/ui/raw/foundation.css.txt): Token stylesheet, raw.

## Per-component URLs

- `/components/<slug>.md`: One component: install, usage, example, props, source.
- `/components/<slug>.bundle.txt`: Every file needed, each with its destination path.
- `/components/<slug>.json`: Same as .md, structured, with file contents.
- `/raw/<slug>/<file>.txt`: One source file, raw.

Slugs are listed in `/registry.json` and `/llms.txt`.
