winglang/wing

Migrate from express to something lighter

Open

#4.506 geöffnet am 11. Okt. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (214 Forks)github user discovery
good first issueneeds-discussionrefactor✨ enhancement🎨 sdk

Repository-Metriken

Stars
 (5.385 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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:

Contributor Guide