siinghd/rightnow

Live global mood map — WebSocket counts of what people are feeling right now

★ 0Forks 0HTMLGitHub ↗Compare

README

rightnow

A live mood map — pick a feeling or activity, see in real time how many people around the world picked the same.

What it does

  • WebSocket-backed live counts across ~50 categories (feelings, doing, life)
  • City is inferred from request headers; broadcast in the recent-activity feed
  • Stateless — everything lives in-memory in the Bun server, resets when the process restarts
  • Single static HTML page in public/ connects via /ws

Stack

Bun (native Bun.serve + WebSocket). No DB, no framework.

Run it

bun install
bun run dev      # watch mode
bun run start    # production

Notes

  • Listens on PORT env var, defaults to 3110.
  • No persistence — counts reset on restart by design.
  • Caddyfile and nginx.conf in the repo are the deployed reverse-proxy configs, kept for reference.

Contributors

siinghd

Issues