I'd like to run the TypeScript compiler within a website in order to build something like the playground on TypeScript's website TypeScript Playground.
In opposite of running tsc on the server side, I'd like to run compile it directly within JS. I've looked for any similar posts here and any description within the TypeScript language specification, but I can't find any information on that.