Minimal and unopinionated: a router, a middleware chain, and nothing else. You supply the structure — which is freedom if you know what you’re building and a mess if you don’t.
- Extending Express Types — typing
req.userand friends in TypeScript
What to know
- Middleware is the whole model —
(req, res, next), order matters, and the error handler takes four arguments (err, req, res, next) or it silently isn’t one. - Async errors are not caught automatically in Express 4 — an async handler that rejects hangs the request unless you wrap it or use Express 5.
- It gives you no structure. Impose feature folders and a composition root yourself, early.
Related
Jump to a subject
Software engineering
Infrastructure & security
Computer science
Hardware & engineering