@lastshotlabs/slingshot-runtime-node
npm install @lastshotlabs/slingshot-runtime-node
Functions
Section titled “Functions”configureRuntimeNodeLogger
Section titled “configureRuntimeNodeLogger”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
function configureRuntimeNodeLogger(logger: RuntimeNodeLogger | null): RuntimeNodeLoggerSource: packages/runtime-node/src/index.ts
configureRuntimeNodeStructuredLogger
Section titled “configureRuntimeNodeStructuredLogger”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
function configureRuntimeNodeStructuredLogger(logger: Logger | null): LoggerSource: packages/runtime-node/src/index.ts
installProcessSafetyNet
Section titled “installProcessSafetyNet”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
function installProcessSafetyNet(): voidSource: packages/runtime-node/src/index.ts
nodeRuntime
Section titled “nodeRuntime”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
function nodeRuntime(options?: NodeRuntimeOptions): NodeSlingshotRuntimeSource: packages/runtime-node/src/index.ts
runtimeNodeInternals
Section titled “runtimeNodeInternals”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts
Classes
Section titled “Classes”NodeContentLengthError
Section titled “NodeContentLengthError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
NodeRequestBodyTooLargeError
Section titled “NodeRequestBodyTooLargeError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
NodeRuntimeError
Section titled “NodeRuntimeError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
NodeServerError
Section titled “NodeServerError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
NodeShutdownError
Section titled “NodeShutdownError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
NodeWebSocketError
Section titled “NodeWebSocketError”Errors thrown by the Node runtime implementation.
Source: packages/runtime-node/src/errors.ts
Interfaces
Section titled “Interfaces”NodeRuntimeOptions
Section titled “NodeRuntimeOptions”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts
NodeRuntimeServerFactory
Section titled “NodeRuntimeServerFactory”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts
NodeRuntimeServerInstance
Section titled “NodeRuntimeServerInstance”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts
NodeSlingshotRuntime
Section titled “NodeSlingshotRuntime”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts
RuntimeNodeLogger
Section titled “RuntimeNodeLogger”This file is intentionally large. It packs multiple runtime subsystems into a
single module to keep the public API surface simple (one import provides
everything) and because the factory pattern used here — nodeRuntime() —
must close over all subsystem state.
Subsystems contained in this file:
- Logger (text-format and structured)
- Process safety net (unhandledRejection, uncaughtException)
- Password hashing via argon2
- SQLite via better-sqlite3
- HTTP/WebSocket server via @hono/node-server + ws
- Filesystem via node:fs/promises
- Glob via fast-glob
See the peer files in src/ for shared error types and the README for usage.
Source: packages/runtime-node/src/index.ts