wobnimo 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -12,7 +12,7 @@ npm i wobnimo
12
12
  No build step? Add one tag instead:
13
13
 
14
14
  ```html
15
- <script type="module" src="https://cdn.jsdelivr.net/npm/wobnimo@1/dist/wobnimo.js"></script>
15
+ <script type="module" src="https://cdn.jsdelivr.net/npm/wobnimo@0.1/dist/wobnimo.js"></script>
16
16
  ```
17
17
 
18
18
  ## Render it
package/README.md ADDED
@@ -0,0 +1,150 @@
1
+ <div align="center">
2
+
3
+ <a href="https://pouryaak.github.io/wobnimo/">
4
+ <picture>
5
+ <source srcset="https://pouryaak.github.io/wobnimo/media/team.webp" type="image/webp">
6
+ <img src="https://pouryaak.github.io/wobnimo/media/team.gif" alt="The Wobnimo team: ten animated mascots lined up like a team photo, celebrating in a wave" width="900">
7
+ </picture>
8
+ </a>
9
+
10
+ # wobnimo
11
+
12
+ ### Give your app a face.
13
+
14
+ Ten living mascots on one featherweight animation engine for the web.
15
+ Real 3D, every mood, ~25&nbsp;KB, zero dependencies — and built so an AI agent can wire it up for you.
16
+
17
+ [![npm](https://img.shields.io/npm/v/wobnimo?color=d9f55c&labelColor=16181d)](https://www.npmjs.com/package/wobnimo)
18
+ [![gzip](https://img.shields.io/badge/one%20mascot-~25%20KB%20gzip-d9f55c?labelColor=16181d)](https://pouryaak.github.io/wobnimo/)
19
+ [![zero deps](https://img.shields.io/badge/dependencies-0-d9f55c?labelColor=16181d)](https://www.npmjs.com/package/wobnimo?activeTab=dependencies)
20
+ [![license](https://img.shields.io/npm/l/wobnimo?color=d9f55c&labelColor=16181d)](./LICENSE)
21
+
22
+ **[▶ Live playground](https://pouryaak.github.io/wobnimo/)** · **[Quickstart](#add-one-in-10-seconds)** · **[For AI agents](#for-ai-agents)**
23
+
24
+ </div>
25
+
26
+ ---
27
+
28
+ Chatbots, copilots and apps feel alive when something on screen reacts. Wobnimo gives you a
29
+ character that **thinks while it works, talks while it streams, and celebrates when it's done** —
30
+ in a tag you drop anywhere, with no build step and nothing to configure.
31
+
32
+ ## Add one in 10 seconds
33
+
34
+ No build, no npm, no framework. Two lines in any HTML page:
35
+
36
+ ```html
37
+ <script type="module" src="https://cdn.jsdelivr.net/npm/wobnimo@0.1/dist/wobnimo.js"></script>
38
+
39
+ <wobnimo-mascot character="mochi" state="thinking"></wobnimo-mascot>
40
+ ```
41
+
42
+ That's it — a living mascot is on your page. [Try every character and mood in the playground →](https://pouryaak.github.io/wobnimo/)
43
+
44
+ ## Meet the team
45
+
46
+ **Volt** the LED robot · **Pip** the songbird · **Mochi** the jelly · **Boo** the ghost · **Inky** the octopus ·
47
+ **Miso** the plush cat · **Tad** the tree frog · **Pebble** the penguin · **Rex** the baby dino · **Microduck** the robot duck.
48
+
49
+ Each has its own body, surface and personality, and every one of them plays all ten moods.
50
+ Recolour any of them to match your brand, or write your own as plain data.
51
+
52
+ ## Give your AI a face
53
+
54
+ This is the part that matters. An assistant that just spins a loader feels like a machine.
55
+ Wire a mascot to what your app is doing and it feels like someone is in there.
56
+
57
+ <div align="center">
58
+ <img src="https://pouryaak.github.io/wobnimo/media/moods.png" alt="Mochi in six moods: listening, thinking, speaking, working, celebrating, sleeping" width="900">
59
+ </div>
60
+
61
+ Using the [Vercel AI SDK](https://ai-sdk.dev)? It's **one prop** — the mascot thinks, speaks,
62
+ celebrates and shows errors for you:
63
+
64
+ ```tsx
65
+ import { Mascot } from 'wobnimo/react';
66
+
67
+ const { status } = useChat();
68
+
69
+ <Mascot character="mochi" status={status} />
70
+ ```
71
+
72
+ The ten states map straight onto what an app or agent actually does:
73
+
74
+ | State | Show it when | | State | Show it when |
75
+ | --- | --- | --- | --- | --- |
76
+ | `idle` | waiting for the user | | `working` | running a tool or long task |
77
+ | `listening` | the user is typing | | `error` | something failed |
78
+ | `thinking` | request sent, no reply yet | | `celebrating` | a task finished |
79
+ | `speaking` | a reply is streaming | | `surprised` | an unexpected event |
80
+ | `sleeping` | idle for a while | | `sad` | it couldn't help |
81
+
82
+ ## For AI agents
83
+
84
+ Wobnimo is built to be installed *by* an agent. On the [playground](https://pouryaak.github.io/wobnimo/),
85
+ every character has a **Copy for agent** button: it copies one self-contained prompt that tells any
86
+ agent (Claude Code, Cursor, Copilot, v0…) exactly what to install and how to wire the mascot to your
87
+ app's real events. Paste it, and it's done.
88
+
89
+ Prefer to point your agent at the docs? Everything is at
90
+ **[pouryaak.github.io/wobnimo/llms.txt](https://pouryaak.github.io/wobnimo/llms.txt)**, and the package
91
+ ships an `AGENTS.md` so an agent inspecting `node_modules/wobnimo` already knows the rules.
92
+
93
+ ## Use it with a bundler
94
+
95
+ ```bash
96
+ npm i wobnimo
97
+ ```
98
+
99
+ **React / Next.js** (`"use client"` in app-router files):
100
+
101
+ ```tsx
102
+ import { Mascot } from 'wobnimo/react';
103
+
104
+ <Mascot character="volt" state="thinking" style={{ width: 160, height: 160 }} />
105
+ ```
106
+
107
+ **Vanilla JS, Vue, Svelte, anything** — register the element once, then use the tag:
108
+
109
+ ```ts
110
+ import 'wobnimo/element';
111
+ // <wobnimo-mascot character="pip" state="speaking"></wobnimo-mascot>
112
+ ```
113
+
114
+ **Control it in code:**
115
+
116
+ ```ts
117
+ import { mount } from 'wobnimo';
118
+ import { mochi } from 'wobnimo/characters/mochi';
119
+
120
+ const mascot = mount(document.querySelector('#mascot'), mochi);
121
+ agent.on('status', (s) => mascot.setState(s)); // idle · thinking · speaking · …
122
+ mascot.setPalette({ jelly: '#ff5d8f' }); // recolour live, no rebuild
123
+ ```
124
+
125
+ Import one character (`wobnimo/characters/mochi`, ~1.2 KB) or the whole cast (`wobnimo/characters`) —
126
+ you only ship what you use.
127
+
128
+ ## Why Wobnimo
129
+
130
+ - **Tiny.** One mascot is ~25 KB gzipped, the whole thing has **zero dependencies**, and no Three.js.
131
+ - **Real, not a sprite.** Characters are signed-distance 3D with studio lighting, so they're crisp at any size and animate from springs, not canned clips.
132
+ - **Characters are data.** A character is plain JSON — parts, materials, bones. Recolour, remix with `variant()`, or write your own.
133
+ - **Drops in anywhere.** A web component for every framework, a first-class React wrapper, and a CDN tag for no-build pages.
134
+ - **Respectful.** Honours `prefers-reduced-motion`, sleeps when off-screen, and shares one WebGL context so a page can hold a whole cast.
135
+
136
+ ## Links
137
+
138
+ - 🎨 **[Live playground](https://pouryaak.github.io/wobnimo/)** — every character, every mood, copy-paste install
139
+ - 📦 **[npm](https://www.npmjs.com/package/wobnimo)**
140
+ - 🤖 **[llms.txt](https://pouryaak.github.io/wobnimo/llms.txt)** — the whole API for agents
141
+
142
+ ---
143
+
144
+ <div align="center">
145
+
146
+ If Wobnimo makes your app smile, **drop a ⭐** — it genuinely helps other people find it.
147
+
148
+ Built with care. MIT licensed. · Next: a WebGPU renderer, a Rust + WebAssembly core, a visual editor.
149
+
150
+ </div>