BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Erbix: A CommonJS-Compliant Server-Side JavaScript Hosting Platform

| by Dio Synodinos on Dec 15, 2010. Estimated reading time: 4 minutes |

Erbix is a platform for building and deploying JavaScript applications on the Cloud. It features support for RinjoJS, CommonJS modules, PostgreSQL and on-demand scalable hosting.

Also it has recently launched a marketplace for JavaScript Apps, featuring some tutorials and two new open-source applications written completely in JavaScript.

InfoQ had a small Q&A with Mihai Roman from the Erbix Team, regarding their offering:

InfoQ: Could you give us an architectural overview of how Erbix is setup and how an application is structured?

Erbix offers web accounts that can be used for creating, installing or hosting server-side JavaScript apps. Users can sign up or simply log in with OpenID to get started.

All accounts are isolated from each other and cannot share resources directly. Each account has the following resources:

  • a virtual file system (used for storing the JavaScript code and static resources such as images)
  • a dedicated PostgreSQL database (for storing apps data)
  • a list of sites, each describing how URL prefix paths are mapped to JS entry point functions (we use the CommonJS JSGI 0.3 standard as entry-points).

Every time a request is made for a specific URL, a mapped module is loaded and the JSGI entry point function is called. Other JavaScript modules can be loaded according to CommonJS Module 1.0 specs.

Several module files can be packed into an application folder. By adding in that folder a CommonJS Packages 1.0 specs file (application.json) it can then be published to the Erbix Marketplace and shared with others.

Apps from the Marketplace can be installed in two ways (the publisher has the option to choose one or both possibilities):

  • copy files into account
  • run app directly from the Marketplace

    Users with no (JavaScript) coding experience can install and run apps from the Marketplace in seconds. All the data produced by those apps resides in the account's PostgreSQL database.

InfoQ: How does your offering compare to the other JavaScript platforms out there, like Node.js, Akshell, etc.

Erbix is based on the Ringo JavaScript engine, which was chosen after careful consideration; simply put, RingoJS is a brilliant wrapper around Mozilla Rhino JavaScript interpreter. Node.JS is a RingoJS alternative.

Technically, Erbix is a CommonJS compliant server-side JavaScript hosting platform. There's no vendor lock-in and minimal to none effort is necessary to port apps to and from Erbix. Users will be able to export their apps on privately hosted RingoJS or other server-side JavaScript platforms.

Unlike Akshell or AppJet (currently hosted by JGate), Erbix provides the tools to create fully fledged web applications. The dedicated PostgreSQL database is accessible by the means of an SQL console or programaticaly with full SQL support; a feature found only in Erbix.

InfoQ: What is the typical workflow for developing, debugging, testing, deploying and monitoring an app in Erbix?

Files and folders can be created using the online editor or can be uploaded easily. Folders can be uploaded/downloaded from/to a .zip or .tar.gz archive. Future source versioning support may be added. So users can choose to create the apps online on Erbix.com or offline in their IDE of choice.

Apps are deployed instantly by mapping an URL prefix to the JSGI entry point function.

Unit testing and logging modules are available for debugging and monitoring purposes. We are currently working on improving these features/modules.

InfoQ: What are the common use cases you see Erbix being more suitable for?

Erbix is a great environment to create or install apps for small businesses. Erbix is both developer and consumer friendly: we offer to developers excellent productivity tools (marketplace, JS hosting, browser editor) for creating great apps; the customers can easily install the apps from the marketplace and keep control of their data in their own PostgreSQL account.

Given the current status for the server-side JavaScript, we consider Erbix to be the best solution for testing, promoting and sharing server-side JavaScript apps.

InfoQ: What is the current status of the service and what is your roadmap for the future?

We are currently in open beta testing. Everyone can log in with OpenID and start using the service.  We are running www.erbix.com as an Erbix app, we've built two apps by only using the online editor and we expect to get out of beta in the next major release.

We are working on improving many aspects of the platform:

  • documentation
  • usability (make it more intuitive for non technical users)
  • UI support for custom domain names
  • better dynamic resource scaling (handle traffic peaks)
  • monitoring/statistics

Meanwhile, part of our team will develop production-ready apps that will be published on the Marketplace for everyone to use and customize.

The Erbix offering is one of a series of JavaScript Cloud hosting platforms that have emerged in the last months, such as Akshell, which has been covered by InfoQ.

You can find more information regarding JavaScript, Node.js and CommonJS, right here on InfoQ!

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Erbix marketplace is cool by Anton Korenyushkin

Disclaimer: I am the Akshell founder.

I like the idea of marketplace a lot. May be it can change the way we think about web apps. Things like custom Wordpress installations finally should be left in the past.

BTW Akshell also provides users with dedicated databases, and it's also PostgreSQL :) Applications access it via a query language I designed for embedding into JavaScript.

I wish you good luck in running your startup! I believe that cloud-based server-side JavaScript is the future of web development.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date with curated articles from top InfoQ editors

"You dont know what you dont know" change that by browsing what our editors pick for you.

BT