An object-relational mapper (ORM) for Amazon QLDB (Quantum Ledger Database) in Node.js. Current stable version 2.0.10 provides serialization/deserialization of QLDB Ion documents to JavaScript objects with support for TypeScript types. Actively maintained with monthly releases. Differentiates by offering a declarative model definition, schema validation, and seamless integration with the AWS QLDB driver.
npm install qldb-serialiserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates defining a QLDB model class, creating a record, and saving it to a QLDB ledger.
Install aws-sdk@^3.0.0 as a peer dependency.
Use import { QLDBClient } from 'qldb-serialiser' for v1.x.Define tableName and fields as static properties on the class.
Avoid relying on unique constraints; implement application-level checks.
Upgrade to v2.0.0 or later, or import QLDBClient from the main entry in v1.x.
Use import { QLDBModel } from 'qldb-serialiser'.Use built-in constructors like String, Number, Date for field types.