Plugins

There are dozens of plugins for hapi, ranging from documentation to authentication, and much more. If you wrote or use a plugin that you don't see on this list, please send us a pull request.

- Designates an offical hapi family plugin

Authorization

hacli
ACL support based on permissions hierarchy
github logo
hapi-acl-auth
Authentication provider agnostic authorization plugin for hapi apps
github logo
hapi-authorization
ACL Support for hapi apps
github logo
hapi-auth-ip-whitelist
IP whitelisting auth scheme
github logo
hapi-rbac
A Rule Based Access Control module for hapi
github logo

Authentication

basic
An HTTP Basic authentication scheme
github logo
star 146
fork 68
Updated: Sat Sep 26 2020
bell
Third-party login plugin for hapi with built in Facebook, GitHub, Google, Instagram, LinkedIn, Twitter, Yahoo, Foursquare, VK, ArcGIS Online and Windows Live support
github logo
star 622
fork 214
Updated: Sun Sep 27 2020
cookie
A cookie-based session authentication scheme
github logo
star 235
fork 99
Updated: Sat Sep 26 2020
hapi-auth-bearer-token
A bearer token based authentication scheme
github logo
hapi-auth-jwt2
Simplified JSON Web Token (JWT) authentication plugin
github logo
hapi-jsonwebtoken
JsonWebToken implementation for Hapi.js v17+ with authentication plugin
github logo
hapi-auth-keycloak
JSON Web Token based Authentication powered by Keycloak
github logo
hapi-now-auth
A Hapi v17+ plugin for simplified JSON Web Token (JWT) and Bearer auth tokens
github logo
hapi-openid-connect
A Hapi plugin that implements the OpenID-Connect authorization flow
github logo
hapi-passport-saml
A Hapi plugin that wraps passport-saml for SAML SSO
github logo
hawk
Hawk authentication plugin
github logo
jwt
JWT (JSON Web Token) Authentication.
github logo
star 22
fork 15
Updated: Wed Sep 30 2020

Documentation

hapi-ending
A simplified browsable api documentation generator
github logo
hapi-swagger
A swagger documentation UI generator plugin for hapi
github logo
hapi-swaggered
A plugin to generate swagger v2.0 compliant specifications based on hapi routes and joi schemas
github logo
hapi-swaggered-ui
A plugin to serve and configure swagger-ui
github logo

Encoding

brok
Brotli encoder and decoder
github logo

GraphQL

hapi-plugin-graphiql
HAPI plugin for integrating GraphiQL, an interactive GraphQL user interface
github logo
graphi
Simple to use hapi GraphQL server plugin
github logo

Hypermedia

boom
HTTP-friendly error objects
github logo
star 2789
fork 203
Updated: Sat Sep 26 2020
hapi-openapi
hapi plugin to build design-driven apis with OpenAPI (formerly swagger).
github logo
hapi-http-problem-details
Create HTTP Problem Details (RFC7807) for hapi application errors
github logo
inert
Static file and directory handlers
github logo
star 239
fork 45
Updated: Sat Sep 26 2020

Localization/Internationalization

hapi-i18n
Translation module for hapi based on mashpie's i18n module
github logo
hapi-locale
Configurable plugin to determine request language from URL, Cookie, Query and Header
github logo

Logging/Metrics

blipp
Displays the routes table at startup
github logo
hapi-statsd
Sends request round trip metrics to statsd
github logo
hapi-plugin-traffic
Network traffic accounting
github logo
hapi-alive
Health route for your hapi.js server
github logo
hapi-pino
Fast and simple JSON logger
github logo
hapijs-status-monitor
Realtime Monitoring solution for Hapi.js apps, inspired by GitHub Status
github logo
laabr
Well-formatted pino logger for hapi.js - inspired by morgan
github logo
hapi-k8s-health
Prometheus metrics and liveness / readiness probes
github logo

Messaging

hapi-plugin-websocket
Seamless WebSocket integration by injecting WebSocket messages as HTTP request
github logo
multines
Support for multi-process publish/subscribe for nes
github logo
nes
WebSocket adapter plugin for hapi routes
github logo
star 490
fork 83
Updated: Sat Sep 26 2020
susie
Server-Sent Events for hapi with support for streaming events
github logo
hapi-wechat
Wechat plugin for hapi
github logo

