Skip to content

@lastshotlabs/slingshot-runtime-node

npm install @lastshotlabs/slingshot-runtime-node

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): RuntimeNodeLogger

Source: packages/runtime-node/src/index.ts

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): Logger

Source: packages/runtime-node/src/index.ts

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(): void

Source: packages/runtime-node/src/index.ts

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): NodeSlingshotRuntime

Source: packages/runtime-node/src/index.ts

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

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

Errors thrown by the Node runtime implementation.

Source: packages/runtime-node/src/errors.ts

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

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

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

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

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