astro-dx
GitHub
Docs

Installation

Community library — not affiliated with the Astro core team.

Option 1 — CLI (recommended)

npx @astro-dx/init

Option 2 — All packages

npm install astro-dx

Option 3 — Only what you need

# signals only
npm install @astro-dx/core
# signals + DOM utilities
npm install @astro-dx/core @astro-dx/dom
# signals + custom elements
npm install @astro-dx/core @astro-dx/elements

Packages

@astro-dx/core signal, computed, effect, createService, lifecycle
@astro-dx/events on, onHover, onKey, onFocus
@astro-dx/attributes dx-if, dx-show, dx-for, dx-model + bootstrap()
@astro-dx/elements dx-if, dx-show, dx-for as custom elements
@astro-dx/dom getElement, getElements — re-exports events + attributes
astro-dx All of the above in one install
@astro-dx/init CLI — npx @astro-dx/init