Skip to main content

Setup

npm install @aws-sdk/client-dynamodb
import { DynamoDBStorage } from "@radaros/core";

const storage = new DynamoDBStorage({
  region: "us-east-1",
  tableName: "radaros_kv",
});

// Local development
const storage = new DynamoDBStorage({
  endpoint: "http://localhost:8000",
  region: "local",
});

Configuration

OptionTypeDefaultDescription
tableNamestring"radaros_kv"DynamoDB table name
regionstringAWS region
endpointstringCustom endpoint (for local dev)
credentialsobjectAWS credentials override
The table is auto-created on first initialize() with partition key namespace and sort key key, using PAY_PER_REQUEST billing.