Skip to content
Source
Sign inSign up
jherr/labs-buddy

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 .buddy files.

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 .buddy files.
  • 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-core to draw and switch poses.
  • buddy-file loads clips and metadata that a wrapper passes to the renderer.
  • buddy-server runs AI generation for the builder and for the cards example.
  • buddy-ui calls buddy-server endpoints through the app that mounts it.

Where to start

  • Read README.md and docs/getting-started/overview.md.
  • Open packages/buddy-core/src/index.ts to see the core API.
  • Run apps/buddy-builder with pnpm dev to see the full system.