# starfederation/datastar

The hypermedia framework.

Repository: https://github.com/starfederation/datastar
Canonical: https://ross.abutalabs.com/products/datastar
Homepage: https://data-star.dev
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-21T10:25:16+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 86, longevity 78
- inputs: {"age_days": 1102, "days_push": 12, "days_rel": 92, "gap_med": 7.0, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4988, forks 211 (observed 2026-08-28T04:09:04.271852+00:00)

## What it is
Datastar is a lightweight hypermedia framework for building reactive web applications using declarative data-* attributes in HTML, with a single ~12 KiB script. Backends in any language drive the frontend by sending HTML fragments or server-sent events (SSE), with official SDKs available.

## Use cases
- build reactive web apps without writing frontend JavaScript
- stream server-sent events to patch the DOM from the backend
- add frontend reactivity to a server-rendered site
- build real-time collaborative web applications
- replace a heavy SPA framework with a hypermedia approach
- bind form inputs to reactive signals with data attributes

## When to choose
- you want server-driven state management with minimal client-side JavaScript
- your backend is in a language without a rich SPA ecosystem and you want SDK support
- you prefer hypermedia/HTML-over-the-wire architectures like HTMX but want built-in reactivity
- you need a tiny (~12 KiB) dependency for interactive UIs

## When to avoid
- you need a large ecosystem of components, routing, and tooling like React or Vue
- your app requires complex offline-first or heavy client-side state
- you need fine-grained control over the client bundle or framework internals

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, ssr, state-management, templating, frontend-framework
- domain: web-development, frontend, backend
- platform: cross-platform, browser
- tags: hypermedia, server-driven-ui, sse, declarative-attributes, htmx-alternative, reactive-signals, web-server, nodejs

## Member repositories
- starfederation/datastar (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:04.271852+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:40.528157+00:00, confidence not recorded.
  - readme: https://github.com/starfederation/datastar (fetched 2026-08-28T04:09:04.271852+00:00, sha 76814a4fdd84)
  - homepage: https://data-star.dev (fetched 2026-08-29T08:59:07.405167+00:00, sha 565f71e28a06)
  - site_page: https://data-star.dev/star_federation (fetched 2026-08-29T08:59:07.408973+00:00, sha c8239b9bc576)
- Data as of 2026-08-30T08:39:29.467469+00:00.
