Preparing for system design interviews?  Try bugzed.com →

Hapi PostgreSQL People Plugin

JSON →
library 2.3.0 ·javascript maintenance
verified Jun 17, 2026

pg-people is a Hapi plugin designed to manage 'people' and 'organisations' data within a PostgreSQL database. As of version 2.3.0, it provides a structured approach for user management, including adding users, updating passwords, retrieving user and organization details, and toggling account activity. It integrates with Hapi by exposing its functions via the `request.server.pg.people` and `request.server.pg.organisations` objects after registration. The plugin automatically creates necessary tables (`people`, `organisations`, `tags_organisations`) if they don't exist, and offers an option to reset tables with initial data. Its release cadence appears tied to the Hapi ecosystem, targeting older Node.js environments (engine `^6.5.0`). A key differentiator is its seamless integration with Hapi's request lifecycle, extending `request.pg` which implies a reliance on another Hapi plugin to establish the underlying PostgreSQL connection.

total hits 24
actors 5 distinct systems
last hit 19d ago AhrefsBot
ByteDance
6
GPTBot
4
Amazonbot
4
Script
1
Humans
5

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇫🇷 France · 🇨🇦 Canada · VN