Gathering detailed insights and metrics for @xstate/vue
Gathering detailed insights and metrics for @xstate/vue
Gathering detailed insights and metrics for @xstate/vue
Gathering detailed insights and metrics for @xstate/vue
Actor-based state management & orchestration for complex app logic.
npm install @xstate/vue
Typescript
Module System
Node Version
NPM Version
81.4
Supply Chain
86.1
Quality
90.7
Maintenance
100
Vulnerability
100
License
@xstate/store@3.8.0
Updated on Jun 29, 2025
@xstate/store@3.7.1
Updated on Jun 26, 2025
@xstate/store@3.7.0
Updated on Jun 21, 2025
@xstate/react@6.0.0
Updated on Jun 19, 2025
@xstate/vue@5.0.0
Updated on Jun 19, 2025
@xstate/svelte@5.0.0
Updated on Jun 19, 2025
TypeScript (97.98%)
Vue (0.78%)
JavaScript (0.48%)
Svelte (0.42%)
CSS (0.26%)
HTML (0.08%)
Total Downloads
3,796,076
Last Day
1,276
Last Week
34,391
Last Month
147,657
Last Year
1,595,049
MIT License
28,420 Stars
6,806 Commits
1,315 Forks
191 Watchers
296 Branches
346 Contributors
Updated on Jul 04, 2025
Minified
Minified + Gzipped
Latest Version
5.0.0
Package Id
@xstate/vue@5.0.0
Unpacked Size
15.17 kB
Size
4.12 kB
File Count
16
NPM Version
10.9.2
Node Version
22.16.0
Published on
Jun 19, 2025
Cumulative downloads
Total Downloads
Last Day
14.4%
1,276
Compared to previous day
Last Week
-11.1%
34,391
Compared to previous week
Last Month
-1.3%
147,657
Compared to previous month
Last Year
32.2%
1,595,049
Compared to previous year
4
This package contains utilities for using XState with Vue.
If you're using Vue 2.x, please see the Vue recipe instead, or use the xstate-vue2
package if you want to use the Vue Composition API.
xstate
and @xstate/vue
:1npm i xstate @xstate/vue
Via CDN
1<script src="https://unpkg.com/@xstate/vue/dist/xstate-vue.min.js"></script>
By using the global variable XStateVue
useMachine
composition function:1<script setup> 2import { useMachine } from '@xstate/vue'; 3import { createMachine } from 'xstate'; 4 5const toggleMachine = createMachine({ 6 id: 'toggle', 7 initial: 'inactive', 8 states: { 9 inactive: { 10 on: { TOGGLE: 'active' } 11 }, 12 active: { 13 on: { TOGGLE: 'inactive' } 14 } 15 } 16}); 17 18const { snapshot, send } = useMachine(toggleMachine); 19</script> 20 21<template> 22 <button @click="send({ type: 'TOGGLE' })"> 23 {{ 24 snapshot.value === 'inactive' 25 ? 'Click to activate' 26 : 'Active! Click to deactivate' 27 }} 28 </button> 29</template>
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 17/20 approved changesets -- score normalized to 8
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
101 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More