Registry / database / reheat

reheat

JSON →
library1.0.0-beta.10jsnpmunverified

A Node.js ORM for RethinkDB that simplifies data access with features like connection pooling, model lifecycle hooks, schema definition, validation, and relationship management. Current version is 1.0.0-beta.10, supporting RethinkDB 1.15.x and newer. It provides a declarative Model definition, automatic validation, and query builder integration with ReQL. Differentiators include lifecycle hooks (beforeUpdate, afterDestroy), schema-based validation, and ability to convert req.query to ReQL. Considered beta software with API fluctuations expected before 1.0.0.

npm install reheat
INSTALL
IMPORT
SIG · REHEAT
R
reheat
databasejavascriptv1.0.0-beta.10
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.

reheat
✓ const reheat = require('reheat');
✗ import reheat from 'reheat';
Package uses CommonJS, not ES modules.
Connection
✓ const Connection = reheat.Connection;
✗ const { Connection } = require('reheat');
CommonJS pattern, destructuring works but not from named export.
Model
✓ const Model = reheat.Model;
✗ import { Model } from 'reheat';
Model is a property of the default export, not a named export.

Shows how to connect to RethinkDB, define a model, create an instance, and save it with promises.

const reheat = require('reheat'); const connection = new reheat.Connection({ db: 'local' }); const Post = reheat.defineModel('Post', { tableName: 'post', connection: connection }); const post = new Post({ author: 'Jason Dobry', title: 'How to reheat your app' }); post.isNew(); // true post.save().then(function (saved) { console.log(saved.toJSON()); saved.isNew(); // false });
Debug
Known issues
deprecatedPackage is in beta (v1.0.0-beta.10) and API may change until stable release.
fix
Pin to exact version and monitor changelog for breaking changes.
affects: <1.0.0
breakingVersion 1.0.0-beta.x may introduce breaking changes without major version bump.
fix
Lock dependency to minor version range (e.g., 1.0.0-beta.10).
affects: >=1.0.0-beta.0 <1.0.0
gotchaRethinkDB connection requires running RethinkDB instance; no fallback or in-memory mode.
fix
Ensure RethinkDB server is running and accessible.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rethinkdb'
Missing peer dependency rethinkdb.
fix
Install rethinkdb: npm install rethinkdb --save
TypeError: reheat.Connection is not a constructor
Incorrect import or require path.
fix
Use: const reheat = require('reheat'); then new reheat.Connection(...)
Upgrade
Version history
1.0.0-beta.10latest on npm
Audit
Dependencies
rethinkdbrequiredPeer dependency for RethinkDB driver
Agent activity
4 hits · last 30 days
node
4
Resources
packagereheat ↗
reheat — npm install reheat · libregistry