@anchorlib/vue

Vue bindings for Anchor reactive state management
8,573 28
Install
npm install @anchorlib/vue
Latest Version:1.3.0
Vue:3
License:MIT
Last Updated:Aug 31, 2026
Links: GitHub  ·  npm
Maintainer: mahdaen

Anchor Vue Library

This is the official Anchor library for Vue. It provides a set of tools to manage state in your Vue applications, based on the principles of the Anchor framework.

Installation

npm install @anchorlib/vue

Documentation

For full documentation, visit Anchor for Vue

Quick Start

Here's a simple example of how to use anchorRef in a Vue component:

<script setup>
import { anchorRef } from '@anchorlib/vue';

const state = anchorRef({
  user: {
    name: 'John Doe',
    age: 30,
  },
  isAuthenticated: false,
});
</script>

<template>
  <div>
    <h1>{{ state.user.name }}</h1>
    <p>Age: {{ state.user.age }}</p>
    <button @click="state.user.age++">Increment Age</button>
  </div>
</template>

License

MIT


## License

MIT

Related Packages

vue-reactivator

Create reactive Vue properties from arbitrary global state

37,783 1
vue-persistent-state

Persist state to localstorage

1,857 11
vue-use-async-hook

Wrap async function with reactive and observable promise state

1,522 2
@detools/vue-form

Form State Management for VueJS

16,595 12
vuex-dry

DRY vuex, no more repetitive codes

2,136 51

Version History

Version Released Vue License
1.3.0 ^3.5.0 MIT
1.2.25 ^3.5.0 MIT
1.2.24 ^3.5.0 MIT
1.2.23 ^3.5.0 MIT
1.2.22 ^3.5.0 MIT
Pre-releases (22)
Version Released Vue License
1.0.0-beta.25 ^3.5.0 MIT
1.0.0-beta.24 ^3.5.0 MIT
1.0.0-beta.23 ^3.5.0 MIT
1.0.0-beta.22 ^3.5.0 MIT
1.0.0-beta.21 ^3.5.0 MIT