Video summary

Why aren't you using Fastify? Or Koa? Or NestJS?

Main summary

Key takeaways

Technology

Technological concepts / frameworks discussed

  • Node.js backend framework choice: The video focuses on what people commonly use for server-side Node.js—either “just Node.js” or a supporting framework/library.

  • Express.js vs. alternatives (framed largely by popularity/usage):

    • AdonisJS: Compared to “Laravel for Node.js,” but suggested to have lower adoption, reflected by npm download numbers (low interest/usage).
    • Koa and Fastify: Presented as popular alternatives, but still far behind Express in adoption.
    • Express.js: Positioned as the clear dominant default.

Key analysis: Why Express.js remains dominant

  • Perceived maintenance status: Express.js is described as “barely maintained” in terms of visible commit activity and release frequency, even though development exists.
  • Long-standing technical shortcomings: Example cited is asynchronous error handling, described as unnecessarily complex and “not great.”

Despite these drawbacks, Express continues to win adoption due to several reinforcing factors:

  1. Early timing: Express was among the first popular Node.js frameworks, so it became entrenched early.
  2. Ease of use:
    • Simple setup and routing
    • Straightforward middleware registration model
  3. Huge ecosystem:
    • Many packages for common backend needs (e.g., security such as CSRF, authentication, input validation, etc.)
  4. Stability / lack of breaking changes:
    • Even if slow-moving, it’s described as “super stable,” and developers know what to expect.
  5. Content/ecosystem flywheel:
    • Express appears everywhere online (e.g., Stack Overflow, courses), which encourages more learning and more usage—reinforcing the cycle.

Notes on alternatives and their distinguishing approach

  • Fastify: Mentioned as an Express-compatible alternative that can offer performance improvements and avoids some Express problems (as framed by the video).
  • Koa/Fastify adoption: Acknowledged as meaningful but smaller than Express.
  • Nest.js:
    • Framed as an Angular-like backend framework, using:
      • classes
      • decorators
      • TypeScript
      • dependency injection
    • The video claims Nest.js is more popular than Fastify/Koa, based on npm download numbers as a rough metric.
    • Important caveat: The speaker says you shouldn’t choose Nest.js if you don’t like the Angular-like experience—though some teams clearly do.

What the video asks viewers to do

The speaker invites discussion in the comments:

  • Why people use Express.js
  • Why people choose Fastify or Nest.js instead
  • Or why they don’t use Express.js

Reviews / guides / tutorials mentioned

  • No step-by-step tutorial or “how-to” guide is provided.
  • The video emphasizes the broader learning/content ecosystem (courses, Stack Overflow, etc.) as a key reason Express is widely used.

Main speaker / sources

  • Main speaker: Not explicitly identified in the subtitles (no name given).
  • Sources referenced:
    • npm download numbers
    • Developer-community platforms like Stack Overflow
    • ChatGPT (mentioned as a place where Express frequently appears)

Original video