If you are comfortable with pocketbase you should be able to setup a REST API so that you can send commands/data using the web component.
However, after a quick play, I find the documentation sparse on this subject, makes a lot of assumptions.
The only area that may be an issue is the uploading of files, which on first look at the documentation requires multipart uploads, which is not yet supported in the web component. It can be done with an extension and the webviewer though....