You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

@xstate/graph

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
x

@xstate/graph

XState graph utilities

3.0.4
latest
99

Supply Chain Security

100

Vulnerability

77

Quality

86

Maintenance

100

License

Version published
Weekly downloads
35K
-18.5%
Maintainers
3
Weekly downloads
 
Created
Issues
163

@xstate/graph

This package contains graph algorithms and utilities for XState machines.

Quick start

  • Install xstate and @xstate/graph:
npm install xstate @xstate/graph
  • Import the graph utilities. Example:
import { createMachine } from 'xstate';
import { getSimplePaths } from '@xstate/graph';

const machine = createMachine(/* ... */);
const paths = getSimplePaths(machine);

FAQs

Package last updated on 31 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts