bible-strong-avatar-lab/packages/avatar-web
smontlouis 2386b78817 feat(runtime): unify React and ESM avatar exports
Add shared core-backed React and browser runtimes, continuous playback transitions, export previews and API documentation. Package the JavaScript export as a CDN-powered demo with the portable avatar definition.
2026-08-17 17:27:20 +02:00
..
src feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00
package.json feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00
README.md feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00
tsconfig.build.json feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00
tsconfig.json feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00
vite.config.ts feat(runtime): unify React and ESM avatar exports 2026-08-17 17:27:20 +02:00

@bible-strong/avatar-web

DOM renderer for Bible Strong procedural avatars. It uses @bible-strong/avatar-core for schema validation, playback and rendering, without requiring React.

pnpm add @bible-strong/avatar-web
import { createAvatar } from '@bible-strong/avatar-web'
import definition from './cloudee.avatar.json'

const avatar = createAvatar('#avatar', {
  definition,
  defaultAnimation: 'idle',
})

avatar.play('happy')
avatar.pause()
avatar.stop()

For a browser project without a bundler, load an ESM build through an import map or CDN and fetch the definition JSON before calling createAvatar.

This package is private while copyright ownership, Apache-2.0 relicensing and repository metadata are confirmed. Local tarballs are for verification only and must not be published.