Best Practices

The joys of server / plugin separation

The joyful act of decoupling your application plugin from its deployment will make your hapi app more portable and simpler to test.

Handling plugin dependencies

In celebration of hapi plugin boundaries, here we offer a concrete approach to taming inter-plugin dependencies.

Extending schwifty models across plugins

This example of creating a general-purpose "users" plugin demonstrates that, with the help of schwifty, it's possible to create highly reusable, data-oriented hapi plugins.