netstack.fm

Datastar and Hypermedia

22 snips
Sep 9, 2025
Delaney shares his fascinating journey from 3D artist to developer, driven by a passion for real-time web visualization. The conversation dives into the innovative DataStar framework, highlighting its efficiency with Server-Sent Events over traditional polling. Delaney also discusses the challenges of WebSockets and introduces upcoming projects like DarkStar for low-latency gaming. He emphasizes the importance of simplicity in programming and community engagement, advocating for practical solutions that address real user problems.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Hypermedia Over SPA State

  • Delaney criticizes modern SPA approaches and promotes hypermedia as a backend-driven UI where links determine available actions.
  • This reduces duplicate validation and keeps authoritative state on the server for safer, simpler apps.
INSIGHT

Stream HTML, Not JSON Polls

  • Sending HTML fragments and using SSE avoids JSON+JS conversion and reduces RTT by eliminating frequent polling.
  • Datastar streams compressed HTML updates to achieve microsecond-level interactivity with far less bandwidth.
ADVICE

Use Native Compression Correctly

  • Rely on the browser's built-in compression (Accept-Encoding) and keep the SSE response window open for large compression gains.
  • Configure server compression windows and flush behavior to avoid buffering delays for real-time streams.
Get the Snipd Podcast app to discover more snips from this episode
Get the app