datastar
Installation
SKILL.md
datastar
Datastar is a lightweight hypermedia framework that combines backend-driven DOM updates with declarative frontend reactivity.
- docs: https://data-star.dev
- consolidated docs: https://data-star.dev/docs.md
- repository: https://github.com/starfederation/datastar
- browser bundle:
bundles/datastar.js
workflow
- inspect the project's backend language, framework, templates, installed Datastar SDK, pinned version, and whether Datastar Pro is licensed and loaded.
- keep durable and authoritative state on the backend.
- render semantic HTML on the backend.
- use signals sparingly for ephemeral UI state and values sent to the backend.
- trigger backend requests with
@get,@post,@put,@patch, or@delete. - return HTML, JSON, JavaScript, or preferably Datastar SSE events; use the project's official SDK when available.
- favor default morphing and coarse-grained “fat morphs” over manually coordinating small fragments.
- preserve normal web behavior: links for navigation, forms where appropriate, semantic HTML, keyboard access, and ARIA.