XState llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/xstate/llms-txt)

# XState llms.txt

Browse XState documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

stately.ai/llms.txt

[Raw llms.txt](https://stately.ai/llms.txt) [Raw llms-full.txt](https://stately.ai/llms-full.txt)

Copy Markdown [](https://stately.ai/llms.txt)

llms.txt

Docs

Actions

The Actor model

Actors

Notes

Assets in Stately’s editor

Autolayout

Callback Actors

Canvas controls

Cheatsheet

Colors

Context

Delayed (after) transitions

Descriptions

Design mode

Developer tools

Discover

Actions and actors in Stately’s editor

Context and meta in Stately’s editor

States and transitions in Stately’s editor

Tags in Stately’s editor

Embed machines using their embed URL

Event emitter

Eventless (always) transitions

XState examples

Export as code

Embed Figma

Final states

Finite states

Function Actors

Generate with AI

Generate React app

Generate test paths

Glossary

Graph & Paths

Guards

History states

Share machine images using their image URL

Usage with Immer

Import from code

Connect GitHub repo

Stately & XState docs

Initial states

Input

Inspection

Inspector

Installation

Invoke

Keyboard shortcuts

Live simulation mode

Lock machines

Machine restore

State machines

Migrating from XState v4 to v5

Observable Actors

Output

Parallel states

Parent states

Persistence

Projects

Promise actors

Pure transition functions

Quick start

Routes

Self-hosting

Setup

Sign up for Stately Studio

Simulate mode

Sources

Spawn

State done events

State machine actors

What are state machines and statecharts?

Stately Sky getting started

State

Stately Studio API

Stately Studio Community plan

Stately Studio Enterprise plan

Stately Studio Pro plan

Stately Studio Team plan

Stately Studio

Systems

Tags

Teams

Templates

Testing

Transition Actors

Events and transitions

Typegen

TypeScript

Upgrade your Stately Studio account

Share machines using their share URL

User preferences

Version history

Visualizer (deprecated)

@xstate/fsm

@xstate/graph

@xstate/immer

@xstate/react

@xstate/store

@xstate/store v3

@xstate/store

@xstate/svelte

@xstate/test

XState VS Code extension

@xstate/vue

XState

AI Agents

Packages

@xstate/store-angular

@xstate/store-preact

@xstate/store-react

@xstate/store-solid

@xstate/store-svelte

@xstate/store-vue

@xstate/store-angular

Compare to Jotai

Compare to Pinia

Compare to Recoil

Compare to Redux

Compare to Zustand

Migrating to v4

Persist

@xstate/store-preact

@xstate/store-react

Reset

@xstate/store-solid

@xstate/store-svelte

Undo/redo

Validate schemas

@xstate/store-vue

Compared to LangGraph and hand-rolling

Context compaction

Decisions

Examples

Migrating from a hand-rolled loop

Host actors

Hosts and executors

Human in the loop

Agents

Using with other stacks

Machines as data

Agent machines

Messages

Multi-agent composition

Quickstart

Post-alpha roadmap

The step path

Text requests

Verify

Xstate As Agent Workflow

Algorithms reference

Benchmarks

@statelyai/graph

Layout transitions

Layout

Migrating from @dagrejs/graphlib

React Flow + ELK: automatic layout cookbook

Scaling & Plugin Architecture

@statelyai/sdk

statelyai

Stately MCP

Optional

Full documentation

## What is XState's llms.txt?

XState publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what XState offers and where to find details.

Pass

Spec

2

Sections

162

Links

7.9 KB

Size

~2.0k

Tokens

Sections: Docs · Optional

## Add XState Docs to Your AI Assistant

Select your tool to see how to add XState's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://stately.ai/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about XState

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 164 notes

## Frequently Asked Questions

Where is XState's llms.txt file?

XState publishes its llms.txt at https://stately.ai/llms.txt. This file provides a structured, markdown-formatted index of XState's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use XState's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of XState's documentation so it can provide better code suggestions and answers about XState.

What does XState's llms.txt contain?

XState's llms.txt contains 2 sections and 162 documentation links in 7.9 KB (~2.0k tokens). Key sections include Docs, Optional.

How many tokens does XState's llms.txt use?

The concise llms.txt index is approximately 2.0k tokens (7.9 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is XState?

State machines and statecharts for the modern web. XState is a JavaScript/TypeScript library for creating state machines, statecharts, and actors.. XState's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with XState.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Finch](https://mdream.dev/llms-txt/xstate/llms-txt/finch) [Plane Plane is a modern project management system for fast-growing teams and enterprises.](https://mdream.dev/llms-txt/xstate/llms-txt/plane) [OpenClaw 从入门到精通 | OpenClaw Guide 最新Docker容器技术，从真实案例中学习最佳实践！| Learn and understand Docker&Container technologies, with real DevOps practice!](https://mdream.dev/llms-txt/xstate/llms-txt/docker-practice) [AST-GREP Find Code by Syntax](https://mdream.dev/llms-txt/xstate/llms-txt/ast-grep) [Perplexity](https://mdream.dev/llms-txt/xstate/llms-txt/perplexity) [Convoy The Cloud Native Webhooks Gateway](https://mdream.dev/llms-txt/xstate/llms-txt/convoy) [Model Context Protocol Model Context Protocol Servers](https://mdream.dev/llms-txt/xstate/llms-txt/servers) [Font Awesome Docs Official documentation for Font Awesome icons.](https://mdream.dev/llms-txt/xstate/llms-txt/font-awesome)

[View all 99 projects ](https://mdream.dev/llms-txt/xstate/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/xstate/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/xstate/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)