Stentor Storage provides a persistent storage abstraction for the stentor assistant framework. It defines StorageService interface and default implementations (DynamoDB, S3) for managing user-level data like session attributes, conversation state, and account linking tokens. Version 1.72.4 targets Node 12–24 (requires stentor-models 1.x). It is released as needed alongside stentor ecosystem packages. Key differentiator: opinionated schema with built-in encryption and TTL support, unlike generic storage libraries.
npm install stentor-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates two common usage patterns: using the factory function getStorage() with config, and directly instantiating DynamoStorageService with store() and retrieve() methods.
Update calls to getStorage({ provider: 'dynamo', ... }) instead of getStorage('dynamo', ...).Replace S3KeyValueStorage usage with S3JsonStorage for new projects.
Always retrieve data before store if you need to preserve existing fields.
Add ttlInSeconds to DynamoStorageService options for auto-expiry.
Verify that the table's hash key is 'userId' (default) or adjust DynamoStorageService keyAttribute option.
Check import: import { DynamoStorageService } from '@xapp/stentor-storage'. Ensure stentor-models is installed.Set DYNAMO_TABLE environment variable or pass tableName option to DynamoStorageService.