sveltejs/sapper

Change default server from polka to express

Zerotask opened this issue · 3 comments

Since most people in a JS / NodeJS environment know Express, it would be easier to start with Sapper if they see known things and I guess Polka is maybe a good alternative, but with just about 4k GitHub stars not really a big thing (compared to Express with 50k stars).

Sorry, but polka just works fine. Stars don't usually define any standards (code quality, performance, etc., ). Moreover, the syntax is not that different https://github.com/lukeed/polka#middleware

I didn't say that Polka isn't working good, but Express is a standard for web frameworks / API, Polka isn't and GitHub Stars is a representing number (it often correlates with the amount of people who use it).
It shouldn't be the only reason to choose a package, sure, but it's definetely something you should be aware of.

We tend to like to steer people towards more lightweight packages. For many things, people won't even notice the difference between the two. Polka can be swapped out for Express in individual projects if that's what is wanted or needed.