Do middleware in nodejs have to be used with express frameworks? can native node use third-party middleware?

  node.js, question

As mentioned in the title,,,,,,,,

These questions of yours are too broad and have no specific explanation. If you answer yes from a very broad point of view, it is ok as long as the interfaces are right. Because including express is also some interfaces in nature. But specifically, it depends on your specific application. Nodejs implementation on http server is a good choice. One is rapid development, the other is highly connected with the front end. However, if your application has some special requirements and other frameworks are particularly suitable, you should also consider them.