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
hapi-acl-auth
Authentication provider agnostic authorization plugin for hapi apps
hapi-authorization
ACL Support for hapi apps
hapi-auth-ip-whitelist
IP whitelisting auth scheme
hapi-rbac
A Rule Based Access Control module for hapi

Authentication

basic
An HTTP Basic authentication scheme
star 147
fork 66
Updated: Wed Oct 23 2024
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
star 623
fork 211
Updated: Wed Mar 12 2025
cookie
A cookie-based session authentication scheme
star 229
fork 99
Updated: Wed Oct 23 2024
hapi-auth-bearer-token
A bearer token based authentication scheme
hapi-auth-jwt2
Simplified JSON Web Token (JWT) authentication plugin
hapi-jsonwebtoken
JsonWebToken implementation for Hapi.js v17+ with authentication plugin
hapi-auth-keycloak
JSON Web Token based Authentication powered by Keycloak
hapi-now-auth
A Hapi v17+ plugin for simplified JSON Web Token (JWT) and Bearer auth tokens
hapi-openid-connect
A Hapi plugin that implements the OpenID-Connect authorization flow
hapi-passport-saml
A Hapi plugin that wraps passport-saml for SAML SSO
hapi-saml2
A Hapi plugin that wraps node-saml for SAML SSO
jwt
JWT (JSON Web Token) Authentication.
star 36
fork 25
Updated: Sat Mar 16 2024

Automation/Integrations

apitraffic-hapi
Seamlessly integrate with over 240 external systems

Boilerplate

hapi-mvc
MVC structure and boilerplating for Hapi.js Projects

Documentation

hapi-ending
A simplified browsable api documentation generator
hapi-swagger
A swagger documentation UI generator plugin for hapi
hapi-swaggered
A plugin to generate swagger v2.0 compliant specifications based on hapi routes and joi schemas
hapi-swaggered-ui
A plugin to serve and configure swagger-ui
optic-hapi-middleware
Document API endpoints using Optic

Encoding

brok
Brotli encoder and decoder

GraphQL

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

Kubernetes

hapi-on-kubernetes
A simple plugin design to connect the kubernetes probes to the lifecycles of Hapi

Hypermedia

boom
HTTP-friendly error objects
star 2934
fork 195
Updated: Wed Oct 23 2024
hapi-openapi
hapi plugin to build design-driven apis with OpenAPI (formerly swagger).
hapi-http-problem-details
Create HTTP Problem Details (RFC7807) for hapi application errors
inert
Static file and directory handlers
star 237
fork 49
Updated: Wed Oct 23 2024

Localization/Internationalization

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

Logging/Metrics

apitraffic-hapi
Collects API request/response data for monitoring and analytical purposes
blipp
Displays the routes table at startup
hapi-statsd
Sends request round trip metrics to statsd
hapi-plugin-traffic
Network traffic accounting
hapi-alive
Health route for your hapi.js server
hapi-pino
Fast and simple JSON logger
hapijs-status-monitor
Realtime Monitoring solution for Hapi.js apps, inspired by GitHub Status
laabr
Well-formatted pino logger for hapi.js - inspired by morgan
hapi-k8s-health
Prometheus metrics and liveness / readiness probes
hapi-audit-rest
Hapi.js plugin that generates audit logs for RESTful APIs

Messaging

hapi-plugin-websocket
Seamless WebSocket integration by injecting WebSocket messages as HTTP request
multines
Support for multi-process publish/subscribe for nes
nes
WebSocket adapter plugin for hapi routes
star 502
fork 87
Updated: Wed Jan 08 2025
susie
Server-Sent Events for hapi with support for streaming events
hapi-wechat
Wechat plugin for hapi

Security

blankie
A plugin that makes Content-Security-Policy headers easy
crumb
CSRF crumb generation and validation for hapi
star 171
fork 50
Updated: Wed Oct 23 2024
ralphi
Simple and minimal rate limiting and bruteforce protection

Session

hapi-server-session
Simple server-side session support for hapi
yar
A hapi session plugin and cookie jar
star 133
fork 59
Updated: Sat Mar 22 2025

Templating

ndsk
React framework developed based on hapi
hapi-react-views
A hapi view engine for React components
vision
Templates rendering support
star 197
fork 69
Updated: Wed Oct 23 2024

Testing

lab
A simple testing utility with code coverage analysis
star 740
fork 177
Updated: Wed Jun 18 2025
shot
Injects a fake HTTP request/response into your node server logic
star 197
fork 42
Updated: Wed Aug 13 2025

Utility

