~/talk

🚨 Live On the Edge 🚨

Talkat Frontend Nation 2024 Β· 2024-06-04..06-07Β· [web-platform, frontend-architecture]
slides:none on file

Live-codes a multiplayer web app using Nu/Nitro, pnpm and the built-in storage/KV layer, exposes API routes for get/put, and wires websockets (cross-ws) for real-time sync and pub/sub (broadcast on Node/Bun). Implements a shared-state composable that syncs cursors across tabs and phone, swaps full sync for tiny patches using Mendoza WASM diffing and an apply-patch step, and demonstrates deployment options including Cloudflare Pages. It has small hiccups during the demo but ultimately syncs state live across clients.

AI-written summary Β· about

  1. 0:00Welcome
  2. 1:03New Nu project setup
  3. 2:07Shared state server-client
  4. 5:21Server API for state
  5. 7:06Nu storage layer
  6. 9:16State sync with prefetch
  7. 12:32WebSocket real-time sync
  8. 16:04WebSocket composable
  9. 21:18Multiplayer mouse cursors
  10. 26:41User cursors and colors
  11. 29:35State sync optimization
  12. 35:42Mendoza state patches
  13. 39:13Deploy to edge
  14. 41:51Live demo
  15. 42:34Answering questions about Nu and Nitro
  16. 47:48Nu console logging
  17. 48:30Nu vs other frameworks
  18. 50:38Cloudflare for Nu
  19. 53:06Nu unique features
  20. 54:35Nu performance on Cloudflare
  21. 57:07Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.