putyourlightson/craft-datastar

A reactive hypermedia framework for Craft.

Package info

github.com/putyourlightson/craft-datastar

Type:craft-plugin

pkg:composer/putyourlightson/craft-datastar

Fund package maintenance!

bencroker

Statistics

Installs: 2 746

Dependents: 1

Suggesters: 0

Stars: 10

Open Issues: 3

1.0.2 2026-06-14 20:41 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

mit e411f889b4714acf27d683e877ddae3c54c30100


README

πŸ‘ Stable Version
πŸ‘ Total Downloads

πŸ‘ Image

Datastar Plugin for Craft CMS

A template-driven, reactive hypermedia framework for Craft CMS.

This plugin integrates the Datastar hypermedia framework with Craft CMS, allowing you to create reactive front-ends driven by Twig templates. It aims to replace the need for front-end frameworks such as React, Vue.js and Alpine.js + htmx, and instead lets you manage state and use logic within your Twig templates.

Use-cases:

  • Live searching elements
  • Loading more elements / Infinite scroll
  • Paginating, ordering and filtering lists of elements
  • Submitting forms and running actions
  • Pretty much anything to do with reactive front-ends

Documentation

Learn more and read the documentation at putyourlightson.com/plugins/datastar Β»

License

This plugin is licensed for free under the MIT License.

Requirements

This plugin requires Craft CMS 5.4.0 or later.

Installation

To install the plugin, search for β€œDatastar” in the Craft Plugin Store, or install manually using composer.

composer require putyourlightson/craft-datastar:^1.0.0

Created by PutYourLightsOn.