winglang/wing

Migrate from express to something lighter

Open

#4,506 建立於 2023年10月11日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (214 fork)github user discovery
good first issueneeds-discussionrefactor✨ enhancement🎨 sdk

倉庫指標

Star
 (5,385 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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:

貢獻者指南