JSGI

{{Short description|Interface between web servers and JavaScript-based web applications}}

{{Refimprove|date=June 2013}}

JSGI, or JavaScript Gateway Interface, is an interface between web servers and JavaScript-based web applications and frameworks. It was inspired by the Rack for Ruby and WSGI for Python and was one of the inspirations of PSGI for Perl.

{{webarchive |url=https://web.archive.org/web/20141217142806/http://jackjs.org/ |date=December 17, 2014 |title=Jack}} is a reference implementation of JSGI.

It has been included in and further developed by the CommonJS project.{{cite web|title=CommonJS Web server to application interface Spec|url=http://wiki.commonjs.org/wiki/JSGI}}

JSGI packages

All these packages are for Node.js.

= Low level =

  • [https://github.com/kriskowal/q-io Q-IO]: Promise-based I/O, includes JSGI-based HTTP server and client
  • [https://github.com/kriszyp/jsgi-node jsgi-node]: Low level JSGI interface for Node.JS

= Framework =

These frameworks allow using promises with Q:{{cite web|title=Q promise framework|url=http://documentup.com/kriskowal/q/|access-date=2013-05-22|archive-date=2016-03-26|archive-url=https://web.archive.org/web/20160326224727/http://documentup.com/kriskowal/q/|url-status=dead}}

  • {{GitHub|kriskowal/joey}}
  • {{GitHub|nrstott/bogart}}

The names are inspired by Sinatra.

References

{{Reflist}}