An advanced ORM for AWS DynamoDB (v8.0.1, active development, frequent releases). Provides a high-level abstraction over the AWS SDK v3 DocumentClient, offering strongly-typed models, advanced querying, and built-in support for optimistic locking, transactional operations, and multi-table patterns. Unlike simpler ORMs, Dynatron handles complex DynamoDB concepts like secondary indexes, conditional updates, and batch operations. Latest version adds ESM support and improved TypeScript inference via conditional types. Ships TypeScript declarations.
npm install dynatronNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of Model with DynamoDBClient, including create, find, conditional update, and secondary index query.
Switch to ESM imports or use dynamic import(). For older Node versions, use v7.x.
Use @aws-sdk/node-http-handler as peer dependency; future versions may remove this requirement.
Use new Model('TableName', { schema: ..., client: ... }) instead of new Model('TableName', schema, client).Rename schema attribute 'type' to something else, e.g., 'attrType'.
Always provide index name when using secondary indexes.
Install peer dependencies: npm install @aws-sdk/client-dynamodb @aws-sdk/node-http-handler
Use import syntax or set 'type': 'module' in package.json
Install @types/node and ensure tsconfig includes 'moduleResolution': 'node'