Show HN: Tamagotchi-like characters for AI assistants in JavaScript (github.com)

39 points by barqawiz ↗ HN
I've developed a Tamagotchi-like virtual characters drawn in JavaScript. These characters can be manually controlled or interact dynamically with AI assistants, adding a visual identity and fun to AI.

Imagine having an AI character that responds to user requests with different states, making interactions playful and engaging.

Demo: https://barqawiz.github.io/Tamagotchi/

Code: https://github.com/Barqawiz/Tamagotchi

4 comments

[ 3.5 ms ] story [ 18.2 ms ] thread
> Connect this with an AI assistant to automatically update the character.

How does one do this? Perhaps an example in the README would be helpful.

Thank you for the suggestion! I’ll add an example in the README.

The character is rendered with JavaScript (no images), this enable the AI assistant to manipulate the animation directly.

Another approach is to use the pre-set button with different reactions, it can be given directly to the AI model through its tool functionality. commonly available in models like ChatGPT and Claude.