Architecture
Describes commit 5896f8bUpdated Made by anthropic/claude-haiku-5.5
Overview
Buddy is a monorepo for animated avatar characters that react to app state with looping video clips.
What it does#
- Renders a buddy from a static avatar and pose clips.
- Swaps clips through a small state machine as the app changes.
- Lets customers build buddies with an AI-backed builder.
- Stores buddies in portable
.buddyfiles.
Main parts#
packages/buddy-core: framework-neutral renderer, controller and presets.packages/buddy-react,packages/buddy-solid,packages/buddy-vue: framework wrappers over core.packages/buddy-file: reads and writes.buddyfiles.packages/buddy-server: server helpers for AI generation, storage and chat.packages/buddy-ui: the builder UI, built on React.apps/buddy-builder,apps/solid-example,apps/vue-example: runnable apps.examples/cards: a card game that uses a custom buddy.
How the parts work together#
- The wrappers call
buddy-coreto draw and switch poses. buddy-fileloads clips and metadata that a wrapper passes to the renderer.buddy-serverruns AI generation for the builder and for the cards example.buddy-uicallsbuddy-serverendpoints through the app that mounts it.
Where to start#
- Read
README.mdanddocs/getting-started/overview.md. - Open
packages/buddy-core/src/index.tsto see the core API. - Run
apps/buddy-builderwithpnpm devto see the full system.