Security

blankie
A plugin that makes Content-Security-Policy headers easy
github logo
crumb
CSRF crumb generation and validation for hapi
github logo
star 173
fork 48
Updated: Sat Sep 26 2020
ralphi
Simple and minimal rate limiting and bruteforce protection
github logo

Session

hapi-server-session
Simple server-side session support for hapi
github logo
yar
A hapi session plugin and cookie jar
github logo
star 135
fork 58
Updated: Sat Sep 26 2020

Templating

hapi-react-views
A hapi view engine for React components
github logo
vision
Templates rendering support
github logo
star 187
fork 67
Updated: Sat Sep 26 2020

Testing

lab
A simple testing utility with code coverage analysis
github logo
star 733
fork 179
Updated: Thu Oct 22 2020
shot
Injects a fake HTTP request/response into your node server logic
github logo
star 199
fork 44
Updated: Sat Sep 26 2020

Utility

admin-bro-hapijs
AdminBro - Admin Panel integrated into your hapijs routes
github logo
akaya
Generate URIs fast based on named hapi routes their parameters
github logo
bissle
Minimalist HALicious pagination reply interface for HapiJS
github logo
configue
Config plugin for Hapi
github logo
cron
Cron jobs for internal hapi.js routes
github logo
cron-cluster
Cron jobs for internal hapi.js routes with leader election (mongodb or redis) - cluster mode
github logo
disinfect
Request query, payload, and params sanitization
github logo
errorh
Custom error pages
github logo
hapi-scaffold
Code generation for the hapijs framework
github logo
hapi-api-version
An API versioning plugin for hapi.
github logo
hapi-auto-route
Automatically load routes from directory
github logo
hapi-aws
A HapiJS plugin for AWS services.
github logo
hapi-bookshelf-serializer
Serialize Bookshelf.js models sent through Hapi reply
github logo
hapi-boom-decorators
Exposes boom errors through the hapi reply interface
github logo
hapi-decorators
Decorators for HapiJS routes
github logo
hapi-dev-errors
Get better error details during development and skip the command line round trip to catch the issue
github logo
hapi-error
Custom error handling with ability to pass an object and render a custom error template or redirect to a specific url on error.
github logo
hapi-gate
Easily handle http to https and www/non-www redirections
github logo
hapi-geo-locate
Geo locate requests by IP and provide the user’s location in your route handlers
github logo
hapi-level-db
HapiJS / LevelDB integration
github logo
hapi-maxmind-web
Hapi.js plugin for MaxMind GeoIP2 Web Service
github logo
hapi-mongo-models
MongoDB object models for hapi applications
github logo
hapi-mongodb
A simple Hapi MongoDB connection plugin, accessing one or several connections pools through server or request properties
github logo
hapi-mongoose
A lightweight mongoose connection and configuration plugin for Hapi 9+
github logo
@watchup/hapi-mongoose
Hapi.js plugin that maps mongoose models to routes
github logo
hapi-multi-mongo
Hapi mongodb connection plugin, especially for multiple connections
github logo
hapi-mysql2
Another mysql plugin for Hapijs that supports multiple connections, inspired by Marsup/hapi-mongodb
github logo
hapi-named-routes
Add named routes to your view templates
github logo
hapio
A simple bridge plugin between HapiJS and SocketIO
github logo
hapi-octopus
A multi-purpose plugin that allows you to autoload methods, handlers, routes and decorators using a simple signature convention.
github logo
hapi-oracledb
Oracledb plugin for hapijs.
github logo
hapi-pagination
A simple / customizable pagination plugin for HapiJS
github logo
hapi-plugin-co
Co-routine based route handlers for asynchronous processing
github logo
hapi-plugin-header
Always send one or more custom HTTP headers, independent of the current route
github logo
hapi-pulse
Gracefully stop the hapi server on SIGINT (for graceful PM2 reloads)
github logo
hapi-rate-limitor
Easy to use rate limiting to prevent brute-force attacks
github logo
hapi-redis2
A redis plugin for Hapijs that supports multiple connections, inspired by Marsup/hapi-mongodb
github logo
hapi-request-user
A hapi plugin that shortcuts “request.auth.credentials” to “request.user”
github logo
hapi-response-time
A Hapi plugin for adding `x-response-time` header to responses
github logo
hapi-router
A plugin to automatically load your routes
github logo
hapi-sanitize-payload
Hapi plugin to sanitize the request payload
github logo
hapi-sequelizejs
A Hapi plugin for Sequelize ORM
github logo
hoek
General purpose node utilities
github logo
star 465
fork 164
Updated: Fri Oct 09 2020
mrhorse
Plugin for adding pre-handlers and post-handlers to routes
github logo
patova
A limitd plugin for hapi, useful for rate-limiting/throttling
github logo
rate-limiter-flexible
Mature and flexible rate limiter, DDoS and bruteforce protection at any scale in process Memory, Cluster or PM2, Redis, Memcached, MongoDb, etc. Block key for some duration, enable Leaky Bucket analogy, manage failover with insurance options, configure smart key blocking in memory and many others.
github logo
recourier
Request lifecycle property sealing
github logo
rest-hapi
A RESTful API generator for hapi
github logo
scooter
User-agent information plugin
github logo
star 47
fork 22
Updated: Sat Sep 26 2020
spazy
Static file and single page application (spa) plugin for hapi
github logo
therealyou
A plugin for setting the request.info.remoteAddress and request.info.remotePort based on the X-Forwarded-For and X-Forwarded-Port headers
github logo
wozu
Server decorator to list all defined hapi.js routes
github logo
wurst
Directory based autoloader for routes
github logo
Wildcard API
RPC implementation for browser ⇔ Node.js communication.
github logo
topo
Topological sorting with grouping support
github logo
star 102
fork 27
Updated: Sat Sep 26 2020
wreck
HTTP Client utilities
github logo
star 378
fork 102
Updated: Sat Sep 26 2020
glue
Server composer
github logo
star 245
fork 59
Updated: Sat Sep 26 2020
h2o2
Proxy handler
github logo
star 157
fork 63
Updated: Sat Sep 26 2020
hapi-graceful-pm2
Handle true zero downtime reloads when issuing a pm2 gracefulReload command
github logo
podium-hapi-layout
Hapi plugin for writing Micro Frontend Layout servers with Podium - https://podium-lib.io
github logo
podium-hapi-podlet
Hapi plugin for writing Micro Frontend Fragment servers with Podium - https://podium-lib.io
github logo
qs
A querystring parser with support for arrays and objects
github logo
tarm
Add tarmount handler for serving tar file contents
github logo

