Docs
Everything you need to set up @wrux/astro-datastar and build endpoints that answer Datastar requests.
Datastar
- InstallationAdd the integration and get Datastar on every page.
- Integration OptionsOpt out of global injection, or load your own plugin set.
Usage
- Reading SignalsRead the client payload in endpoints, and guard them.
- Server ResponsesHTML morphs, SSE events, and open streams.
- ValidationValidate signals with Zod (or any Standard Schema).
- Loading StatesIndicators and busy fades while requests are in flight.
- Writing PluginsBuild custom data-* attributes on the engine export.