Labeling tool for JSONata
For labeling JSONata code snippets more easily
July 3, 2023
I needed a quick way to attach natural language descriptions to (input, output, JSONata) triplets. This Chrome extension sends the input, output, and JSONata code to GPT 3.5 for labeling, and then saves into a PostgreSQL database hosted on Railway.
This one was mildly fun because apparently the Monaco editor updates its lines dynamically. I thought they'd be just simple contenteditable's or textarea's, so I expected it to be as easy as taking innerText. I ended up finding a workaround by programmatically pressing the copy-and-paste buttons.