@tesseractcollective/serverless-toolbox
v0.7.0
Published
Reusable building blocks for AWS Lambda, API Gateway, DynamoDB and S3
Downloads
18
Keywords
Readme
serverless-toolbox
Object stores
An object store is a simple interface to get, put, and delete json documents based on a unique id. This library includes object store implementations for DynamoDB and S3.
export default interface ObjectStore<T> {
get(id: string): Promise<T | undefined>;
put(id: string, item: T): Promise<T>;
delete(id: string): Promise<void>;
updateState(id: string, action: Action, reducer: Reducer<T>): Promise<T>;
}
API Gateway
This library provides sensible defaults for API Gateway using express. It also provides a websocket subscription service for API Gateway.
Auth
This library provides sensible defaults and helpers for hashing and verifying passwords and dealing with tokens.