winglang/wing

Migrate from express to something lighter

Open

#4.506 aberto em 11 de out. de 2023

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (214 forks)github user discovery
good first issueneeds-discussionrefactor✨ enhancement🎨 sdk

Métricas do repositório

Stars
 (5.385 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

express is used in the simulator for our various resources that need to host an http server.

express works and is used by a lot of people, but:

  • It has many dependencies, especially ones that are no longer needed in modern js
    • This can cause issues with peer dependencies as we move forward, especially due to our usage of bundled dependencies. e.g. express depends on v1 of mime but another lib we use depends on mime v2
  • It's not very well maintained anymore, hasn't been updated in over a year at the time of this post. (missing many dependency updates)
  • It's Heavy-handed while our use cases are generally pretty simplistic. We just need an HTTP server with routing

Alternatives to consider:

Guia do colaborador