Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.14 KB

README.md

File metadata and controls

13 lines (7 loc) · 1.14 KB

🎈 globe-party

CobePhenomenonPartyKit

image

You've always wanted to show a spinning globe on your website that shows the location of every person on that page, right? Well, now you can!

This project has been made possible by the amazing Cobe and Phenomenon libraries. It's a fun little experiment that I hope you'll enjoy.

The "server" is a PartyKit module that listens for incoming connections, reads location information from Cloudflare headers, and broadcasts that information to all connected clients. The "client" is a React app that connects to the server and displays the location of all connected clients on a spinning globe. Each of these is a 100 loc file, comments and all, that you can read in a few minutes.

Feel free to fork and remix!