DEV Community 👩‍💻👨‍💻

Cover image for You may consider swicthing from express to aex in 2022

Posted on

You may consider swicthing from express to aex in 2022

Express is very good lightweight web framework for node.js with a very large community.
It is ease to start and very extensible.

So why should we choose another one?

Problems with Express

It has some problems:

  1. It hasn't been update for years

express v5 has not been waited for years.

  1. Lacking of some very important features introduced by node.js and ecma new versions.
    One of the most important features is the async/await support.

  2. callback paradigm is somewhat unclear for large projects.
    a non-intrusive and adherent web framework is somewhat more clear and easier for large projects to be well organised.

Why other similar projects cannot take over express's project?

express is a very basic web framework, there are only a few similar projects, like koa, fastify


Koa is a wrong implementation for promise/async/await.
Koa breaks old express middlewares, takes a lot effort but gain nothing.
Koa introduced a false middleware structure.
So there are not many projects choose it.


Fastify is incompatible with express middlewares, and has its own way to construct a web server.

Other complicated web frameworks is too opinionated.

And MVC is surely not a good place for web frameworks.
Most MVC frameworks are not correct as web frameworks.
Becuase Web frameworks only process request, response, that is to say, process data (such as json, html, xml, and txt) and logic, there are no direct mvc interactions for web frameworks.
And Controller is surely not a proper name for web processing functions/classes.

Why use aex?

  1. Aex uses a new paradigm called Web Straight Line instead of MVC, which is more fix the web processing model, and focus on the web flow and common web processing.
  2. Aex is compatible with almost all express middlewares.
  3. Aex is faster, decoratable, non-intrusive, adherent. Which a lot of built-in deocrators, you can greatly improve your working effiency.
  4. Aex is about 1.5x more faster than expressjs due to a dependent router, which is far from optimized.
  5. Aex is decoratable to classes which makes it non-intrusive and adherent. It will not interfere with business logic, only handles rountine web logic, which follows the Web Straight Line paradigm. Your can first organize your business logic then add web handlers as needed.
class BussinessLogic {

   // common web logics here

   // common web logics here
Enter fullscreen mode Exit fullscreen mode
  1. It is almost painless to convert express projects to aex ones.

Enjoy aex at

Top comments (0)

In defense of the modern web

I expect I'll annoy everyone with this post: the anti-JavaScript crusaders, justly aghast at how much of the stuff we slather onto modern websites; the people arguing the web is a broken platform for interactive applications anyway and we should start over;

React users; the old guard with their artisanal JS and hand authored HTML; and Tom MacWright, someone I've admired from afar since I first became aware of his work on Mapbox many years ago. But I guess that's the price of having opinions.