Releases: go4cas/cast
Releases · go4cas/cast
v1.9.0 — Talking avatars speak
Tier 2 of talking avatars: they now speak out loud with lips synced to the words.
Added
cast-avatar/speak—speak(target, text, opts?)readstextwith the browser's native Web Speech API (no dependency) and flaps the mouth of an avatar rendered withanimate: 'talk'in time with it;stopSpeaking(target?)cancels. Returns aPromisethat resolves when speech ends. SSR-safe (a no-op with no speech engine) and respectsprefers-reduced-motion(speaks, but skips mouth motion). The mouth rests still once speech ends.<cast-avatar>gains a.speak(text, opts?)method and now accepts ananimateattribute (so<cast-avatar animate="talk">is speakable).
🤖 Generated with Claude Code
v1.8.0 — Talking avatars
Added
animate: 'talk'— a subtle mouth flap for the face styles (portrait,studio,cartoon), as if the avatar is speaking. The CSS is scoped to the individual avatar (so it never animates others on the page) and respectsprefers-reduced-motion. Off by default; existing output is unchanged unlessanimate: 'talk'is set.
🤖 Generated with Claude Code
v1.7.0
Changed
studioredesigned as a semi-realistic, sculpted portrait, replacing the previous softly-shaded version (which had grown too close toportrait). It shares the face trait set withportrait— so a given seed reads as the same person — and pushes fidelity further: afaceShape-driven head silhouette, multi-layer color-agnostic skin modelling (vertical light, upper-left key light, rim-shadow vignette, cheekbone highlights, jaw/temple core shadows), a sculpted nose, volumetric upper/lower lips, almond lidded eyes with a gradient iris and catch-light, and hair with a gradient sheen. Deterministic, dependency-free, and SSR-safe like the other styles.- Trait coverage filled in so selections are honoured consistently:
portraitnow renderseyebrows,nose,freckles,blush,earrings, all head coverings (beanie/cap/bucket/turban/hijab) and afaceShape-driven head;minimalandlinegaineyebrows, eye-shape variants, head coverings andearringsin their own visual language (linestays monochrome). The abstract styles (pixel/initials/bot/shapes/mesh) continue to derive everything from the seed. - Demo playground now hides controls that the selected style doesn't render, so every visible control affects the avatar.
Note: the
studioredesign and the new trait coverage change the rendered output for some existing seeds.
Full changelog: v1.6.0...v1.7.0
v1.6.0
Added
animate: 'blink'— a subtle eye-blink for the face styles (portrait,studio,cartoon). The CSS is scoped to the individual avatar (so it never blinks others on the page) and respectsprefers-reduced-motion. Non-blink output is unchanged.- Status badge
iconoption —status: { state, icon: true }draws a colorblind-safe shape glyph on the dot (check / minus / clock / cross), so presence is distinguishable without relying on color alone. Defaults tofalse. - Per-member group looks —
createAvatarGroupnow accepts member objects ({ seed, ...perMemberOptions }) alongside plain seeds, so a customized member renders with its own look inside the group mark. Plain-seed groups are unchanged.
The demo gains a badge-icon toggle, a blink option, per-person group export, and the Team Builder now remembers your last team via localStorage.
Full changelog: v1.5.0...v1.6.0
v1.5.0
Added
decorativeoption — render the SVG witharia-hidden="true"(and no role/label/title) so assistive tech skips it, for avatars that sit beside their own visible name. Defaults tofalse(a labelledrole="img"image).- A native
<title>element is now emitted alongside the existingaria-label, giving a hover tooltip and broader screen-reader support. - Colorblind-safe palette preset (Okabe–Ito based). Opt in with
palette: 'accessible'(or'colorblind-safe'); it recolors the abstract styles, clothing, and inks while keeping skin and hair natural. Exported asCOLORBLIND_SAFE_PALETTE/PALETTE_PRESETS, andresolvePalettenow accepts a preset name and is re-exported from the package entry.
The demo also gains an Accessible theme and a favicon.
Full changelog: v1.4.0...v1.5.0
Cast v1.4.0
Added
createAvatarGroup(seeds, options)— compose several member seeds into one cohesive group mark (a clipped mosaic of 1–4 tiles, with extra members collapsing into a+Nchip). Great for team/squad/group-DM icons.mergeSeeds(...seeds)— combine seeds into a single deterministic, order-independent seed for a stable "pair"/relationship avatar.
Cast v1.3.0
Added
animateoption — a subtle looping animation (breathe,bounce) applied to the avatar content via deterministic, dependency-free CSS that respectsprefers-reduced-motion. Works on every style.- Documented edge / serverless rendering:
createAvatarand the other string helpers have no DOM/Node APIs, so they run on Cloudflare Workers, Vercel/Netlify Edge, Deno, and Bun. Added an "Edge & server rendering" guide and example.
Cast v1.2.0
Added
expressionoption — a shorthand (neutral,happy,sad,surprised,thinking,wink) that presets eyes/mouth/eyebrows while keeping identity seed-stable, so the same avatar can reflect a mood or agent state. Explicittraitsstill take precedence; applies to the face styles.
Cast v1.1.0
Added
studiostyle — a softly-shaded, more realistic portrait (gradient skin, detailed irises with a catch-light, shaped lips). Reuses the face trait set.
Fixed
- Open-mouth (
mouth: 'open') on thecartoon,portrait, andstudiostyles drew a stray line across the mouth; it now renders as parted lips with the lip below the opening.
Cast v1.0.0
First stable release. The public API and trait/option vocabulary are now
considered stable and follow semantic versioning — a change to the generated
SVG for an existing seed will be a major bump.
Added
- Brand logo (
logo.svg). - Redesigned product landing page / demo.