


YumYum is a small animation library for eating effects. You hand it an SVG path or an image, and it eats it bite by bite with crumbs flying off. It began as Cookie Cruncher, a cookie clicker toy, and became a library for loaders, progress indicators and delete animations in React or plain JavaScript.
Every animation starts from an SVG path. The library parses the path into a grid of where bites can land, so bites only happen inside the shape, and image eating uses an SVG mask cut from that same path. The bite logic is one engine shared by a React hook and a vanilla JS class, and crumbs are a small particle system: SVG in React, a canvas overlay in vanilla.
Status The repo is set up for npm as @snackstudio/yumyum 1.0.0, but the package is not on npm (404 on 2026-10-14); a demo is published on GitHub Pages.