Webservers

Express

Koa

Hapi

"augments node"

"Fix and replace node"

"batteries included"

"batteries included"

"barebones"

Routing Provided

Yes

No

Yes

Native use of promises

Yes

Yes

Less reliance on middleware

"lightweight"

middle

most

heaviest

"middleware"

"middleware"

"plugins"

How to get GraphQL working with Hapi?

Routing

  • Express: /users/:user/

  • Hapi: /users/{user}/

  • Reactrouter: /users/:user/

Links