Validation

blaine
Server-level file signature validation for raw request payloads in memory
github logo
burton
Server-level file signature validation for raw stream request payloads
github logo
copperfield
Server-level file signature validation for parsed request payloads in memory
github logo
coutts
Server-level file signature validation for raw temporary file request payloads
github logo
fischbacher
Server-level file signature validation for parsed temporary file request payloads
github logo
hapi-plugin-ducky
Validating payloads with the DuckyJS JSON validation language
github logo
henning
Server-level file signature validation for parsed request payload file streams
github logo
houdin
Route-level file signature validation for request payloads in memory
github logo
joi
Object schema description language and validator for JavaScript objects
github logo
lafayette
Route-level file signature validation for temporary file request payloads
github logo
supervizor
Server-level request payload validation
github logo
thurston
Route-level file signature validation for request payload file streams
github logo

hapi pal

ahem
hapi plugins as libraries
github logo
avocat
Convert objection DB errors to boom HTTP errors
github logo
boilerplate
A friendly, proven starting place for your next hapi plugin or deployment
github logo
confidence
A configuration document format, an API, and a foundation for A/B testing
github logo
haute-couture
File-based hapi plugin composer
github logo
hecks
Mount your express app onto your hapi server, aw heck!
github logo
hodgepodge
A plugin dependency resolver
github logo
hpal
The hapi pal CLI, for searching hapi docs, scaffolding projects, and running custom server commands
github logo
hpal-debug
hapijs debugging tools for the hapi pal CLI
github logo
lalalambda
Serverless functions powered by hapijs
github logo
schmervice
A service layer for hapi
github logo
schwifty
A model layer for hapi integrating Objection ORM
github logo
tandy
Auto-generated, RESTful, CRUDdy route handlers for Objection models
github logo
toys
The hapi utility toy chest
github logo
underdog
HTTP/2 server-push for hapi
github logo