livatar
/livatar
Dodaje animowane awatary SVG i ikony do aplikacji webowej przez pakiet livatar, w tym w React, Vue i Svelte.
- Autor
- nuhmanpk ↗
- Repozytorium
- livatar ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 6
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Dodaje animowane awatary SVG i ikony do aplikacji webowej przez pakiet livatar, w tym w React, Vue i Svelte.
Wyzwalacze z opisu
Oryginalny opis (EN)
Add living, animated SVG avatars and UI icons to a web app with the livatar npm package (vanilla JS, React, Next.js, Vue, Svelte, web component, SSR). Use when the user wants avatars, mascot characters, animated icons, mood-reacting form helpers, or "livatar".
Jak działa
- Pick the entry point
- Examples
- Facts to get right
Podgląd SKILL.md
---
name: livatar
description: Add living, animated SVG avatars and UI icons to a web app with the livatar npm package (vanilla JS, React, Next.js, Vue, Svelte, web component, SSR). Use when the user wants avatars, mascot characters, animated icons, mood-reacting form helpers, or "livatar".
---
# livatar
Tiny, zero-dependency SVG avatars that are alive: they follow the cursor, blink, breathe, chew while you type, cover their eyes on password fields, and show 16 moods. Deterministic from a seed.
- Install: `npm i livatar`
- Full API (read first if unsure): https://nuhmanpk.github.io/livatar/llms-full.txt
- Short index: https://nuhmanpk.github.io/livatar/llms.txt
- Docs: https://nuhmanpk.github.io/livatar/docs/ · Builder: https://nuhmanpk.github.io/livatar/docs/#builder
- Icons: https://nuhmanpk.github.io/livatar/icons/
## Pick the entry point
| Need | Use |
|---|---|
| Static SVG string (SSR, email, `<img>`) | `createAvatar(style, opts)` from `livatar` |
| Animated, one style, smallest bundle | `mount(el, style, opts)` |
| Animated from a config/code, any style | `mountCode(el, config)` |
| React / Next.js | `<Livatar variant={buddy} />` or `<LivatarCode variant="buddy" />` from `livatar/react` (already `'use client'`) |
| Vue / Nuxt | `livatar/vue` |
| Any framework / plain HTML | `<live-avatar>` from `livatar/element` |
| Brand icons | `icon(name, opts)` from `livatar/icons` |
| Personality, AI assistant face, virtual pet, multiplayer, context reactions, text → mood | `livatar/life` |
| Ready-made React/Next components: checkout, cart, upload, loader, login form, password strength, AI assistant (Vercel AI SDK status), chat, meeting grid, toast, 404, background wall, pet, stack… (gallery: https://nuhmanpk.github.io/livatar/components/) | `livatar/components` |
## Examples
```js
import { mount, buddy } from 'livatar'
const h = mount(document.querySelector('#me'), buddy, { seed: 'ada', mood: 'happy', size: 64 })
h.emote('love', 900); h.nod() // handle: look talk blink poke emote nod shake set destroy
```
```tsx
import { LivatarCode } from 'livatar/react'
export const Avatar = ({ user }) => <LivatarCode variant="animal" seed={user.id} size={48} />
```
```js
// login form: covers eyes on password, reacts to validation
import { mount, bindForm, blob } from 'livatar'
const h = mount(el, blob, { seed: 'login' })
const f = bindForm(h, document.querySelector('form')) // f.success() / f.error()
```
```js
// theme toggle icon: sun in light, moon in dark
mountCode(btn, { style: 'planet', mood: dark ? 'sleepy' : 'happy', background: false,
options: { kind: dark ? 'moon' : 'sun', satellite: false, stars: false } })
```
```js
// livatar/life: give it a character, make it the face of your AI, or a pet
import { mount, bot, animal } from 'livatar'
import { personality, assistant, pet, group, feel, context } from 'livatar/life'
const me = personality(mount(a, bot, { seed: user.id }), { seed: user.id }) // same seed → same personality
me.react('success') // events: success error join leave mention celebrate…
const ai = assistant(mount(b, bot, { seed: 'helper' }))
ai.think(); const reply = await ai.stream(llmTokens) // talks per token, ends with a mood from the reply
const p = pet(mount(c, animal, { seed: 'mochi' }), { onChange: drawBars }); p.feed()
const room = group(); room.join(id, handle); room.message(id, text) // others look and react
feel('this is broken!!') // → 'angry'
```
```tsx
import { LivatarAssistant, LivatarMeet, LivatarLoader } from 'livatar/components' // 'use client' included
<LivatarAssistant variant={bot} status={status} text={reply} /> // status from useChat() works as-is
<LivatarMeet participants={[{ id: 'ada', speaking: true }, { id: 'bob', muted: true }]} />
<LivatarLoader status={isPending ? 'loading' : 'success'} />
```
## Facts to get right
- Styles: buddy animal monster ghost emoji memoji clay planet dino alien food plant initials bot blob pixel ui device fruit drink vehicle tech money home office dev human weather sport music sea bug magic party season tool anime notion chibi flat lowpoly sketch retro toon.
- planet kinds: earth saturn mars moon sun gas comet star heart cloud.
- Moods: neutral happy sad angry surprised sleepy love wink silly confused laugh cool cry scared smug starstruck.
- Every style option also accepts `'random'` (picked from the seed). Same seed → same avatar.
- `alive: false` renders static; animation respects `prefers-reduced-motion`.
- Wrap interactive avatars/icons in a real `<button>` with an `aria-label`; use `describe(config)` for alt text.
- Web component tag is `<live-avatar>` (not `<livatar-avatar>`).
- `livatar/life` personalities: cheerful shy grumpy curious lazy playful calm (or `{ seed }`). Pet stats: hunger energy happiness xp level stage asleep.
- Don't invent options. If unsure, fetch llms-full.txt.
Wersje
W bazie nie ma innych skilli o nazwie livatar.
Migawka bazy z 13.11.2026 · wersja paczki c19ca42663b7 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90animated-visualizations
Projektuje i buduje interaktywne animowane wizualizacje: diagramy architektury, symulacje protokołów i wyjaśnienia przepływu danych w SVG. - 100name2face
Generuje deterministyczne awatary SVG z imion, nazw użytkownika lub e-maili, tak że to samo wejście daje ten sam awatar. - 100awesome-agent-avatars
Dodaje animowanego, interaktywnego awatara agenta AI do aplikacji webowej lub desktopowej, reagującego na aktywność agenta. - 100shaders
Buduje efekty WebGPU z biblioteką Shaders w React, Vue, Svelte, Solid lub vanilla JS, np. tła, gradienty, szkło i cząsteczki. - 100icon-forge
Generuje ikony marki jako SVG i tworzy zasoby dla wszystkich platform: pakiet favicon (ICO, SVG z trybem ciemnym, apple-touch-icon), ikony PWA i ikony aplikacji mobilnych. - 100better-icons
Wyszukuje, porównuje i wyciąga ikony SVG z kolekcji Iconify, gdy potrzebne są gotowe do produkcji ikony interfejsu, spójna rodzina ikon lub dokładny kod SVG.