Is there a clean example in JavaScript on how to connect to a Kubo instance? I need to make a demonstration on how you can add in programmatic way files to a running kubo instance, or to a Helia instance and pin’em to kubo afterwards. I’ve seen something in the demo days videos, but seems a bit closer to magic unless some code is to be found somewhere?!
You may track my efforts here: kolector/orchestrator at ipfsconnection · kosson/kolector · GitHub
This is a little API in Fastify (Node.js and clean JavaScript) targeting to offer an endpoint to where you send via POST some files, and these should be added to the kubo node and also pinned.
Any resources and some guidance would be more than welcome. Thank you!