Dstar Demo

Dstar server UI showcase

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.

Form Validation

A native form submits fields with contentType: 'form' and patches feedback only.

Active Search

Typing sends signals and patches only the result panel.

Streaming Dashboard

handle_connect and handle_info drive a bounded, deduplicated SSE stream.

Patch Lab

outer, inner, append, prepend, before, after, and remove.

Server Components

A Dstar.Component colocates shared UI with its event handlers.

Signals Inspector

patch_signals, remove_signals, and the signals handed to handle_event.

Script Helpers

execute_script, console_log, and a safe redirect target.

Presence Room

Multiple tabs join one room, update the roster, and send pings.