Node Roundup

15 Dec 2010 | By Alex Young | Tags node server wave validation

Welcome to the Node Roundup. Send in your apps and libraries using our contact form or @dailyjs.

Onvalid

Onvalid (License) by Mark Doffman is a validation library for Node (but should work elsewhere). The Onvalid documentation is quite detailed and contains a lot of examples. The suggested usage looks like this:

var __ = Onvalid = require('./onvalid');

var schema = {
  name: __.exists
};

var user = {
  'name': 'Bob'
};

if (Onvalid.validate(user, schema)) {
  console.log('OK');
}

Error messages are supplied to a callback as the third parameter of the validate method.

I like the idea of using decoupled validation libraries, a library like this would work well with our Mongoose-based Nodepad tutorial project.

node-rlog

node-rlog (Apache License 2.0) by J. Brisbin is a distributed logging solution for Riak and Node in the form of a library and command-line utility. The Node usage is very simple:

var rlog = require('node-rlog'),
    log = rlog.getLogger('bucketname');
log.debug('This is a debug line: ', myobj, myobj2);

Logs can then be viewed with the noderlog utility:

noderlog -b bucketname

Install it with npm from the GitHub repository:

git clone https://github.com/jbrisbin/node-rlog.git
npm install ./node-rlog

Wave-Node

Wave-Node (Apache License 2.0) by scottbw is a Node implementation of the Google Wave Gadget API. It uses WebSockets, which I thought was interesting because I’m fairly sure the last time I used Wave it polled aggressively with XMLHttpRequests.

Apparently it can be integrated with the Apache Wookie W3C Widget server.

If you want to try out the server and examples, you’ll need to check the code out from GitHub and install redis.


blog comments powered by Disqus