You can now import an existing machine (or multiple machines!) from JavaScript, TypeScript or JSON using the code panel in the editor’s right tool menu or the Machines list in the left drawer. Import from code was one of our most-requested features from users who had already created machines using XState or our Stately Viz.
Top of the code panel in Stately Studio showing options for JSON, JavaScript, and TypeScript as well as an Import button.