A TypeScript utility library (v1.0.6) for Aerospike that provides an entity-based ORM pattern using decorators (@Bin) and a base repository (BaseRepository) for CRUD, batch, and query operations. It is designed to simplify mapping class properties to Aerospike bins with support for default values and required fields. The library is ESM-only and depends on the aerospike client package. It is actively maintained with a low release cadence.
npm install aerospike-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an entity class with Bin decorators, a custom repository, connecting to Aerospike, and performing a getOrCreate operation.
Use import syntax and ensure your project is configured for ESM (type: 'module' in package.json or .mjs extension).
Implement manual validation before save for required fields.
Ensure id is always string or number.
Use exp module for filter expressions as shown in the README.
Add 'type': 'module' to your package.json or rename file to .mjs.
Use ES module import syntax.
Use import { BaseEntity } from 'aerospike-orm'.