title: How to compile TypeScript code in the browser?
body: <p>Is it possible to run the TypeScript compiler in the browser for transpiling TS to JS 100% in the browser. The use case would be implementing an online TypeScript IDE that runs 100% client side and it has a "Play" button to execute the project. So I need to transpile the project to JavaScript in order for the browser to execute the code. </p>
  
  <p>I presume it should be as <strong>simple</strong> as loading the relevant typescript JS files, creating an instance of the right class (compiler?) and calling a method or two.</p>
  
  <p>What would be the means suitable to load the Compiler in the browser? Where is the TypeScript Compiler API Reference Documentation ? Where should I start digging in ?  </p>
  
  <p>This isn't asking for any specific tool, but ANY way to do this with this particular computer language, and thus is on topic.</p>