Using Uppy via Javascript

HI I was wondering if it were possible to use Uppy via javascript.

For example, Saving drafts, i.e taking the values from a html form, converting it to a file and uploading it to S3 (which uppy is connected to) with a specific url.

Another example would be for bug reporting, where we would take a screenshot using the browsers media apis and push that to S3 to be saved with a bug report.

Can anyone suggest how to do the uploading part using the Uppy library?