Echo JS 0.11.0

<~>
chmanie 3791 days ago. link 9 points
We have been using hapi for a somewhat bigger project for about a year now.

Looks good so far (especially for all the out-of-the box http-header and security) features (like CORS, that you mentioned).

Testing is a charm (but only if you use spumkos 'lab') because of the great server.inject() feature.

I really like the configuration over code approach that hapi is promoting. It helps modularizing your code.

It comes with support for a lot of handy plugins/tools, here are the ones we are using:

- joi: awesome validation library
- yar: cookie jar for encrypted server side sessions
- catbox: caching plugin/wrapper for multiple strategies (e.g. redis)
- good: logger/process monitoring
- lab: test utility
- travelogue: not as good. to be replaced by bell

Some downsides: It's hard to keep up with the rapid development cycle the spumko folks are pushing. They release major updates every two months or so and each of them contains some breaking changes.

The passport-js integration via travelogue was terrible (many undocumented features, bugs, etc., although they are going to replace it with a native solution named bell: https://github.com/spumko/bell).

Over the last few months (I think since v2.0) the documentation consisted only of a large readme.md file embedded in github. But I just saw that changed as well. They have a shiny new documentation now: http://hapijs.com/api

My opinion is that everyone who is unhappy with express for some reason should check out hapi. It is worth a try.

I could talk about our experiences for hours, so if you have a specific question, just send me some lines on twitter: @chmanie

Replies

fallanic 3790 days ago. link 2 points
Thanks for the detailed feedback, very helpful.