4 ms·
Looks useful, can it handle image and video manipulation npm packages? So I could crop and resize images on this service?
by graylien 5y ago
Looks useful, can it handle image and video manipulation npm packages? So I could crop and resize images on this service?
- nsypteras 5y agoThanks for the comment! Yes you can use any NPM or Python package capable of doing that in Napkin. One limitation right now is that you cannot send back file data in responses, so you would have to upload to some external store like s3 and then return a url.
- graylien 5y agookay that's what I'd be doing anyway, it's much easier to upload to something like s3 anyway - is there any boilerplate for uploading? Or do I just install the s3 package and do it like an express server?
- nsypteras 5y agoNo boilerplate currently, we plan on adding a lot of examples to the site going forward. For now yes you would install any packages you need as you normally would from the "Modules" tab in the editor. More docs here as well: https://napkin.wiki/docs/javascript https://napkin.wiki/docs/javascript
- graylien 5y agookay thanks , it all looks very promising, I'll give it a spin!
- captn3m0 5y agoI've been wanting something like this for an idea of mine[1]. Would love to have the ability to send arbitary responses (JPG/PNG) [1]: https://github.com/captn3m0/ideas#svg-to-png-on-the-edge https://github.com/captn3m0/ideas#svg-to-png-on-the-edge