@open-matrix/hosting-node (1.1.33)

Published 2026-10-24 11:36:36 +00:00 by hivecast-admin

Installation

@open-matrix:registry=
npm install @open-matrix/hosting-node@1.1.33
"@open-matrix/hosting-node": "1.1.33"

About this package

@open-matrix/hosting-node

Node.js leaves for @open-matrix/hosting.

The neutral host package deliberately contains no process or Node built-in imports. This package supplies the Bridge from IHostLifetime to Node process signals.

const builder = Host.CreateApplicationBuilder();
AddNodeProcessLifetime(builder.Services);
await using host = builder.Build();
await host.RunAsync();

NodeProcessLifetime requests cooperative host shutdown on SIGINT or SIGTERM. It does not call process.exit() and does not own transport, telemetry, package, or actor resources. Those resources remain hosted-service responsibilities and stop in reverse registration order.

Deliberate policy boundary

A second signal does not force immediate process termination. Escalation is an executable-edge policy because the correct response depends on whether the process is supervised by systemd, HiveDock, a test harness, or another embedder. The reusable lifetime adapter only requests application shutdown once.

Dependencies

Dependencies

ID Version
@open-matrix/hosting 1.1.33

Development Dependencies

ID Version
@types/node ^20.0.0
typescript ^5.7.0
Details
npm
2026-10-24 11:36:36 +00:00
1
MIT
latest
4.1 KiB
Assets (1)
Versions (10) View all
1.1.33 2026-10-24
1.1.32 2026-10-24
1.1.2 2026-09-22
1.1.1 2026-09-22
0.1.8 2026-09-22