Skip to content

Instantly share code, notes, and snippets.

View Yacobolo's full-sized avatar

Jacob Østergaard Nielsen Yacobolo

View GitHub Profile
@Yacobolo
Yacobolo / datastar-llms.md
Last active November 20, 2025 22:09
web scrape of https://data-star.dev/docs - includes table of the contents with line number and section len so an llm can use read tool using offset and limit. This helps to save tokens.

Guide

Getting Started

Datastar simplifies frontend development, allowing you to build backend-driven, interactive UIs using a hypermedia-first approach that extends and enhances HTML.

Datastar provides backend reactivity like htmx and frontend reactivity like Alpine.js in a lightweight frontend framework that doesn’t require any npm packages or other dependencies. It provides two primary functions:

  1. Modify the DOM and state by sending events from your backend.
  2. Build reactivity into your frontend using standard data-* HTML attributes.