nowfound

Life & fun · November 25, 2023

IS

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:…

Visit github.comAlternativestop 4% of November 2023

In plain words

This project enables two browser windows to communicate and share their screen and window dimensions, positions, and sizes through socket connections. It uses WebSocket technology instead of localStorage, allowing the data exchange to be extended for sharing between multiple users. The tool is designed for developers and curious users interested in experimenting with browser window communication and real-time data synchronization across connected clients.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

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://github.com/Momciloo/fun-with-sockets/

More life & fun this month

the category →
  • TL

    Life & fun · 10d ago · louisabraham.github.io

  • Photosynthesis fires two of your iPhone

    Life & fun · 28d ago · photosynthesis.camera

  • SoloUno310

    Take control of hair pulling, nail biting & skin picking

    Life & fun · 28d ago · solouno.io

  • Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.

    Life & fun · 26d ago · everycube.alen.is

  • The Interactive 3D Encyclopedia

    Life & fun · 21d ago · expeditione.fun

  • Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…

    Life & fun · 27d ago · baselashraf81.github.io

Launched alongside, November 2023

the whole month →
  • Flowla1,120

    Digital sales rooms that wow buyers

    Growth · 2023 · flowla.com

  • Discover & book top creators to promote your product

    Growth · 2023 · passionfroot.me

  • Re:catch939

    If Google Form & Calendly had a baby

    Growth · 2023 · recatch.cc

  • Pitch 2.0887

    Create, share and analyze presentations faster than ever

    Work · 2023 · pitch.com

  • CRM built for modern teams & creators powered by AI

    AI · 2023 · leaddelta.com

  • Make your website lightning fast

    Dev tools · 2023 · speedvitals.com