npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reheat

v1.0.0-beta.10

Published

A red hot Node.js ORM for RethinkDB.

Downloads

94

Readme

reheat

Current Version: 1.0.0-beta.10 (Supports RethinkDB 1.15.x and newer)

A red hot Node.js ORM for RethinkDB.

This is beta software! API may fluctuate before 1.0.0.

You can use it, but be prepared to keep a close eye on the changelog.

All documentation can be found at http://reheat.pseudobry.com/.

What is reheat?

Reheat is an ORM for RethinkDB, built for the Node.js platform.

Benefits of using reheat:

  • Less code to write
  • Less code to test
  • Less code to maintain
  • Less code that can break
  • Improved sense of well-being

Features:

  • Connection pool
  • Easy Model lifecycle setup/access (beforeUpdate(), afterDestroy(), etc.)
  • Robust and flexible Schema definition for your Models
  • Automatic validation based on Schema
  • Convert req.query to ReQL query (great for your app's API).
  • Query builder (it's just ReQL, easy!)
  • Connection and Schema can each be used on their own
  • Relationships/Associations

Roadmap:

  • Transactions (and rollbacks)
  • Migrations
  • You tell me!

Quick, what is RethinkDB?

From the RethinkDB website:

An open-source distributed database built with love.

Enjoy an intuitive query language, automatically parallelized queries, and simple administration.

Table joins and batteries included.

RethinkDB is awesome and ReQL makes data access fun, but still, who loves writing tons of code to pull data into and out of a database? Reheat exists to eliminate boilerplate and level up your RethinkDB experience!

Install reheat

npm install reheat --save

Go!
var reheat = require('reheat');

var connection = new reheat.Connection({
	db: 'local'
});

var Post = reheat.defineModel('Post', {
	tableName: 'post',
	connection: connection
});

var post = new Post({
	author: 'Jason Dobry',
	title: 'How to reheat your app'
});

post.isNew(); // true

post.save().then(function (post) {
	post.toJSON();  //  {
					//      id: '1c83229b-1628-4098-a618-abc05af1ebdb',
					//      author: 'Jason Dobry',
					//      title: 'How to reheat your app'
					//  }

	post.isNew();   //  false
});

Resources

Getting Started

Getting Started - Read how to install reheat and get it running in your application.

Guide

Guide - List of tutorials on how to use reheat.

API

API - Reference API documentation for reheat.

Community

Mailing List - Ask questions and get help.

Issues - Found a bug? Feature request? Submit an issue!

GitHub - View the source code for reheat.

Project Status

| Branch | Master | | ------ | ------ | | Version | NPM version | | Source | master | | Build Status | Build Status | | Code Climate | Code Climate | | Dependency Status | Dependency Status | | Coverage | Coverage Status |

License

MIT License

Copyright (C) 2013-2014 Jason Dobry

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.