DEV Community

Sam Sverko
Sam Sverko

Posted on

Is Express.js still relevant?

I remember recently reading an article mentioning that using Express as your app's web server is something of the past (of course I can't find it now, sadly).

Upon looking in on the Express website, the footer indicates that the site was last updated in 2017.

Additionally, checking out their GitHub page, the last commit was back in May 2019.


Does anyone use Express, or have any insight if this is a framework to pursue in 2020?

Are there other lightweight server frameworks that you use for your Node projects?

I'm definitely an advocate of the lean web, and am slowly learning my way to build a full stack website (Node and MongoDB for backend goodies). The less code and dependencies overall the better :)

Top comments (5)

Collapse
 
cadams profile image
Chad Adams • Edited

With TypeScript becoming more popular I know a lot of people are using Nest.js now. (Which uses Express.js underneath). If you like to use JavaScript instead of TypeScript Express.js is still a great choice because it's very stable. Not having many commits is a good thing as long as bugs are being fixed. Then you don't have to worry about breaking changes or the api changing too quicky on you like what happens with newer frameworks. Express.js has been around for a while so it's been tested well.

Collapse
 
samsverko profile image
Sam Sverko

That's a good point. I guess Express has been around for a while and is quite stable. I will definitely check out Nest.js.

I've been playing around with trying to create a zero-dependency simple web app, and that's certainly coming along with many challenges. I wonder if this is even possible anymore...

Collapse
 
melissamcewen profile image
Melissa McEwen

Interesting, we've been discussing this at Glitch. Our default is Express but we'd like to give more options at least.

I've also been exploring it for code examples where I want a super lean front end to run.

I've got Hapi, Polka, Koa, and Fastify on my todo list. Excited to try them out.

Collapse
 
samsverko profile image
Sam Sverko

There are so many options out there!

One brick wall that I've stumbled across with trying to build something without any frameworks is the view engine. There seems to be zero documentation/examples of a Node.js-only view engine configuration...

Collapse
 
melissamcewen profile image
Melissa McEwen

Yeah I'd love to have one that starts from Node.js only and then shows the different options as minimal as possible