Skip to content

scriptogre/bad-apple

Repository files navigation

Bad Apple

The Bad Apple animation as ASCII art rendered in real-time from the server @ 60 FPS using htmx + sse extension + server-commands extension.

img.png

Quick Start

cp .env.example .env
docker compose up

How it works

The server-commands extension provides a special <htmx> tag. The server streams <htmx> tags ~60 times/second via SSE to update multiple elements in real-time:

data: <htmx target="#frames" swap="textContent">{frame}</htmx>
data: <htmx target="#progress-text" swap="textContent">{progress}%</htmx>

You can read more about it in the extension's README.md.

About

Bad Apple using htmx + sse ext. + server-commands ext.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published