[ $davids.sh ] — david shekunts blog

🤢 Stop using express / koa and start using ...

# [ $davids.sh ] · message #105

🤢 Stop using express / koa and start using ...

When building absolutely any API, I need:

  1. An API schema with introspection capabilities (transforming the schema into language typing)
  2. A UI that demonstrates the API (e.g., swagger)
  3. Typing of the library's functionality (so that all requests and responses are correctly typed according to the schema)
  4. Middleware, logger, context for DI, plugins, etc.

Express and Koa are libraries with a minimal set of functionality, and you can add the above points using third-party libraries. Third-party libraries more or less cope with the 4th point, but with the first three, some problems always arise.

I don't want to bother adding functionality that I need for each project every time.

But there is a library that solves all these issues at once - Fastify

I decided to gather tricks on the above points in this article

Powerful, you, pump 💪

  • @ 🦾 IT-Dressing room 💪 · # 176

    By the way, I tried publishing on Medium for the first time. It has some issues with the text editor, or maybe I just haven’t figured out how to make it look better yet, but overall it’s nice.