You can interact with MindsDB directly from the JavaScript code.
Next StepsBelow are the links to help you explore further.