1 pointby froemic5 hours ago1 comment
  • froemic5 hours ago
    I built this after making a few Codex-style pets and wanting an easy way to embed them in web apps.

    The core renderer is dependency-free TypeScript. There are wrappers for React, Vue, Svelte, Solid, and Angular. Pets are spritesheet-based, draggable, controllable from app code, and can run occasional idle actions.

    -> Demo: https://froemic.github.io/codex-pets-web/ -> GitHub: https://github.com/FroeMic/codex-pets-web

    I’d be interested in feedback on the API design, especially the provider/controller model for controlling multiple pets in one app.