3 ms·
September 22 - September 23, 2021: puppetromium - "World's simplest browser" - a single file, "remote browser", using MJPEG streamed viewport, CSS breakpoint si
by keepamovin 3y ago
September 22 - September 23, 2021: puppetromium - "World's simplest browser" - a single file, "remote browser", using MJPEG streamed viewport, CSS breakpoint sizing hack, image-button form control to capture click coordinates to server, and NO client-side JavaScript.^0
I wanted to see if I could make a JavaScript-less "remote browser" that essentially worked. Mainly because there was so much JavaScript in the client for my actual, working, remote browser.
I found out: it is possible. But it ain't pretty! Hahaha. Some pretty cool hacks in there tho. I'm especially proud of the CSS code for probing the viewport size, and how is synthesizes a bunch of cool, slightly fringe / retro web platform techniques like: <input type=image>, Motion JPEG, pinging a sizing URL based on CSS @media query.
I also wanted to use puppeteer, as I didn't even use it 1 bit for my actual remote browser, and puppeteer was such a big thing, I wanted to use it! Haha :)
[0]: https://github.com/dosyago/puppetromium/commits/main/src/index.js https://github.com/dosyago/puppetromium/commits/main/src/ind...