How do people package simple backend-less utility apps made in JavaScript these days?

alediaferia profile image Alessandro Diaferia ・1 min read

I'm considering releasing a small utility application that helps me pull and compose data from HTTP APIs. What's the best way these days to package such an app that doesn't require any backend but needs to perform network requests?


Editor guide

Postwoman.io seems to fit the description. It basically is a browser based version of Postman.


That looks great. How does it avoid CORS when performing web requests?


You can go to the Settings and enable Proxy. It mitigates the CORS issue, as mentioned in it's official wiki.

My bad, I thought CORS was gonna be much more restrictive than it actually is.


Did you think of doing something like a PWA? Or do you need the app to have access to the file system?


No need for file system access. But will need to make requests to any URL the user types in the app so I'm not sure how that plays out with CORS on PWAs.


I was having a look at Electron or browser extensions. Thinking of giving Electron a try but wanted to hear some perspectives from you.


Electron could be a solution if you really need a packaged app. Maybe a missunderstood your question but why not just host it on firebase hosting or another hosting provider. I deploy react apps this way and I'm happy with it but you could do the same thing without any framework, you could even combine it with github action or other ci/cd (gitlab etc ...) to build and deploy on push. (After reading some comments, If the app does http request to server which don't have cors open it don't seems to be an option.


Insomnia is built using Electron, and is similar to Postman but less "bloats" in comparison.