Nohm is an ORM for Node.js and Redis, written in TypeScript with first-class typings. It supports standard ORM features (validate, store, search, sort, link/unlink, delete), dynamic relations defined at runtime, shared validations with the browser, and PubSub-based ORM events for live updates. The project is currently unmaintained (last release 3.0.0) and has known security vulnerabilities. It requires Redis >= 2.4 and Node >= 8.
npm install nohmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows ESM import of Nohm, NohmModel, ValidationError; Redis client creation; model class definition with static properties; model save with validation error handling.
Use import { Nohm } from 'nohm' or wrap require in a dynamic import: const { Nohm } = await import('nohm');Create a redis client with 'createClient()' and call 'Nohm.setClient(client)' before using models.
Use 'type: 'string'' instead of 'type: String' and ensure all definition objects are complete.
Define a class that extends NohmModel and set static modelName and definitions.
Evaluate alternatives like redis-om or ioredis based ORMs.
Update to Node >= 16 and use 'import { Nohm } from 'nohm'' or enable ESM via 'type': 'module' in package.json.Use correct import: import { Nohm } from 'nohm' instead of import Nohm from 'nohm'.Call Nohm.setClient(redisClient) immediately after creating the redis client.