Skip to content
Version: XState v5

Discover

Are you seeking inspiration for your machine? Or do you want to learn how somebody else models their machines? The Discover page lists all the public machines created with Stately Studio.

Stately Studio Discover page showing the search results for “auth”, filtered by editor machines under 10 states, showing 173 results.Stately Studio Discover page showing the search results for “auth”, filtered by editor machines under 10 states, showing 173 results.

With the search feature, you can quickly filter your results by the number of states in a machine and whether the machine’s creator used our Studio editor or our older Viz tool. Each machine listed details its creator, number of states, and a link to view and edit the machine in the editor.

Export and fork public machines

When viewing somebody else’s machine, you can make changes to the machine, but your changes won’t be saved. You can fork the machine to create an editable copy inside your My Projects.

Export a public machine

  1. Open the left drawer menu to show the Machines list.
  2. Choose Export code from the triple dot contextual menu alongside the machine name to open the Export machine dialog.
  3. Use the JSON, JavaScript, or TypeScript button to copy the code in your preferred format to your clipboard.
  4. Paste into your code editor.

Read more about exporting your machines as code.

Fork a public machine

Fork a public machine from the editor

  1. Open the left drawer menu to show the Machines list.
  2. Choose Fork machine from the triple dot contextual menu alongside the machine name to open the Form machine dialog.
  3. Choose the project where you want your copy to live from the dropdown list of your projects.
  4. Use the Fork button to copy the machine into your chosen project.

Fork a public machine from the Discover page

  1. Choose Fork machine from the triple dot contextual menu alongside the machine name to open the Form machine dialog.
  2. Choose the project where you want your copy to live from the dropdown list of your projects.
  3. Use the Fork button to copy the machine into your chosen project.