nuxt-xstate

XState integration for Nuxt
4,568 59
Install
npm install nuxt-xstate
Latest Version:0.6.2
Vue:3
License:MIT
Last Updated:Feb 4, 2026
Links: GitHub  ·  npm
Maintainer: lexpeartha

Nuxt XState

GitHub package.json version npm (prod) dependency version npm (prod) dependency version npm Website GitHub Workflow Status

Nuxt XState module allows for easy integration of XState with Nuxt.js.

Features :sparkles:

  • Nuxt Bridge & Nuxt 3 supported
  • Auto-importing of XState composables
  • Auto-importing of your own state-machines

Installation :floppy_disk:

Run one of the following commands:

yarn add --dev nuxt-xstate
# or
npm install --save-dev nuxt-xstate

And add it to your nuxt.config.ts:

import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  modules: ['nuxt-xstate']
})

Usage :toolbox:

:point_right: Check out the documentation

Work in progress :construction:

Development :computer:

  • Clone repository and install dependencies with yarn install
  • Run yarn dev:prepare to generate type stubs.
  • Use yarn dev to start playground in development mode.

Related Packages

@docus/core-edge

The Docus core.

8,638
@docus/app-edge

The Docus default app.

8,488
@docus/app

The Docus default app.

5,187
@docus/core

The Docus core.

4,814
@docus/theme

The Docus default theme.

3,016

Version History

Version Released Vue License
0.6.2 ^3.0 MIT
0.6.1 ^3.0 MIT
0.6.0 ^3.0 MIT
0.5.1 ^3.0 MIT
0.5.0 ^3.0 MIT
Pre-releases (1)
Version Released Vue License
0.3.1-alpha.1 ^3.0 MIT