Registry / database / ron
library0.0.8jsnpmunverified

ron is a Redis ORM for Node.js that provides a simple, schema-based abstraction over Redis data structures. It allows defining models with types and auto-generates Redis commands for CRUD operations. The package is currently at version 0.0.8 and appears to be in early development with low activity. It differs from other Redis ORMs by its minimalistic approach and direct mapping to Redis types. However, it lacks recent updates and may have limited community support.

npm install ron
INSTALL
IMPORT
SIG · RON
R
ron
databasejavascriptv0.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ron
const ron = require('ron')
import ron from 'ron'
Package uses CommonJS; ESM import may not work.
Schema
const { Schema } = require('ron')
Property of default export.
Model
const { Model } = require('ron')
Property of default export.

This example shows defining a User schema, creating a model, inserting a document, and querying all documents.

const ron = require('ron'); const client = require('redis').createClient(); // Define a User schema const UserSchema = new ron.Schema({ name: String, age: Number }); // Create a model const User = new ron.Model('User', UserSchema, { client }); // Create a user User.create({ name: 'Alice', age: 30 }, (err, user) => { if (err) throw err; console.log(user); }); // Find all users User.find({}, (err, users) => { if (err) throw err; console.log(users); });
Debug
Known issues
gotchaRequires a running Redis server – no fallback.
fix
Ensure Redis is installed and running on localhost:6379.
affects: >=0.0.1
breakingThe package is no longer maintained and may not work with modern Node.js (Node >= 12).
fix
Consider alternatives like redis-om or ioredis.
affects: >=0.0.8
deprecatedLast release was 0.0.8 in 2017; no updates for years.
fix
Use a maintained library such as redis-om.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'ron'
Package not installed or version too new/old.
fix
Run 'npm install ron@0.0.8' to install the last published version.
ron.Schema is not a constructor
Incorrect import or usage pattern.
fix
Use 'const ron = require('ron');' then 'new ron.Schema(...)'.
Error: Redis connection to 127.0.0.1:6379 failed
Redis server not running.
fix
Start Redis server: 'redis-server'.
Upgrade
Version history
0.0.8latest on npm
Audit
Dependencies
redisrequiredRequired to communicate with Redis server
Agent activity
7 hits · last 30 days
node
6
Resources
packageron
ron — npm install ron · libregistry