datastar - Build interactive web UIs with Datastar and gomponents
Guides building backend-driven interactive UIs using Datastar attributes and gomponents-datastar in Go web applications.
Tags
Updated: 2026-09-24Capabilities
Typical Inputs
What this skill does
- Initialize and bind reactive signals
- Handle events using attribute modifiers
- Send backend requests via hypermedia actions
- Generate Datastar attributes in Go
- Stream DOM updates via Server-Sent Events
Inputs
- Datastar attribute specifications
- Go web server endpoints
- Gomponents template definitions
Outputs
- HTML elements with Datastar data attributes
- Go component code using gomponents-datastar
- Server-Sent Events payload formats
Requirements
- Datastar JavaScript library bundle
- maragu.dev/gomponents-datastar Go package
- maragu.dev/gomponents Go package
