Installation
Install the Svelte 5+ package with your preferred package manager. Use a Svelte-aware bundler so it resolves the package’ssvelte export.
Agent skill
Install the Svelte integration skill for coding agents that support Agent Skills:Icons
Render an icon withIcon, or use icon() when you need its URL or SVG markup in a script.
Avatars
Render a generated avatar or portrait withAvatar, 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 withQrCode, or use qrCode() when script code needs the image URL or canonical SVG.
Placeholders
Render square or custom-dimension images withPlaceholder, or use placeholder() when script code needs the selected image URL or SVG markup.
Use reactive helpers
UseuseIcon, useAvatar, useQrCode, and usePlaceholder with values or getter functions. Read the current asset through .current.
icon(), avatar(), qrCode(), and placeholder() helpers. Raw helpers return an asset immediately. Reading .url makes no request; .svg() fetches canonical SVG markup and is unavailable for portrait avatars.
Custom deployment
You do not need a provider to use Pictum’s production API. Components and reactive helpers work immediately after installation. Only addPictumProvider when a subtree should use another Pictum deployment:
options={{ baseUrl }} to one component or pass options to a use* reactive helper to override the provider. Raw helpers do not read provider context; pass baseUrl directly to those calls.