When comparing purplecheerio-wave vs Hapi, the Slant community recommends Hapi for most people. In the question“What are the best Express.js alternatives?” Hapi is ranked 3rd while purplecheerio-wave is ranked 10th. The most important reason people chose Hapi is:
Hapi was developed and is still being used by Walmart. Being backed by such a major company means that it will not lose support any time soon and most importantly it's being developed by professionals and that you will always get support for it.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Auto-generated Documentation
All the documentation for the services is auto-generated based on the configuration files and schema used to specify the services.
Pro Robust and scalable micro services platform
Quickly gets fully functional and secure micro-services started.
Pro Test harness is in built
All the web services specified in the configuration can be tested with an inbuilt harness.
Pro Inbuilt Security
All the web services can be configured with security options that include https
The location of the certificates are configurable.
Other forms of security like authentication can be specified.
Pro Schema Validation for parameters and data payload
The JSON Schema standard compatible input parameters and payloads can be specified and auto validated at run time.
Pro Configurable Route Specification
All routes can be specified in a configuration file and the corresponding classes can be implemented in separate files.
Pro Backed by a major corporation
Hapi was developed and is still being used by Walmart. Being backed by such a major company means that it will not lose support any time soon and most importantly it's being developed by professionals and that you will always get support for it.
Pro Consistency across applications
Hapi's philosophy is that configuration is more important than code. This is especially useful for very large teams because it helps developers maintain consistency and reusability throughout their code.
Cons
Con Requires too much boilerplate
Hapi seems to be made with large applications in mind. The sheer amount of boilerplate code it requires is simply not practical for a small web app. This also means that there are few examples of Hapi applications around for beginners to learn from.