A Node.js Simple Query Builder and ORM for AWS DynamoDB, providing an ActiveRecord-like interface with built-in migration and CLI tools. Current stable version 0.2.15 (last released around 2016). It wraps the low-level AWS SDK v2 DynamoDB client to simplify queries, filters, and CRUD operations. Key differentiators include a query builder that avoids verbose AWS parameter objects, a light ORM with Active Record patterns, and a migration system. Released quarterly, but no recent updates in years.
npm install npdynamodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize npdynamodb client, perform a getItem by hash key, and a query with range key filter and descending order.
Migrate to AWS SDK v3 and use DocumentClient or alternatives like dynamoose, dynamodb-datamodel.
Install aws-sdk v2, not @aws-sdk/client-dynamodb.
Use const npd = npdynamodb.createClient(dynamodb); then call npd() to start a query.
Ensure you chain .where() for both hash and range key before first().
npm install aws-sdk@2
const npd = npdynamodb.createClient(dynamodb); then npd().table('users')Ensure all key attributes (hash and range) are provided via .where()