Registry / web-framework / hpal
library2.6.0jsnpmunverified

hpal is the command-line interface (CLI) for the hapi pal ecosystem, designed to streamline the development of Hapi.js applications. Currently at version 2.6.0, hpal offers tools for rapidly scaffolding new Hapi projects based on the official pal boilerplate, generating common application components like routes, models (using schwifty), and services (using schmervice) through haute-couture conventions, and providing a command-line interface to search Hapi and related package documentation (e.g., Joi, Toys). It also enables the execution of custom commands defined by Hapi server plugins. The tool is maintained as part of the hapipal initiative, focusing on convention over configuration for Hapi development, and is primarily intended for use via npx as a development dependency.

npm install hpal
INSTALL
IMPORT
SIG · HPAL
H
hpal
web-frameworkjavascriptv2.6.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hpal
✓ npx hpal <command> <options>
✗ hpal <command> <options>
hpal is a CLI tool and is not designed for programmatic import via `import` or `require`. It should be invoked using `npx` from your project's root, or after local installation as a dev dependency.
hpal new
✓ npx hpal new <project-directory>
Creates a new hapi project scaffold based on the pal boilerplate.
hpal make
✓ npx hpal make <item-type> <item-name>
Generates new haute-couture-managed files (e.g., routes, models, services) within an existing project.

Installs hpal as a dev dependency and then uses npx to search the Hapi.js documentation for the `h.response` method specific to version 18.1.0.

npm install --save-dev hpal npx hpal docs --ver 18.1.0 h.response
hpal --version
Debug
Known issues
gotchahpal is designed for use with Hapi.js v17+ and Node.js v8+ environments. Using it with older versions of Hapi or Node.js may lead to unexpected behavior or errors.
fix
Ensure your project's Hapi.js version is 17 or higher and your Node.js runtime is 8 or higher.
affects: <=2.6.0
gotchaThe recommended installation method for hpal is as a development dependency, invoked via `npx`. Avoid global installation (`npm install -g hpal`) to prevent version conflicts and ensure projects use their specified hpal version.
fix
Install with `npm install --save-dev hpal` and run using `npx hpal <command>`.
affects: >=1.0.0
gotchaThe `hpal make` command requires a `.hc.js` file to be present in your project's root or the specified plugin directory. This file dictates the haute-couture conventions for file generation.
fix
Ensure your project is configured for haute-couture with a `.hc.js` file. Projects scaffolded with `hpal new` are pre-configured.
affects: >=1.0.0
Errors
Common errors & fixes
hpal: command not found
The hpal CLI is not globally installed or `npx` is not being used to invoke a locally installed `hpal` within a project's `node_modules`.
fix
Install hpal as a dev dependency (`npm install --save-dev hpal`) and then run commands using `npx hpal <command>`.
Error: hpal make expects a .hc.js file in the project root or specified plugin directory.
Attempting to use `hpal make` in a project that does not have a `.hc.js` configuration file, which is essential for haute-couture based file generation.
fix
Create a `.hc.js` file in your project's root, even if empty, or scaffold your project using `npx hpal new` which includes this configuration.
Error: Plugin 'my-plugin' requires hapi version '20.x.x' but found '17.x.x'.
While not a direct hpal error, this often arises when hpal is used in a project with an older Hapi.js version that's incompatible with a plugin or boilerplate generated by hpal.
fix
Update your project's Hapi.js dependency to match the requirements of the generated code or plugins.
Upgrade
Version history
2.6.0latest on npm
Audit
Dependencies
hapirequiredhpal is designed for use with hapi v17+ and heavily interacts with the hapi ecosystem for scaffolding, generating, and running commands.
haute-couturerequiredThe `hpal make` command relies on a project being structured according to haute-couture conventions and the presence of a .hc.js file.
Agent activity
6 hits · last 30 days
node
6
Resources
hpal — npm install hpal · libregistry