Getting Started

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

URL
/llms.txtAn index of every page with a short description.
/llms-full.txtThe whole documentation in one Markdown file.
/raw/docs/<page>.mdAny page as Markdown, e.g. /raw/docs/guide/open-from-code.md.

A prompt that works

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'.