HeadlinesBriefing favicon HeadlinesBriefing.com

Town Square adds real‑time visitor presence to any site

Hacker News •
×

Town Square offers a lightweight presence layer that turns any static site into a shared space. By dropping a single <script> tag before </body>, developers add real‑time avatars that appear as visitors arrive. The snippet requires no build step or external dependencies, letting sites instantly display who is browsing without accounts or algorithms. It works across browsers and costs nothing to host.

Upon loading, visitors see each other as colored dots that move with arrow keys or tap gestures. Pressing T opens a chat bubble, J jumps toward nearby users, and H sends a high‑five. Interaction is limited to three keyboard shortcuts, keeping the UI minimal while delivering a sense of shared moment on otherwise silent pages. The experience runs entirely client‑side, avoiding any server load.

Early adopters report spontaneous smiles and brief conversations during coffee breaks, calling the feature “fun and playful.” A public map lists registered Town Squares, each accumulating messages and GitHub stars as developers showcase their implementations. By embedding this snippet, sites join a growing network of inhabited corners, turning passive reading into a modest social encounter. It requires only a single line of code to participate.