DailyJS

Gazel, Heroku Node Versions, nios

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

hosting node browser database iOS indexeddb

Gazel, Heroku Node Versions, nios

Posted by Alex R. Young on .
Featured

hosting node browser database iOS indexeddb

Gazel, Heroku Node Versions, nios

Posted by Alex R. Young on .

Gazel

Gazel (GitHub: matthewp / gazel, License: MPL 2.0) by Matthew Phillips is a key-value store for browsers, based on Redis. The API is similar to Redis, and has a friendly chainable syntax:

var client = gazel.createClient();

client.on('error', function(err) {  
  console.error('Error:', err);
});

client.multi()  
  .set('key', 1)
  .incrby('key', 10)
  .get('key')
  .exec(function(results) {
    var key = results.pop()[0];
  });

It uses IndexedDB for storage, and will attempt to use vendor-specific versions where available. The author has written a sizeable suite of Mocha tests that can be run in a browser.

Heroku Node Version Support

Heroku now permit Node and npm versions to be requested using your application's package.json file:

{
  "name": "myapp",
  "version": "0.0.1",
  "engines": {
    "node": "0.6.x",
    "npm":  "1.0.x"
  }
}

The available versions are listed here:

Heroku defaults to their oldest version of Node 0.4, so it's probably a good idea to specify the latest 0.6 version.

Read more here: Specifying a version of Node.js / npm

nios

Node iOS

nios by Sebastian Waisbrot is a Node port for iOS. The objective is to allow Node projects to run on an iOS device with minimal modifications. It uses WebViewJavascriptBridge to run Node's libraries.

The example that comes with the project runs a Node HTTP server within a native iOS app.