Code common to @hapi
- Typed and required validation for input payloads
-
Simple plugin abstractions
- Easily wire in custom health checks per route group that can be part of the ping uptime checks
- Built in ping endpoint for load balancing
- Built in metrics plugin
- Built in logging plugin
- Automatic redaction of PII sensitive data based on property name heuristics of
ssn
,password
, etc
- Automatic redaction of PII sensitive data based on property name heuristics of
- Standard error handling plugin
- Sane responses detected on invalid connections to sql drivers to report back maintenance downtime
- HMAC authorization support
- Bearer authorization support
- IP Filtering plugin support for per route allow lists
- Simple registration of routables to register with hapi
-
Server wrapper that
- Allows CLS based traces for per-request tracing
- Standardizes response in an envelope shape, provides built in localization support, standard error codes, and more