$ show hugomd/parrot.live
A minimalist Node.js HTTP server that streams an animated ASCII art party parrot to curl clients. The server loads ten ASCII frames from local files into memory, colors them randomly from a palette, and streams them with a 70ms interval, respecting backpressure. It also supports an optional `?flip=true` query parameter to mirror the animation horizontally. The primary entry point is `index.js`, with an `nginx.conf` for reverse proxy deployment and a PowerShell script for Windows clients. The system is a single-file monolith with no database, no external APIs, and two npm dependencies (colors and mz). It is designed for a single playful purpose: `curl parrot.live` displays the animated parrot in terminals. The code is straightforward, functional, but lacks tests, CI, or modularity beyond the single server file.
The LLM identified 1 files worth highlighting for reuse:
The `streamer` function encapsulates the animation loop with proper backpressure handling via Node.js streams. It uses a closure to manage state (frame index, color, timer), respects stream 'drain' events, and returns a cleanup function. While tightly coupled to the global frame arrays and color selection, this pattern is a clean example of streaming dynamic content over HTTP and could be extracted with minor modifications for any frame-based animation service.