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:
- https://github.com/honojs/hono (no deps! early days though)
- https://github.com/koajs/koa
- use node builtin node HTTP server and handle routing ourselves