Medplum Code Editor
Embeddable TypeScript and JSON editors.
Example: https://codeeditor.medplum.com/example.html
Lightweight wrapper around Monaco Editor: https://microsoft.github.io/monaco-editor/
Based on: https://www.typescriptlang.org/dev/sandbox/
IFrame message communication based on: https://advancedweb.hu/how-to-use-async-await-with-postmessage/