{"library":"pg-people","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"2.3.0","tags":["javascript"],"install":[{"cmd":"npm install pg-people","imports":["const PgPeople = require('pg-people');\n// then register with Hapi server.register({ plugin: PgPeople, options: ... })","await request.server.pg.people.getAllPeople();","await request.server.pg.people.add(userObj, cb);"]},{"cmd":"yarn add pg-people","imports":[]},{"cmd":"pnpm add pg-people","imports":[]}],"homepage":null,"github":"https://github.com/postgres-plugin/people","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pg-people","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pg-people/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}