react-ai-avatar 0.1.0
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/LICENSE +21 -0
- package/README.md +310 -0
- package/dist/lib/GlbArkitAvatar-CcPWCsQV.cjs +1 -0
- package/dist/lib/GlbArkitAvatar-Dm9STiyR.js +232 -0
- package/dist/lib/VrmAvatar-CehRzj0J.js +224 -0
- package/dist/lib/VrmAvatar-D_jr2TOG.cjs +1 -0
- package/dist/lib/components/AudioVisualizer.d.ts +17 -0
- package/dist/lib/components/ContractAvatar.d.ts +25 -0
- package/dist/lib/components/DefaultAvatar.d.ts +37 -0
- package/dist/lib/components/DiceBearAvatar.d.ts +48 -0
- package/dist/lib/components/DiceBearThumb.d.ts +15 -0
- package/dist/lib/components/DoodleAvatar.d.ts +21 -0
- package/dist/lib/components/GeometricAvatar.d.ts +22 -0
- package/dist/lib/components/GlbArkitAvatar.d.ts +7 -0
- package/dist/lib/components/MemojiAvatar.d.ts +19 -0
- package/dist/lib/components/PixelArtAvatar.d.ts +23 -0
- package/dist/lib/components/RealtimeAvatar.d.ts +74 -0
- package/dist/lib/components/SquirrelAvatar.d.ts +29 -0
- package/dist/lib/components/VrmAvatar.d.ts +6 -0
- package/dist/lib/index.cjs +6 -0
- package/dist/lib/index.js +1231 -0
- package/dist/lib/lib/color.d.ts +6 -0
- package/dist/lib/lib/dicebear.d.ts +110 -0
- package/dist/lib/lib/index.d.ts +34 -0
- package/dist/lib/lib/mouthEngine.d.ts +37 -0
- package/dist/lib/lib/speechActivity.d.ts +51 -0
- package/dist/lib/lib/types.d.ts +22 -0
- package/dist/lib/lib/useAudioMouth.d.ts +20 -0
- package/dist/lib/lib/useAvatarRuntime.d.ts +39 -0
- package/dist/lib/lib/useReducedMotion.d.ts +5 -0
- package/dist/lib/lib/useStreamingTextActivity.d.ts +46 -0
- package/dist/lib/lib/vrm.d.ts +9 -0
- package/dist/lib/react-ai-avatar.css +1 -0
- package/dist/lib/useReducedMotion-BDcEizfP.js +104 -0
- package/dist/lib/useReducedMotion-BRDEmRNI.cjs +1 -0
- package/dist/lib/vrm.cjs +1 -0
- package/dist/lib/vrm.js +4 -0
- package/package.json +127 -0
package/package.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-ai-avatar",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A presentational React avatar for realtime LLM voice UIs — you bring the connection, it brings the face.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Ariel A. <ariel.a.deibe@gmail.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/aralde/react-ai-avatar.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/aralde/react-ai-avatar#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/aralde/react-ai-avatar/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"react",
|
|
17
|
+
"avatar",
|
|
18
|
+
"llm",
|
|
19
|
+
"voice",
|
|
20
|
+
"realtime",
|
|
21
|
+
"lip-sync",
|
|
22
|
+
"audio-reactive",
|
|
23
|
+
"gemini-live",
|
|
24
|
+
"openai-realtime",
|
|
25
|
+
"vrm",
|
|
26
|
+
"arkit",
|
|
27
|
+
"svg",
|
|
28
|
+
"talking-head"
|
|
29
|
+
],
|
|
30
|
+
"type": "module",
|
|
31
|
+
"main": "./dist/lib/index.cjs",
|
|
32
|
+
"module": "./dist/lib/index.js",
|
|
33
|
+
"types": "./dist/lib/lib/index.d.ts",
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"**/*.css"
|
|
36
|
+
],
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/lib/lib/index.d.ts",
|
|
40
|
+
"import": "./dist/lib/index.js",
|
|
41
|
+
"require": "./dist/lib/index.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./vrm": {
|
|
44
|
+
"types": "./dist/lib/lib/vrm.d.ts",
|
|
45
|
+
"import": "./dist/lib/vrm.js",
|
|
46
|
+
"require": "./dist/lib/vrm.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./style.css": "./dist/lib/react-ai-avatar.css"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist/lib"
|
|
52
|
+
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"dev": "tsx server.ts",
|
|
55
|
+
"build": "vite build && esbuild server.ts --bundle --platform=node --format=cjs --packages=external --sourcemap --outfile=dist/server.cjs",
|
|
56
|
+
"build:lib": "vite build --config vite.config.lib.ts && tsc --project tsconfig.lib.json",
|
|
57
|
+
"start": "node dist/server.cjs",
|
|
58
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
59
|
+
"lint": "tsc --noEmit",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:watch": "vitest",
|
|
62
|
+
"prepublishOnly": "npm run test && npm run build:lib"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@dicebear/collection": "^9.0.0",
|
|
69
|
+
"@dicebear/core": "^9.0.0",
|
|
70
|
+
"@pixiv/three-vrm": "^3.0.0",
|
|
71
|
+
"@react-three/drei": "^9.0.0 || ^10.0.0",
|
|
72
|
+
"@react-three/fiber": "^8.0.0 || ^9.0.0",
|
|
73
|
+
"motion": "^11.0.0 || ^12.0.0",
|
|
74
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
75
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
76
|
+
"three": ">=0.160.0"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"@dicebear/collection": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"@dicebear/core": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@pixiv/three-vrm": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@react-three/drei": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@react-three/fiber": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"three": {
|
|
95
|
+
"optional": true
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"devDependencies": {
|
|
99
|
+
"@dicebear/collection": "^9.4.2",
|
|
100
|
+
"@dicebear/core": "^9.4.2",
|
|
101
|
+
"@google/genai": "^1.29.0",
|
|
102
|
+
"@pixiv/three-vrm": "^3.5.3",
|
|
103
|
+
"@react-three/drei": "^10.7.7",
|
|
104
|
+
"@react-three/fiber": "^9.6.1",
|
|
105
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
106
|
+
"@types/express": "^4.17.21",
|
|
107
|
+
"@types/node": "^22.14.0",
|
|
108
|
+
"@types/three": "^0.184.1",
|
|
109
|
+
"@types/ws": "^8.18.1",
|
|
110
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
111
|
+
"autoprefixer": "^10.4.21",
|
|
112
|
+
"dotenv": "^17.2.3",
|
|
113
|
+
"esbuild": "^0.28.0",
|
|
114
|
+
"express": "^4.21.2",
|
|
115
|
+
"lucide-react": "^0.546.0",
|
|
116
|
+
"motion": "^12.0.0",
|
|
117
|
+
"react": "^19.0.0",
|
|
118
|
+
"react-dom": "^19.0.0",
|
|
119
|
+
"tailwindcss": "^4.1.14",
|
|
120
|
+
"three": "^0.184.0",
|
|
121
|
+
"tsx": "^4.21.0",
|
|
122
|
+
"typescript": "~5.8.2",
|
|
123
|
+
"vite": "^6.2.0",
|
|
124
|
+
"vitest": "^3.2.6",
|
|
125
|
+
"ws": "^8.21.0"
|
|
126
|
+
}
|
|
127
|
+
}
|