redis-orm-node is a lightweight Object-Relational Mapping (ORM) library for Node.js that simplifies interaction with Redis by mapping JavaScript objects to Redis data structures. Current stable version is 0.0.14, released irregularly as a new project. It is inspired by TypeORM and provides decorator-based entity definitions, repository pattern, and support for Redis types like strings, hashes, sets, lists, and sorted sets. Key differentiators include TypeScript-first design, integration with node-redis (v4), and a familiar ORM-like API for Redis. However, it is early-stage and may lack production readiness or comprehensive documentation.
npm install redis-orm-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup with entity definition, repository creation, CRUD operations using redis-orm-node.
Add 'await init();' after creating the Redis client and before calling getRepository.
Add 'import "reflect-metadata";' at the very top of your application entry point.
Pin exact version and monitor GitHub for breaking changes.
Ensure 'await client.connect();' is called before 'await init();'.
Uninstall old package: 'npm uninstall redis-orm-nod' and install 'npm install redis-orm-node'.
Call 'await init();' after connecting the Redis client.
Install reflect-metadata: 'npm install reflect-metadata' and import it at the top of your entry file: 'import "reflect-metadata";'
Install the package: 'npm install redis-orm-node'. Ensure you are using the correct name (not 'redis-orm').