Show HN: I saw this mind-blowing experiment, so I made a simple version of it https://ift.tt/RPpZQuE

Show HN: I saw this mind-blowing experiment, so I made a simple version of it Two browser windows (acting as socket clients) communicate their: - Screen dimensions - (screen.width, screen.height) - Window dimensions - (window.innerWidth, window.innerHeight) - Window X/Y position - (window.screenX, window.screenY) ...or whichever calculation works best for you. The original work by Bjorn Staal https://twitter.com/_nonfigurativ_/status/172732259457002734 used localStorage, but I found sockets more fun, because if tweaked a bit, this can be shared with friends. Here's a demo of how it works and the codebase: https://ift.tt/T6hbXzv https://ift.tt/CKyoQYM November 25, 2023 at 07:46PM

Comments

Popular posts from this blog

Show HN: Agent File (.af) – An open file format for agents https://ift.tt/fzI5HcG

Show HN: Sort lines semantically using llm-sort https://ift.tt/7vEeHKP

Show HN: AgentKit – JavaScript Alternative to OpenAI Agents SDK with Native MCP https://ift.tt/H4Kz5Vi