WeSearch

Show HN: Embed your Codex pets in React apps

·2 min read · 0 reactions · 0 comments · 4 views
#react#javascript#web development#animation#npm#Plannotator#Codex Pets React#Tater#SpriteAnimator#PetWidget#usePetController#petReducer
Show HN: Embed your Codex pets in React apps
⚡ TL;DR · AI summary

Plannotator has released a React package called Codex Pets React for integrating Codex pet spritesheets into web applications with declarative components and state management. The package provides tools like SpriteAnimator, PetWidget, and state hooks for animation and interaction. An example app demonstrates features like dragging, pinning, animation control, and live state viewing.

Key facts
Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

Codex Pets React Declarative React components and state helpers for Codex pet spritesheets. Brought to you by Plannotator, the review surface for agent work: use it before an agent starts to sharpen plans, and after an agent finishes to review code. The package includes: SpriteAnimator for atlas row/frame playback. PetWidget for fixed-position rendering, dragging, pinning, and animation completion events. petReducer and usePetController for state-driven app integration. A Tater atlas preset that matches the packaged Codex pet asset. Install npm install codex-pets-react Example App The plannotator pet playground lives in examples/plannotator-pet.

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub