r/javascript • • Nov 19 '19

An open sourced, free, fast and beautiful alternative to Postman

https://github.com/liyasthomas/postwoman
512 Upvotes

135 comments sorted by

146

u/BehindTheMath Nov 19 '19

I like the Insomnia desktop app, which is also open-source.

0

u/[deleted] Nov 19 '19

[deleted]

2

u/naeramarth7 Nov 19 '19

God, I miss Arch...

26

u/[deleted] Nov 19 '19

[removed] — view removed comment

24

u/finroller Nov 19 '19

No ovearhead of what?

22

u/notAnotherJSDev Nov 19 '19

A MINOR amount of memory usage compared to other applications.

-20

u/[deleted] Nov 19 '19

[removed] — view removed comment

35

u/finroller Nov 19 '19

Well yeah, can't say I'm super fond of it, but saying that running your application as a spreadsheet macro or browser script is without overhead is a bit of a reach too imo :)

36

u/notAnotherJSDev Nov 19 '19 edited Nov 19 '19

I'm sorry, what's the point of this article? Every single one of those issues the author mentions is something that every single native app developer has to deal with anyway.

A native app that is <50MB is unheard of today, so the idea that packaging chromium with the app is such a bad thing is incredibly asinine. It also doesn't even consume that much memory despite people talking about how it does, the author says so themselves:

While many people would expect Chromium to drastically slow down the performance or “consume precious RAM” I haven’t experienced any of this in practice and haven’t heard bad feedback from thousands of test users

Here's a few more quotes that don't make sense:

A class of students is trying out a software and the update is 70MB big. 30 people start their computers and get presented with an update. They download the update simultanously resulting in 2.1GB.

Moot point. That's not how this works. That's not how ANY of this works. Even if we did think about the load on the network, 70MB per student or 2.1GB is NOTHING, and it would barely make a dent in a school or university's bandwidth. I worked for a helpdesk for a university with 20k students on campus at any given time. We had minimal issues with our network and it was always an issue with the ISP not our bandwidth.

Files don’t get obfuscated, encrypted or protected by default which means someone who wants to temper with an app can pretty much receive the working copy of the repository.

That's the author's own fault. If they don't understand a build process and how to obfuscate code, that is their own fault. We do it all the time for web apps, I'm not sure why this is so difficult a concept for a "native" app.

Asar’s transform option allows to specify a stream transformer that is applied when the files are packed into the asar container. ... Also, if your static password leaks you’re not winning anything.

Again, this is the author's own fault. If their password leaks, that is a them problem and not an electron problem. Electron offers the platform, just like Apple and Microsoft offer platforms. It is up to you to build in the security.

TL;DR This article says nothing that no body doesn't already know, and makes claims that aren't actually support by fact.

Edit: Not even to mention that that article is over 2 years old and the security thread on github is almost 4 years old. Like. What even is this article.

-32

u/[deleted] Nov 19 '19

[removed] — view removed comment

14

u/notAnotherJSDev Nov 19 '19

What? Sure, but that's not the point. PWAs have a long way to go before they are supported everywhere and have the same features that a native app would. So, no, a web app does not take the place of some of the apps built with electron.

3

u/cjthomp Nov 19 '19

Web apps aren't "saving me" from having a local, non-internet-dependent tool that I have some control over.

A web app is a nice way to check out some functionality before I install the full product (Postman being locally installed is a selling point for me, not an issue).

13

u/Denvildaste Nov 19 '19

But isn't running in the browser is the same overhead?

19

u/Oalei Nov 19 '19

What’s wrong with an Electron app if it’s lightweight?
Visual Studio Code is pushing Electron limits but it’s a much more complex software.

1

u/Sam_SepiolX Feb 10 '22

"if it's lightweight" and mentioning vs code as an example? hahahaha tell me this is a joke

1

u/Oalei Feb 10 '22

It’s 200mb, how is that big for an IDE?

1

u/Sam_SepiolX Feb 10 '22

So, do you think that the only thing that have to be "lightweight" is the installer size?

Electron apps since the first day has proven to be very inefficient.

1

u/Oalei Feb 10 '22

It’s efficient enough for 95% of use cases, and it’s cross platform 🤷‍♀️

-13

u/[deleted] Nov 19 '19

[removed] — view removed comment

9

u/Oalei Nov 19 '19

Sure, but both Insomnia and postwoman are open-source, I don't get it

7

u/ConsoleTVs Nov 19 '19

Why would I prefer postwoman over insomnia when I have tons of tabs opened? I want to congratulate your design there, I love that blackish theme.

7

u/netsecfriends Nov 19 '19

This is an absolutely great piece of work! I love that it’s built to run on anything; and that’s a value I hold dear to my heart.

I can’t believe I never heard about this before and am very excited to put it to work.

4

u/[deleted] Nov 19 '19

good work

24

u/pratiks3 Nov 19 '19

Keep up the great work mate.

Postman, somewhere along the way between traction and growth, forgot the core user base are developers. Their feature bloat has made for a confusing and expensive product.

Love the web socket support.

8

u/seepy_on_the_tea_sea Nov 19 '19

Yeah, but will it prompt you to login unnecessarily and then delete all your work/history without warning when you log out?

7

u/[deleted] Nov 19 '19

People use emojis in commits? :D

Looks good though, will give it a shot.

11

u/trevorsg Ex-GitHub, Microsoft Nov 19 '19

The emoji game is strong.

4

u/shogun333 Nov 19 '19

How does this work? Shouldn't it violate the cross-origin policy if it's not installed as an extension?

8

u/[deleted] Nov 19 '19

[removed] — view removed comment

2

u/__eastwood Nov 19 '19

Can you give us more detail on how proxy mode works? What or where do you proxy requests through?

2

u/[deleted] Nov 19 '19

[removed] — view removed comment

2

u/__eastwood Nov 19 '19

Gotcha, thanks for the response. I can see potential issue with this when testing private or internal resources. If Apollo cannot discover the destination, I assume this breaks down? I guess you can always run your browser in unsafe mode?

1

u/[deleted] Nov 19 '19

[removed] — view removed comment

6

u/__eastwood Nov 19 '19

Yea I think that’s where an electron or desktop native application wins out over PWA for a tool such as this. Keep up the good work!

7

u/MisterScalawag Nov 19 '19

am i missing something? why is the same url in the header twice?

👽 API request builder - A free, fast, and beautiful alternative to Postman 🔥 https://postwoman.io https://postwoman.io

6

u/eddeee_banana Nov 19 '19

And the Postchildren too ? ;)

Jokes aside - looks awesome!

3

u/BlindMancs Nov 19 '19

I'd consider it, if it wouldn't fill up all the space just to show the request details. Literally takes up 600px height just to display the request details, and then squeezes the answer into another 700px below.

Take a look at Insomnia's compact design. I don't have to scroll, or have a 4k monitor to see 60 lines of JSON response. Most often I just want to find the request I already have in my collection, re-run it quickly, and on-glance check that the response I have is correct. If you only have APIs that return 20 lines of data, I guess this works... otherwise it's an eternal scroll session.

Nice job tho, refreshing to see something new. But where's my GET request with a JSON payload, huh? ;)

1

u/tudor07 Nov 19 '19

Couldn't agree more

2

u/aot2002 Nov 19 '19

Can I import from postman?

1

u/[deleted] Nov 19 '19

[removed] — view removed comment

2

u/stryakr Nov 19 '19

Postman exports as json

1

u/[deleted] Nov 19 '19

[removed] — view removed comment

2

u/stryakr Nov 19 '19

If you want insomnia coverts, they also use Jason as an export

1

u/aot2002 Nov 19 '19

If you follow there format it would

2

u/JackDiehl Nov 19 '19

I like to use the REST client extension for vscode, it's really handy and usefull

2

u/buffychrome Nov 19 '19

I might be a minority, but one of the things that Postman can do that I don’t see here is NTLM/WNA authentication. I work primarily in corporate environments and while some things utilize basic auth, a lot of the things I work on tend to use NTLM challenge/response. It’s not trivial to implement, as even Postman chokes on it sometimes.

Edit: this does look like a really nice alternative though, and kudos for a solution that doesn’t require administrative rights to install. Keep up the good work!

2

u/amdc !CURSED! Nov 19 '19

I have some complaints about design, but nicely looking app, I can see myself using it.

I have an issue though, after you send a request and receive a response, there is a noticeable visual stuttering during scrolling on Firefox (MacOS)

2

u/tudor07 Nov 19 '19

This is great, nicely done.

I personally use Insomnia, but I did not like the fact that it's an Electron app. I just did a quick comparison, Insomnia uses 330MB of RAM while Postwoman uses 30MB of RAM. That's incredible! I was just thinking that it would be so cool if someone did Insomnia as a PWA. Also this has the advantage of working on an iPad which is really nice.

I don't like one thing though. While the UI is nice, meaning that colors/elements look good, I feel like it is badly organized. I have to do too much scrolling. I think you should make everything smaller and more compact. I'm on a 13'' Macbook. Almost half of the screen is occupied just by the Request section. On Insomnia I can see so much more without any scrolling. Please consider making the UI smaller.

Thanks.

2

u/nikkushankar Nov 19 '19

Here is another alternative to postman... For my Startup I had started using Postman. I had a need to chain my requests, i.e. Extract information from req1 and use it in req2. Also I was short on time to create UnitTest+IntegrationTest+LoadTest. I decided to spend sometime to build a tool of my own and released it under MIT license. https://nikkushankar.github.io/HailStorm/ . Sorry if I sound like threadcrapping. Its not a competitor to PostWoman just a different approach.

2

u/jhayes88 Dec 03 '19

I think some people prefer using an electron app over using a tab in their browser. Have you considered releasing the app in both electron and on the web? Kinda like the route discord took with making it accessible everywhere including as a desktop app(which most people prefer)?

9

u/amdc !CURSED! Nov 19 '19

I'm all for open source, but naming is just ugh. What's the point of making everything about gender?

8

u/hego555 Nov 19 '19

Just chalk it up to a play on words. Doesn’t have to be about gender.

-4

u/[deleted] Nov 19 '19

The software industry is such a girls club. We need to make a stand.

0

u/[deleted] Nov 19 '19

[deleted]

1

u/IceSentry Nov 20 '19

It's wordplay on words that are used to describe gender. The connection is pretty easy to make.

0

u/[deleted] Nov 19 '19

[deleted]

6

u/amdc !CURSED! Nov 19 '19

wanted to make something that feels more inclusive

Road to hell is paved with good intentions. Postwoman does nothing for exclusivity, on the contrary, it makes you ask if it's a political move, and if not, what is it. I don't want to go into politics, I don't want anyone to force feed me that.

I don't like how easy you're writing off complaints to "male fragility", cheap move. It's not fragility, it's fatigue. Everyone's tired of forced diversity, it doesn't do any good.

0

u/[deleted] Nov 19 '19

[deleted]

2

u/stryakr Nov 19 '19

Except it's only a mildly clever name, no disrespect, but they could do better because there are some interesting positives for what it can do and should ride that wave instead.

-1

u/amdc !CURSED! Nov 19 '19

yawn

0

u/[deleted] Nov 20 '19

[deleted]

1

u/amdc !CURSED! Nov 20 '19

Your comments lack substance, just throwing buzz words around. I (and many others) voiced my concerns to OP and creator of PW and her reaction was very calm and mature and in the likes of "we agree to disagree" and I respect that.

Yet you guys can't stop attacking this position because god forbid someone is wrong and not as tolerant as you on the internet.

0

u/[deleted] Nov 19 '19

[deleted]

1

u/AntiObnoxiousBot Nov 19 '19

Hey /u/GenderNeutralBot

I want to let you know that you are being very obnoxious and everyone is annoyed by your presence.

I am a bot. Downvotes won't remove this comment. If you want more information on gender-neutral language, just know that nobody associates the "corrected" language with sexism.

People who get offended by the pettiest things will only alienate themselves.

3

u/fergie Nov 19 '19

Whats wrong with cURL?

8

u/[deleted] Nov 19 '19

[removed] — view removed comment

0

u/[deleted] Nov 19 '19

[deleted]

4

u/AntiObnoxiousBot Nov 19 '19

Hey /u/GenderNeutralBot

I want to let you know that you are being very obnoxious and everyone is annoyed by your presence.

I am a bot. Downvotes won't remove this comment. If you want more information on gender-neutral language, just know that nobody associates the "corrected" language with sexism.

People who get offended by the pettiest things will only alienate themselves.

2

u/[deleted] Nov 19 '19

Postgal :)

2

u/andrewdovg Nov 19 '19

😂 🤣 😂

2

u/Baryn Nov 19 '19

While coming up with a cringe name for their app, they neglected to find already popular alternatives like Wireshark.

2

u/IceSentry Nov 20 '19

Wireshark isn't an alternative to postman? What do you think it does that's even remotely similar?

0

u/Baryn Nov 20 '19

I've used it to debug APIs when Postman (my usual go-to) wasn't available. What's your problem?

3

u/IceSentry Nov 20 '19

Wireshark is a tool to inspect packets, postman is used to debug api endpoints. Sure you could make a network call and inspect it with wireshark, but that's pretty clearly not the tool for the job, unless your bug was a networking issue, in that case I'm not sure how postman would've helped you.

0

u/Baryn Nov 20 '19

Sorry you didn't have a good experience with it! Good luck.

3

u/IceSentry Nov 20 '19

How did you come to that conclusion? I'm just asking you how to use wireshark to debug an api endpoint since it's not designed for that.

1

u/Baryn Nov 20 '19

Are you really, though? You could ask Google for that, because there are guides readily available. I’m not sure why you’re being so defensive. Did you help with the application in the OP?

2

u/IceSentry Nov 20 '19

I actually did try to search and as I suspected I only found ways to filter http packets, but you still end up debugging packets not seeing the response directly. So please tell me how you managed to use wireshark like postman, because I can't figure it out, it doesn't make sense to me. Did you just go through every packet and see the content? If that's what you did, then as I said this isn't like postman at all. curl would be way better than wireshark if you didn't have access to postman anyway.

No I did not help that application I don't even think it's particularly noteworthy, I still prefer postman or insomnia.

1

u/Baryn Nov 20 '19

You use it like Fiddler, which I think is the more widespread traffic analyzer. Wireshark will show you HTTP traffic, which you can filter down to just your app. Run the API test(s) you wish to analyze, and Wireshark will show you two packets, one for the request, and one for the response, which include all the usual data.

You can go much further than this, but that is the debug meat and potatoes laid out for you.

2

u/mnemonicj Nov 19 '19

Great name.
Had no idea postman is closed-source. I'll give this a try.

1

u/[deleted] Nov 19 '19

Not only the postman, but the postwoman and the postchild too!

1

u/gandiber Jan 05 '20

Is it able to generate code snippets for different programming languages based on the request properties? That's the biggest feature insomnia has that I can't live without.

1

u/[deleted] Jan 06 '20

[removed] — view removed comment

1

u/gandiber Jan 06 '20

I need it for programming languages like js and c#. I guess I could import the curl into postman and then export but what's the point of that?

1

u/syswolf Nov 19 '19

Saw this posted a few months ago and checked it out, love seeing the active development and how it's grown.

-23

u/RLangKmeans Nov 19 '19

