grapple
NodeJS module that provides a way of creating Mongoose schemas with a bunch of added functionality. Check out the tests for all the fun stuff it can do.
sample schema
var schema = mongoose = schema method'authenticate' { return this === thishashed_password } method'makeSalt' { return Math + '' } method'encryptPassword' { return crypto } method'lightweight' { var obj = _id: this_id name: thisname uri: '/people/' + this_id } method'sanitize' { var obj = this delete objsalt delete objhashed_password objuri = '/people/' + obj_id }