protoculture-hapi
v1.0.33
Published
[](https://opensource.org/licenses/Apache-2.0) [](https://badge.fury.io/js/protoculture-hapi) [:
These abstractions are typical for most web projects, and the overhead of separate libraries maybe doesn't quite make sense for them yet. It's all opt-in via the service providers, so rest assured you won't incur overhead at runtime for anything you don't use.
Dependency Injection
Like many pure JS libraries, hapi does not natively feature any kind of dependency injection. The nice thing is that hapi is so well factored, setting up dependency injection is straightforward.
All you have to do is bind routes and define handlers either as the regular hapi route structure, or using Route instances which is where the real
magic happens.
Async
Because hapi is callback based, it's easy for protoculture-hapi to bootstrap asynchronous request handlers. That means all your handlers can now be async!
Meta
Protoculture-hapi is created by Alexander Trauzzi and is available under the Apache 2.0 license.
History
Created as per this github ticket!
I chose hapi as the first http library to integrate protoculture with for a number of reasons. First obviously is that it has a great track record and list of ongoing supporters. Second is that I've read a lot of Eran Hammer's writing and social media activity and like what he contributes to the various development communities.
Thirdly, any developer who is also a John K. fan is pretty much obligated to try hapi!
Other
Head over to the main protoculture repository to learn more!

