We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Dstar is an Elixir library that renders Phoenix pages over Datastar, a hypermedia framework: the browser sends signals, the server answers with HTML patches over SSE, and no client framework is involved.
Eight focused Dstar.Page modules for commands, signals, element patches, streaming, components, and presence — each page is one module and one router line, shown beside how Phoenix LiveView would solve the same problem.
A native form submits fields with contentType: 'form' and patches feedback only.
Typing sends signals and patches only the result panel.
handle_connect and handle_info drive a bounded, deduplicated SSE stream.
outer, inner, append, prepend, before, after, and remove.
A Dstar.Component colocates shared UI with its event handlers.
patch_signals, remove_signals, and the signals handed to handle_event.
execute_script, console_log, and a safe redirect target.
Multiple tabs join one room, update the roster, and send pings.