ABAB Pedia

David Khourshid

David Khourshid is a software engineer and pianist who created the open-source library XState and co-founded Stately, a company developing visual tools for describing application behavior. Born in Chicago, he studied piano at the University of Central Florida and worked as an engineer at MicrosoftMicrosoftMicrosoft is a technology company founded by Bill Gates and Paul Allen in 1975 and headquartered in Redmond, Washington, with businesses spanning Windows, Microsoft 365, Azure, enterprise software, artificial intelligence, gaming and devices.Open the full entry.

Contents6 sections
Key facts

Early Life: Chicago, Florida and Piano

Khourshid was born in Chicago and moved to FloridaFloridaFlorida is a U.S. state occupying mainly the Florida peninsula, with its capital at Tallahassee; its most populous city is Jacksonville. It entered the Union on March 3, 1845, as the 27th state, and had a population of 21,538,187 in the 2020 census (April 1, 2020).Open the full entry. Neither parent was a musician, but they had him take piano lessons as a child. He came to enjoy playing and went to the University of Central Florida to study piano. He initially considered teaching the instrument. Paid work making WordPress templates while he studied led him to reconsider where he wanted to make his living.⁠[1]

By 2015 he was a front-end developer in Orlando and a speaker at the local WordCamp. His conference biography described his interest in mathematics, piano, JavaScript and user interfaces, and his efforts to bring ideas from mathematics and music theory into web development.⁠[2]

From Multi-step Forms to XState

An early jQuery and PHP project required him to manage multi-step forms with branching behavior. He found it harder to see the whole sequence in nested conditions than it was to read a score. One example involved a donation form where a user could submit a payment twice. He experimented with representing the possible states and permissible transitions explicitly, in a form that could be read as code or drawn as a diagram. That work grew into XState.⁠[1][3]

XState could be used with different front-end frameworks. At conferences including React Rally, Khourshid demonstrated how finite state machines could describe user interface behavior. As an engineer at Microsoft, he maintained the library alongside other open-source contributors on evenings and weekends.⁠[3][4][5]

Leaving Microsoft and Building Stately

Khourshid left Microsoft to work full time on visual tools for XState and became co-founder and CEO of Stately. In a December 2021 public discussion he said the six-person team had released a visualizer and was preparing a visual editor. Early support had come through Open Collective and GitHub Sponsors, and the company subsequently secured investment.⁠[5][1]

XState Version 5

On December 1, 2023, Khourshid announced XState v5. It placed actors at the center of the library. Each actor processes the messages it receives and can communicate with other actors. State machines remained one way to describe an individual actor’s behavior, alongside other forms of application logic.⁠[7]

Related Organizations, Websites, and Public Accounts

Stately: Official website: https://stately.ai/ (opens in a new window).⁠[6]

University of Central Florida: Official website: https://www.ucf.edu/ (opens in a new window).⁠[1]

Sources8 sources

  1. Season 4, Ep. 36 – Founder to Founder: with David Khourshid, Co-Founder & CEO of Stately (opens in a new window)gun.io↑
  2. Speakers – WordCamp Orlando 2015 (opens in a new window)orlando.wordcamp.org↑
  3. Stately with David Khourshid (opens in a new window)ajcwebdev.com↑
  4. Make Your Apps Resilient Using Finite State Machines With David Khourshid (opens in a new window)kentcdodds.com↑
  5. I turned an open-source state machine library into a SaaS startup, AMA! (opens in a new window)indiehackers.com↑
  6. Stately & XState docs (opens in a new window)stately.ai↑
  7. XState v5 is here (opens in a new window)stately.ai↑
  8. davidkpiano (David Khourshid) (opens in a new window)github.com↑