Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Javascript libraries for accessing CloudMine
JavaScript HTML CoffeeScript Makefile Shell

CloudMine JavaScript SDK

CloudMine is a backend-as-a-service platform for mobile and web developers to rapidly build and quickly scale their apps. Build and scale iOS, Android, Windows Phone, and web apps on our secure and managed backend.

The JavaScript library supports both Node.js and browsers.


via npm

$ npm install cloudmine

via git to get the bleeding edge

$ npm install git://

directly link from a browser

<script type="text/javascript" src=""></script>

You may also rebuild and test the CloudMine JavaScript library by using the provided Cakefile.


Detailed documentation, tutorials and code samples are on our developer site:

Direct link to API reference documentation:

Also check out the examples included with the repository.

Quick Start

The main API class is cloudmine.WebService

In node:

var cloudmine = require('cloudmine');

var ws = new cloudmine.WebService({
    appid: 'your appid',
    apikey: 'your apikey'

ws.set("key", {"hello": "world"});

In browsers:

<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
  var ws = new cloudmine.WebService({
      appid: 'your appid',
      apikey: 'your apikey'

  ws.set("key", {"hello": "world"});

Now check your CloudMine dashboard ( to see your data saved.


Please feel free to contribute to the SDK if you find any issues or if you have a new feature you think would be cool. Just go ahead and fork the SDK, make your changes locally, and then submit a pull request. In order for a pull request to be accepted, it must meet the following requirements:

  • All new code must be tested. Any code changes that do not have a corresponding test change will not be accepted.
  • All tests must be passing. Run make test to check the tests.
  • Pull request must have a clear explanation of your additions.
  • Code must meet style guidelines. Run make lint to ensure that everything is up to snuff. (Note - we use jslint to run the linting, but this will likely change in the future)
  • Pull request must be from the develop branch.

Any pull request that does not meet the above requirements will not be accepted. If you have any questions, feel free to reach out to us! And as always, if you find an issue but don't want to fix it, just open an issue in github!


This software is distributed under the MIT License. See the LICENSE file for details.


This library has been tested to work under the following environments:

  • Chrome 22, Stable
  • Firefox 15, Stable
  • Firefox 3.6
  • Safari 5
  • Internet Explorer 10

Known Issues

  • Firefox 3.6 will not trigger specific error events (notfound, unauthorized) for invalid application or api key specification.
  • Internet Explorer 10 changes location of entire page while downloading files when running locally.
Something went wrong with that request. Please try again.