Helma Logo
helma.orgwikiHelma NGJSGI
main list history


JSGI is a JavaScript web connector protocol inspired by Ruby's Rack and Python's WSGI.

Helma NG currently supports JSGI version 0.2. At its simplest, a Helma JSGI application consists of a single config module that exports the JSGI application as app.

exports.app = function(env) {
    return {
        status: 200,
        headers: {"Content-Type": "text/plain"},
        body: ["Hello World!"]

Additionally, the config module may export an array of middleware functions or modules as middleware.

A very basic JSGI application is included with Helma NG in the apps/jsgi directory.