Oliphaunt

API Reference

TypeScript SDK API map for desktop JavaScript, native assets, broker helpers, SQL, lifecycle, and data movement.

Use the TypeDoc reference for exact declarations. This page maps the TypeScript SDK by task.

AreaPublic surfaceUse it for
OpeningOliphaunt.open, OpenConfigOpen a native direct, broker, or server-backed database from Node.js, Bun, or Deno
Native assetsasset resolver exportsLocate released runtime artifacts from the package
Runtime modeengine, supportedModes()Choose direct, broker, or server where the desktop runtime supports it
Capabilitiescapabilities()Check protocol, streaming, backup, restore, extension, and lifecycle support
SQLquery, execute, typed result helpersRun SQL and read typed values from JavaScript
Raw protocolexecProtocolRaw, protocol utilitiesSend PostgreSQL protocol bytes through the selected native path
StreamingexecProtocolStreamConsume large result sets without materializing one huge JS buffer
Broker/server helpershelper process APIsStart or connect to a local helper when isolation or PostgreSQL-compatible clients are needed
Data movementbackup, restore, archive helpersMove roots through validated physical archives
ErrorsOliphauntError, PostgresErrorHandle SDK errors and SQLSTATE data

React Native apps use @oliphaunt/react-native. This package is for desktop JavaScript runtimes.