
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
Make a new repo for your server, and add hapi-base as a dependency.
Create a config file:
// config.js
var MyPlugin = require('my-plugin')
module.exports = {
partitions: [
{
domains: ['necrotizing-pineapple.com']
, plugins: [MyPlugin]
}
]
}
Create an index file:
// index.js
var startCluster = require('hapi-base').startCluster
, require('./config.js')
startCluster(config)
The most important configuration option, this is an array of partitions.
A partition looks like this:
{
domains: ['necrotizing-pineapple.com']
, plugins: [MyPlugin]
}
This says "handle connections that come from these domains with these plugins". We do it this way to keep route configuration separate from the hapi-base repo.
Internally, labels are derived from the domains and used to route the connections to the right place.
FAQs
## Quick Start
The npm package hapi-base receives a total of 2 weekly downloads. As such, hapi-base popularity was classified as not popular.
We found that hapi-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.