putyourlightson/craft-spark

This package is abandoned and no longer maintained. The author suggests using the putyourlightson/craft-datastar package instead.

A real-time, template-driven hypermedia framework for Craft.

Package info

github.com/putyourlightson/craft-spark

Type:craft-plugin

pkg:composer/putyourlightson/craft-spark

Fund package maintenance!

bencroker

Statistics

Installs: 69

Dependents: 0

Suggesters: 0

Stars: 17

Open Issues: 1

1.0.0-alpha.5 2024-11-05 19:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

mit 0a6b4942289ab7faa0249f3e4d6fda0b2ea8a9d2

This package is auto-updated.

Last update: 2024-12-12 13:16:09 UTC


README

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

πŸ‘ Image

Spark Plugin for Craft CMS

A real-time, template-driven hypermedia framework for Craft CMS.

This plugin is in alpha and its API may change.

Spark is a free plugin for Craft CMS that allows you to create real-time 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 run logic all within your Twig templates.

With Spark, you have the ability to define state and manipulate the DOM in real-time on the front-end, and modify parts of the DOM with templates rendered on the back-end. Use-cases for Spark are:

  • 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

Spark is lightweight, performant and strongly opinionated about embracing hypermedia and removing front-end complexity. It can be used for anything from simple to complex use-cases.

Read The Case for Spark and join in the discussion.

Documentation

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

License

This plugin is licensed for free under the MIT License.

Requirements

This plugin requires Craft CMS 5.0.0 or later.

Installation

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

composer require putyourlightson/craft-spark:^1.0.0-alpha.1

Created by PutYourLightsOn.