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]
2010sFrom 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]
2021Leaving 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]
Stately’s editor lets a team draw and simulate transitions and export a model as code. Developers can inspect which paths the software permits, while designers and other participants can discuss missing states before changing the implementation. In a 2023 interview Khourshid described a distributed team working from the United StatesUnited StatesThe United States is a federal country in North America made up of 50 states, the District of Columbia as the seat of government, and territories such as Puerto Rico and Guam; its capital is Washington, D.C. The Continental Congress adopted the Declaration of Independence on July 4, 1776. The 2020 census (April 1, 2020) counted a resident population of 331,449,281, and the 435 seats of the House of Representatives are apportioned among the states on the basis of the census.Open the full entry and Europe.[6][3][1]
2023XState 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]
XState: Official website: https://github.com/statelyai/xstate (opens in a new window).[5]
University of Central Florida: Official website: https://www.ucf.edu/ (opens in a new window).[1]
Microsoft: Official website: https://www.microsoft.com/ (opens in a new window).[5]
GitHub: Public account: https://github.com/davidkpiano (opens in a new window).[8]
X: Public account: https://x.com/DavidKPiano (opens in a new window).[5]
Sources8 sources
- Season 4, Ep. 36 – Founder to Founder: with David Khourshid, Co-Founder & CEO of Stately (opens in a new window)gun.io↑
- Speakers – WordCamp Orlando 2015 (opens in a new window)orlando.wordcamp.org↑
- Stately with David Khourshid (opens in a new window)ajcwebdev.com↑
- Make Your Apps Resilient Using Finite State Machines With David Khourshid (opens in a new window)kentcdodds.com↑
- I turned an open-source state machine library into a SaaS startup, AMA! (opens in a new window)indiehackers.com↑
- Stately & XState docs (opens in a new window)stately.ai↑
- XState v5 is here (opens in a new window)stately.ai↑
- davidkpiano (David Khourshid) (opens in a new window)github.com↑