Copy and paste the snippet below into your HTML.

A demo by Jumalauta. Participated in the demo compo at the JML 18 years anniversary demoparty, won first place.

Might not work properly with Chrome, there may be some sync errors and glitches. Should work consistently with Edge. Cart works just fine in the PICO-8 application itself, of course.

UPDATE: Now fixed for 0.1.12! Which means it won't run correctly in older versions anymore, since it depends on time() for sync.