Browse files

sync api spec; minor formatting and edits

  • Loading branch information...
youurayy committed Mar 14, 2012
1 parent 663d31f commit 42e56aa4bd2fa913160a64ea6112c7eeb9c7e7c1
Showing with 8 additions and 2 deletions.
  1. +7 −1
  2. +1 −1
@@ -4,6 +4,10 @@ Experimental project. Runnable artefacts will be published as standalone npm mod
Add your comments in the form of [Issues](, or contribute to [this discussion](
### News
Proposed base Synchronous API is [here](
### Rationale
Few years ago, server-side JavaScript was unimaginable. Today, at the beginning of 2012, more and more businesses increasingly rely on high-performance, low-development-costs, short time-to-market, and [explosively growing ecosystem]( of [libraries]( of the _[Node.js]( platform_. However Node.js is not an exception, but rather a confirmation of the rule that JavaScript is the most potent environment for software evolution available today. Other notable JavaScript ecosystems with explosive growth are [Firefox Extensions](, [OS X Dashboard Widgets](, [Chrome Extensions](, and of course the _client side_ of the web, with millions of libraries, frameworks and applications.
@@ -85,7 +89,9 @@ So the idea here is to bring datastore functionality and scripting into the same
### API
Proposed base API is [here](
Proposed base Synchronous API is [here](
Asynchronous API will be added in the future.
### Notes
@@ -233,7 +233,7 @@ db.on.messagesReceivedBy = function(name, key, value, previous) {
// do something generic for the 'messagesReceivedBy-<userID>' collection class
var userID = parseInt(/-(\d+)^/.match(name)[1], 10);
var userID = parseInt(/-(\d+)$/.exec(name)[1], 10);
// get incoming messages for a user, ordered from newest to oldest

0 comments on commit 42e56aa

Please sign in to comment.