Accessible by default
Native buttons, keyboard movement, focus restoration, coarse-pointer controls, and a quiet reduced-motion mode.
A tiny JavaScript SDK · Kavana included
One Web Component brings transparent atlas animation, roaming, drag, sleep, tuck, persistence, keyboard controls, touch support, and reduced motion.
CDN quick-start
<script src="https://unpkg.com/codex-pet-companion@0.3.1/dist/codex-pet-companion.global.js"
integrity="sha384-HCdZidL2jzxEW9SQR6w9TAZGehFjyRvAFQwUvc+nBeiFZdpNVy5sSRFZtQRZD4II"
crossorigin="anonymous"></script>
<codex-pet-companion></codex-pet-companion>
Quick-start network behavior: this pinned CDN bundle also loads Kavana’s default pet.json and spritesheet.webp from unpkg. It is not a self-hosted setup.
<script src="/vendor/codex-pet-companion.global.js"></script>
<codex-pet-companion
manifest-url="/pets/kavana/pet.json"
atlas-url="/pets/kavana/spritesheet.webp">
</codex-pet-companion>
Self-host the bundle and both pet files, then use manifest-url and atlas-url. Other observed attributes are name, mode, state, and scale. Or run npm install codex-pet-companion.
Native buttons, keyboard movement, focus restoration, coarse-pointer controls, and a quiet reduced-motion mode.
Self-host the JavaScript bundle, pet.json, and atlas, then provide their local URLs explicitly. No tracker, backend, or private Codex API.
The hosted codex-pet-web skill validates the pet, preserves the site design, and shows Kavana doing zoomies while commands run.