Generating structured JSON from language models is a challenging task. The generated JSON must be syntactically correct, and it must conform to a schema that specifies the structure of the JSON.
It's a library that works in both the browser and Node.js. The browser UI is available at https://github.com/bfirsh/jsnes-web. You can use JSNES to embed a playable ...