Take a look at:   https://github.com/gabipetrovay/node-orientdb

That project has come along nicely, and uses the binary protocol exclusively.

I would like to see a rewrite (preserving most of the API) of the REST-backed 
JS lib that ships with OrientDB, in terms of the request and browser-request 
libraries:

https://github.com/mikeal/request
https://github.com/iriscouch/browser-request

or maybe superagent:

https://github.com/visionmedia/superagent

The idea would be to write a single JS lib which has the same API whether 
you're in a NodeJS environment or a browser environment. If you're running on 
node, then you would be able to require('orient-js') [or whatever it's called] 
and it would work automatically; while "ender" could be used to package it up 
for browsers:

http://ender.no.de/

There would be a couple of benefits. One, it would remove jQuery as a 
dependency, with respect to the underlying HTTP requests. Also, request / 
browser-request and superagent are designed to use asynchronous requests, 
whereas Orient's jQuery-backed lib uses synchronous ones (could be rewritten to 
be asynchronous, of course).

If callback driven programming isn't your thing, the methods exposed by this 
hypothetical library should be easily wired into a promises library like Q, or 
wrangled with the ever-popular "async" library:

https://github.com/kriskowal/q
https://github.com/caolan/async

(both of those are designed to work in node and in browsers)

…….I've been wanting to do this, just haven't had time.

-------

Another idea I have is to use the node-java package to bridge directly into the 
JVM and expose-proxy OrientDB's Java API through a node library:

https://github.com/nearinfinity/node-java

I've tried it, and it works! The question is how to best and robustly build a 
javascript API around calls into the java API … I'm not sure yet.

--
Michael Bradley, Jr.




On May 7, 2012, at 10:54 PM, TheOutlander wrote:

> Did you ever find or build one? I'm trying to do the same....
> 
> On Friday, January 21, 2011 5:48:24 PM UTC-8, Michael Bradley, Jr. wrote:
> Is anyone here working on an OrientDB "network binary protocol" 
> connector library for node.js?  If not, is anyone interested in 
> starting or helping with such an effort as an open source project on 
> GitHub? 
> 
> ----------------- 
> 
> BACKGROUND AND ADDITIONAL INFO: 
> 
> I saw someone mention OrientDB in the #node.js channel on Freenode a 
> couple of nights ago. Orient looks exciting! 
> 
> 
>   http://code.google.com/p/orient/ 
>   http://www.slideshare.net/lvca/orientdb-the-database-for-the-web-11 
> 
> <snip>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to