For TypeScript and JavaScript apps, the TypeScript Compiler API provides everything you need to build your own code generation tooling.