0

I've built a static website generator which more or less converts markdown documents to html pages. Documents can have tags, which are useful for discovering related documents - and thus is the requirement for a query engine.

Right now I'm using MongoDB but as the application is coded in Node.js and due to the extreme lack of MongoDB support on Node.js hosts (so far no.de is the only one that I know of which supports mongodb), as well as a static website generator having absolutely no need for data persistence, I'd like to remove MongoDB and just keep the query engine.

Are there any MongoDB/NoSQL like query engines coded natively in Node.js/javascript? Or is there a better solution I haven't thought of yet... :S

Thanks guys.

Edit: If there is no such thing, who would like to build it with me? Post a comment if so :)

4 Answers 4

2

I'd check out JSONSelect which uses css selectors for querying js objects

Sign up to request clarification or add additional context in comments.

2 Comments

Seems like it doesn't have an equivalent for $in queries yet, which is a requirement. Definitely on the right track though! Thanks :)
This has been discussed, and there is some aspect of this coming. If you want to make a contribution follow @lloydhilaiel on twitter or join us at #jsonselect on freenode!
2

Created my own in Coffee-Script for use on the Server-Side with Node.js and Client-Side with Web-Browsers. It supports all the same queries as MongoDb. Find it here:

https://github.com/bevry/query-engine

Comments

0

RavenDB has a REST API and jQuery plugin available.

For example see http://andreasohlund.net/2011/02/19/accessing-ravendb-using-jsonp/

1 Comment

Thanks mate, although it seems RavenDB requires installing - something which I'd prefer not to do. Really looking for a Node.js native solution - I'll make that more clear in the question. Thanks :)
0

Take a look at libgit2 which is a C library for git and also the gitteh module for node.js This will give you a node wrapper around a git library - now you can have a local git repo that saves a versioned copy of your static files and serves it up via node.js. What more could you ask for? Plus push pull from github no problem - it knows the git protocols. I haven't built this myself but happy to help if you want to do this

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.