admin-bro-hapijs
AdminBro - Admin Panel integrated into your hapijs routes
akaya
Generate URIs fast based on named hapi routes their parameters
bissle
Minimalist HALicious pagination reply interface for HapiJS
configue
Config plugin for Hapi
cron
Cron jobs for internal hapi.js routes
cron-cluster
Cron jobs for internal hapi.js routes with leader election (mongodb or redis) - cluster mode
disinfect
Request query, payload, and params sanitization
errorh
Custom error pages
hapi-scaffold
Code generation for the hapijs framework
hapi-api-version
An API versioning plugin for hapi.
hapi-auto-route
Automatically load routes from directory
hapi-aws
A HapiJS plugin for AWS services.
hapi-bookshelf-serializer
Serialize Bookshelf.js models sent through Hapi reply
hapi-boom-decorators
Exposes boom errors through the hapi reply interface
hapi-ecma-decorators
New Decorators for hapi routes following ECMA/TC39 Proposal Stage 3
hapi-decorators
Decorators for HapiJS routes
hapi-dev-errors
Get better error details during development and skip the command line round trip to catch the issue
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.
hapi-gate
Easily handle http to https and www/non-www redirections
hapi-geo-locate
Geo locate requests by IP and provide the user’s location in your route handlers
hapi-level-db
HapiJS / LevelDB integration
hapi-maxmind-web
Hapi.js plugin for MaxMind GeoIP2 Web Service
hapi-mongo-models
MongoDB object models for hapi applications
hapi-mongodb
A simple Hapi MongoDB connection plugin, accessing one or several connections pools through server or request properties
hapi-mongoose
A lightweight mongoose connection and configuration plugin for Hapi 9+
@watchup/hapi-mongoose
Hapi.js plugin that maps mongoose models to routes
hapi-multi-mongo
Hapi mongodb connection plugin, especially for multiple connections
hapi-mysql2
Another mysql plugin for Hapijs that supports multiple connections, inspired by Marsup/hapi-mongodb
hapi-postgres
Hapi postgres connection plugin, supports both client and pool mode, inspired by Marsup/hapi-mongodb
hapi-named-routes
Add named routes to your view templates
hapio
A simple bridge plugin between HapiJS and SocketIO
hapi-octopus
A multi-purpose plugin that allows you to autoload methods, handlers, routes and decorators using a simple signature convention.
hapi-oracledb
Oracledb plugin for hapijs.
hapi-pagination
A simple / customizable pagination plugin for HapiJS
hapi-plugin-co
Co-routine based route handlers for asynchronous processing
hapi-plugin-header
Always send one or more custom HTTP headers, independent of the current route
hapi-pulse
Gracefully stop the hapi server on SIGINT (for graceful PM2 reloads)
hapi-rate-limitor
Easy to use rate limiting to prevent brute-force attacks
hapi-redis2
A redis plugin for Hapijs that supports multiple connections, inspired by Marsup/hapi-mongodb
hapi-request-user
A hapi plugin that shortcuts "request.auth.credentials" to "request.user"
hapi-response-time
A Hapi plugin for adding `x-response-time` header to responses
hapi-router
A plugin to automatically load your routes
hapi-sanitize-payload
Hapi plugin to sanitize the request payload
hapi-sequelizejs
A Hapi plugin for Sequelize ORM
hoek
General purpose node utilities
star 482
fork 173
Updated: Wed Aug 06 2025
mrhorse
Plugin for adding pre-handlers and post-handlers to routes
patova
A limitd plugin for hapi, useful for rate-limiting/throttling
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.
recourier
Request lifecycle property sealing
rest-hapi
A RESTful API generator for hapi
scooter
User-agent information plugin
star 46
fork 24
Updated: Sat Nov 11 2023
spazy
Static file and single page application (spa) plugin for hapi
therealyou
A plugin for setting the request.info.remoteAddress and request.info.remotePort based on the X-Forwarded-For and X-Forwarded-Port headers
wozu
Server decorator to list all defined hapi.js routes
wurst
Directory based autoloader for routes
Wildcard API
RPC implementation for browser ⇔ Node.js communication.
topo
Topological sorting with grouping support
star 108
fork 26
Updated: Wed Oct 23 2024
wreck
HTTP Client utilities
star 382
fork 103
Updated: Wed Apr 10 2024
glue
Server composer
star 245
fork 62
Updated: Wed Oct 23 2024
h2o2
Proxy handler
star 164
fork 63
Updated: Wed Oct 23 2024
hapi-graceful-pm2
Handle true zero downtime reloads when issuing a pm2 gracefulReload command
podium-hapi-layout
Hapi plugin for writing Micro Frontend Layout servers with Podium - https://podium-lib.io
podium-hapi-podlet
Hapi plugin for writing Micro Frontend Fragment servers with Podium - https://podium-lib.io
qs
A querystring parser with support for arrays and objects
tarm
Add tarmount handler for serving tar file contents
hapi-orientdb
OrientDB plugin for hapijs.

Validation

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

hapi pal

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

AltStyle によって変換されたページ (->オリジナル) /