saplingjs / sapling

🌿 Sapling is a Node.js framework for faster-than-light web development.
https://www.saplingjs.com
MIT License
14 stars 0 forks source link

Potentially convert to tinyhttp #97

Closed groenroos closed 3 years ago

groenroos commented 3 years ago

tinyhttp seems to be a largely Express-compatible alternative Node.js server framework. Consider whether we should ditch Express for tinyhttp.

Pros

Cons

Open questions

groenroos commented 3 years ago

Worth noting that there are other Express replacements, for instance polka (which seems to have even better requests-per-second performance than tinyhttp).

However, on a cursory read, it seems like whereas tinyhttp seems to be a largely 1:1 Express compatible framework and thus minimal difference on the surface, adopting polka would require rewriting big parts of the app (e.g. polka has no response helpers, and middleware is loaded differently).

talentlessguy commented 3 years ago

Hi, tinyhttp author here

recently I released 1.3 with lots of bugfixes and improvements. Community also has grown a bit but stll not as large.

groenroos commented 3 years ago

Nice one! I'll take a look at what it'll take to do this conversion over the next weekend, and see where we are! 👍