---
title: "AI agents"
description: "Point your coding agent at these docs."
canonical_url: "https://kukson777.github.io/nuxt-image-viewer/docs/getting-started/ai-agents"
---
# AI agents

> Point your coding agent at these docs.

The module is built to be easy to use from an AI coding agent: every public type has JSDoc, the API is small and predictable, and this site serves its content as plain Markdown files an agent can read.

## llms.txt

<table>
<thead>
  <tr>
    <th>
      URL
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://kukson777.github.io/nuxt-image-viewer/llms.txt" rel="nofollow" target="_blank">
        <code>
          /llms.txt
        </code>
      </a>
    </td>
    
    <td>
      An index of every page with a short description.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://kukson777.github.io/nuxt-image-viewer/llms-full.txt" rel="nofollow" target="_blank">
        <code>
          /llms-full.txt
        </code>
      </a>
    </td>
    
    <td>
      The whole documentation in one Markdown file.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /raw/docs/<page>.md
      </code>
    </td>
    
    <td>
      Any page as Markdown, e.g. <a href="https://kukson777.github.io/nuxt-image-viewer/raw/docs/guide/open-from-code.md" rel="nofollow" target="_blank">
        <code>
          /raw/docs/guide/open-from-code.md
        </code>
      </a>
      
      .
    </td>
  </tr>
</tbody>
</table>

## A prompt that works

```md
Add nuxt-image-viewer to this Nuxt app (docs: https://kukson777.github.io/nuxt-image-viewer/llms-full.txt).
Use <ZoomImage> for the images in <file>, group them with data-image-viewer-group,
pass the natural width and height of each full image, and match the viewer colours
to our theme with the --image-viewer-* CSS variables.
```

## The cheat sheet

- **Mark images:** `<ZoomImage src width height caption?>` — width/height of the **full** image. Group with `data-image-viewer-group` on a container.
- **Options for one gallery:** wrap it in `<ImageViewerGroup :options="{ ... }">` — anything `open()` takes, buttons and arrows included.
- **Plain images:** `img[data-image-viewer]` plus optional `data-image-viewer-src|width|height|caption`.
- **From code:** `useImageViewer().open(items, index?, options?)` — auto-imported, client-only, items need only `src`.
- **Configure:** `nuxt.config` → `imageViewer` (`ModuleOptions`); per call with `ImageViewerOpenOptions`.
- **Style:** `--image-viewer-*` variables; `.image-viewer__*` BEM classes (unlayered CSS wins); `css: false` to start from scratch.
- **Types:** `import type { ImageViewerItem, ImageViewerOpenOptions, ImageViewerApi } from 'nuxt-image-viewer'`.


## Sitemap

See the full [sitemap](https://kukson777.github.io/nuxt-image-viewer/sitemap.md) for all pages.