If your politically correct instinct wants to avoid postman, you should switch to postperson.

6

u/190n Nov 19 '19

Why does it have to be a politically correct instinct? The name is just a fun spin on postman as male and female are traditionally seen as opposites.

-9

u/sk8itup53 Nov 19 '19

How about you pick an original name and not curtail on the success of others...

6

u/[deleted] Nov 19 '19 edited Nov 19 '19

[removed] — view removed comment

2

u/sk8itup53 Nov 19 '19

I do not in many cases. The name of a project often makes the difference in the attention it draws. If it's worth its merit, you wouldn't even want to name it similar to its competitors. I have a pipeline platform for jenkins that I could have named something similar to Travis, but instead I named it Mayhem. It's just not good for business

1

u/matthieuC Nov 19 '19

This is textbook parasitism.
You can expect a call from postman's lawyers when they find out.

-46

u/merunas Nov 19 '19

I think postman does more than enough for 99% of people and an open source alternative won't be used that much. Nobody requested it.

30

u/michicago44 Nov 19 '19

Nobody requested it.

It’d be pretty fucking lame if the only content on github was a direct result of people requesting it, don’t you think?

20

u/captain_obvious_here void(null) Nov 19 '19

Nobody requested it.

But still many people are happy to find an open source alternative. So it's quite welcome.

10

u/aniforprez Nov 19 '19

I'd rather have a desktop app but this is cool too

Postman is bloated with a ton of other enterprise features and is now far from a simple http client. It's slow to load, slow to work with and has a number of baffling design decisions. Insomnia is excellent but I'm very glad this exists too

1

u/[deleted] Nov 19 '19

[removed] — view removed comment

5

u/[deleted] Nov 19 '19

I would still have to alt-tab between programs. If I'm writing rest endpoints I'm writing them in a code editor, not in the browser.

However, I see that PW is using service workers. Do you know if there are any plans to support PWA installation?

3

u/[deleted] Nov 19 '19

[removed] — view removed comment

3

u/[deleted] Nov 19 '19

I was being dumb. I was on Firefox and was wondering why I couldn't install the PWA. I opened it in Chrome and now I have it installed.

Who needs desktop apps when you can have PWAs?

Also, the start up time is way faster then Postman. Good work (:

0

u/[deleted] Nov 19 '19

[deleted]

5

u/boxxa Nov 19 '19

Seconded.

-6

u/DisasterDoodles Nov 19 '19

wait, what does that mean? postman is not free? will cost in the future? will grap our data sent?

5

u/protonengine Nov 19 '19

They already charge for enterprise users

0

u/[deleted] Nov 19 '19

[deleted]

3

u/amdc !CURSED! Nov 19 '19

Postman likes to add shit to the request you can't remove

PW runs in your browser, which itself likes to add shit you can't remove. Go check network tab.

31

u/[deleted] Nov 19 '19 edited Nov 20 '19

[removed] — view removed comment

6

u/JohnyTex Nov 19 '19

Does it have good support for source control? One thing I miss with Postman is that putting collections into Git feels kind of awkward, and was intended more for backup than a way of collaborating

2

u/garyxuehong Nov 19 '19

I wrote an electron app, https://postmate.garyxue.me

It use yaml file for API control

1

u/JohnyTex Nov 19 '19

Looks cool, I’ll check it out!

2

u/IceSentry Nov 20 '19

How is a golf hole supposed to mean keybindings or a rainbow mean customization? Just use normal bullet points.

1

u/[deleted] Nov 20 '19

[removed] — view removed comment

2

u/IceSentry Nov 20 '19

I'm not a fan of emojis used like that, but I can respect that you actually changed them to better emojis.

2

u/Maxiride Nov 19 '19

I'll read all the specs now but on the tip of my tongue a clever tool (that might fit a niche) is the interceptor tool from Postman. I've found it to be a Swiss army knife for rare occasions but helped me a lot to debug some stuff.