Fork me on GitHub

Work with jQuery from the scope of the server.

NodeQuery allows you to invoke jQuery API calls on the server and recieve callbacks from the browser in real-time. You can effectively work with any DOM (to the extent that jQuery can) without having to serve up any client side javascript beyond jquery and nquery.

Every call to the $ function is applied in real-time using the dnode-protocol over socket.io. nodeQuery uses a combination of remote message passing and other techniques to integrate the jQuery API as seamlessly as possible with the backend.

The source code is automatically compressed (52kb) with uglify-js, setting nQuery.debug = true will prevent this from happening.

Installation

$ npm install nodequery

NodeQuery uses jQuery or Zepto, node.js , socket.io, & dnode rpc.