node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »


haibu-api (node.js)

The node.js client for the haibu API.


Allows you to call haibu programmatically from inside your node.js scripts.

var eyes = require('eyes'),
    haibu = require('haibu');
// Create a new client for communicating with the haibu server 
var client = new haibu.drone.Client({
  host: 'localhost',
  port: 9002
// A basic package.json for a node.js application on haibu 
var app = {
  "user": "marak",
  "name": "test",
  "domain": "",
  "repository": {
    "type": "git",
    "url": "",
  "scripts": {
    "start": "server.js"
// Attempt to start up a new application 
client.start(app, function (err, result) {
  if (err) {
    console.log('Error spawning app: ' +;
    return eyes.inspect(err);
  console.log('Successfully spawned app:');
client.start(app, function (err, result) {

Run Tests

All of the haibu tests are written in [vows][0], and cover all of the use cases described above.

  $ npm test

License: MIT

Author: Nodejitsu Inc

Contributors: Maciej Malecki, Charlie Robbins