Skip to main content
SSR

Installation

Install the Astro 7+ package with your preferred package manager.

Agent skill

Install the Astro integration skill for coding agents that support Agent Skills:

Configuration

Components use the production Pictum API by default. Add the integration when every component should use another deployment:
Pass options={{ baseUrl }} to one component to override this setting. Helpers imported from @pictum/astro are direct framework-independent helpers and do not read the Astro integration configuration; pass baseUrl to those calls explicitly.

Icons

Render an icon with Icon, or use icon() in the frontmatter script when you need its URL or SVG markup.
Icon fetches and caches canonical SVG markup during rendering, then emits inline SVG.

Avatars

Render a generated avatar or portrait with Avatar, or use avatar() to pass the selected image URL to another service. Generated avatars also provide canonical SVG markup.

QR codes

Render scannable text or URLs with QrCode, or use qrCode() when frontmatter code needs the image URL or canonical SVG.

Placeholders

Render square or custom-dimension images with Placeholder, or use placeholder() when frontmatter code needs the selected image URL or SVG markup.
Avatar, QR code, and placeholder components render native images; placeholders also include their logical width and height. Helpers return an asset immediately. Reading .url makes no request; .svg() fetches canonical SVG markup and is unavailable for portrait avatars.