@pictum/core provides framework-independent helpers for JavaScript and TypeScript applications. Generate asset URLs synchronously or retrieve canonical SVG markup on demand without a component runtime.
The helpers are SSR-friendly and work in browsers or server runtimes with the standard URL, TextEncoder, and fetch APIs.
Installation
Install the core package with your preferred package manager.Icons
Identify an icon by collection and name. Reading.url makes no network request; call .svg() when you need canonical SVG markup.
Avatars
Choose a stable seed, avatar variant, and image format..url. Calling .svg() retrieves the canonical SVG for the same seed and variant.
QR codes
Pass the text or URL to encode and select an output format.Placeholders
Create square or custom-dimension placeholders with optional text, colors, and retina density.Use another Pictum deployment
Pass an absolutebaseUrl to any helper when you use a custom or staging deployment.