Olympus Docs
ReferenceAPIsSDK

SDK API

@olympusoss/sdk exported API surface

The SDK is consumed by Athena, Hera, and Site. It provides:

  • Settings vault (key-value in the olympus database)
  • AES-256-GCM encryption with HKDF-SHA256 key derivation
  • In-memory TTL cache for hot reads
  • Brute-force tracking, lockout, and security audit
  • Session location tracking

The API is small. There are no async iterators, no event emitters, no streaming. Most functions are async (read/write Postgres) and return well-typed data.

Modules

ModuleExportsDescription
blocklist1ENCRYPTION_KEY_BLOCKLIST
brute-force12BruteForceConfig, LockoutState, LockedAccount, …
cache2SettingsCache, settingsCache
crypto6encrypt, decrypt, isEncryptedFormat, …
db10getDb, getSettingsTable, ensureTable, …
locations6SessionLocation, AddSessionLocationData, GetSessionLocationsOptions, …
migrate-encryption-key0
settings11Setting, SetSettingOptions, getSetting, …

Installation

bun add @olympusoss/sdk

Required environment

The SDK requires:

See the environment variable catalog for the full list.

On this page