A collection of examples demonstrating various web streaming technologies using the http4k framework.
Shared models and resources used across all examples (User, Message data classes).
Basic HTTP server with Handlebars templating. Shows how to render HTML templates with dynamic data.
Simple HTTP API example demonstrating RESTful endpoints with JSON responses.
WebSocket implementation showing bidirectional real-time communication between client and server.
Server-Sent Events (SSE) example for unidirectional streaming from server to client.
Basic integration with http4k's Datastar support for reactive UI updates.
Full-featured Datastar demo with user management, combining SSE streams and web handlers for a complete reactive application.
Conway's Game of Life implementation using Datastar for real-time grid updates.