PHPackages                             friends-of-hyva/magento2-alpinejs-persist - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. friends-of-hyva/magento2-alpinejs-persist

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

friends-of-hyva/magento2-alpinejs-persist
=========================================

Integrate the AlpineJS persist plugin into Hyvä

1.0.0(3y ago)83.0k—6.9%2MITHTMLPHP ~7.4|~8.1

Since Apr 25Pushed 3y ago4 watchersCompare

[ Source](https://github.com/friends-of-hyva/magento2-alpinejs-persist)[ Packagist](https://packagist.org/packages/friends-of-hyva/magento2-alpinejs-persist)[ RSS](/packages/friends-of-hyva-magento2-alpinejs-persist/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

FriendsOfHyva\_AlpineJsPersist
==============================

[](#friendsofhyva_alpinejspersist)

This is a Magento module specifically for Hyvä, which adds the [AlpineJS persist plugin](https://alpinejs.dev/plugins/persist) to [Hyvä](https://www.hyva.io/). This plugin allows you to persist Alpine.js component data between page reloads.

Alpine.js Persist Plugin
------------------------

[](#alpinejs-persist-plugin)

The Alpine.js persist plugin is a plugin that allows you to persist Alpine.js component data between page reloads. This plugin can be used to store data associated with Alpine.js components in the browser's local storage or session storage, allowing it to be retrieved and restored when the user returns to the page.

For more information on how to use the AlpineJS persist plugin, please refer to the [official Alpine.js documentation](https://alpinejs.dev/plugins/persist).

Example
-------

[](#example)

To use the persist plugin in your Hyvä theme, you can add the `$persist` property to your Alpine.js component and specify which data properties should be persisted.

```

    Increment

```

In this Alpine.js example, the count property is initialized with a default value of 0 using the `$persist` function, which enables the property to persist its value between page reloads using local storage.

Installation
------------

[](#installation)

To install the FriendsOfHyva\_AlpineJsPersist module via composer, run the following command:

```
composer require friends-of-hyva/magento2-alpinejs-persist
```

**This module requires Hyvä theme 1.2.0 or higher and AlpineJS v3.**

Using AlpineJS persist to save Magewire component data
------------------------------------------------------

[](#using-alpinejs-persist-to-save-magewire-component-data)

[See more details here.](docs/magewire.md)

Note
----

[](#note)

This module is made specifically for Hyvä and doesn't work with native Magento.

For more information on Hyvä, please visit the [official Hyvä website](https://hyva.io/).

Copyright &amp; License
-----------------------

[](#copyright--license)

Copyright (c) 2023 Friends of Hyvä

The module is released under the [MIT](LICENSE.txt).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1905417db5fbd31a61553b29bd441fdc66945da7cfb14f1b20a72275c68184e8?d=identicon)[vinai](/maintainers/vinai)

![](https://www.gravatar.com/avatar/7cd0062c670f61aa554c5d30193848ac11031b6cdb8f8616249b95a235eb475d?d=identicon)[wigman](/maintainers/wigman)

![](https://www.gravatar.com/avatar/459ec352617fd5a9f46070338b99ed03828fc902eb0a361aed717576e67bd2c4?d=identicon)[TjitseE](/maintainers/TjitseE)

---

Top Contributors

[![Tjitse-E](https://avatars.githubusercontent.com/u/14849044?v=4)](https://github.com/Tjitse-E "Tjitse-E (8 commits)")

### Embed Badge

![Health badge](/badges/friends-of-hyva-magento2-alpinejs-persist/health.svg)

```
[![Health](https://phpackages.com/badges/friends-of-hyva-magento2-alpinejs-persist/health.svg)](https://phpackages.com/packages/friends-of-hyva-magento2-alpinejs-persist)
```

###  Alternatives

[msp/devtools

223647.6k2](/packages/msp-devtools)[msp/cmsimportexport

76543.1k](/packages/msp-cmsimportexport)[jajuma/awesomehyva

This Magento 2 extension allows using Font Awesome 5 icons with Hyvä Themes

1354.7k](/packages/jajuma-awesomehyva)[noon/hide-default-store-code

Magento 2 module for hide Default Store Code

2137.9k](/packages/noon-hide-default-store-code)[elgentos/vat-switcher

Vat switcher to let customer decide on how to show their prices

1513.0k](/packages/elgentos-vat-switcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
