Server-side JavaScript

From Wikipedia, the free encyclopedia

Server-side JavaScript (SSJS) refers to JavaScript that runs on server-side. This term was coined because the language was originally limited to just client-side, i.e. client-side JavaScript (CSJS)..

The first implementation of SSJS was Netscape's LiveWire, included in their Enterprise Server 2.0 product, released in 1996.

Examples of current uses of JavaScript on the server include:

  • ASP, using JScript as an alternative to its default scripting language.
  • firecat, a Server-Side JavaScript Webserver. A complete platform (Webserver and framework) for developers to create Server-Side JavaScipt web applications.
  • Helma Object Publisher, a JavaScript Web Application Framework using Rhino and embedding the Jetty HTTP Server.
  • jsext uses SpiderMonkey, makes inclusion of C libraries very simple and contains high-level wrappers written in JavaScript.
  • JSP, using Caucho Resin Servlet Runner which propose pure JavaScript as an alternative to Java in JSP (Resin version 2 only. Not available in version 3).
  • OpenMocha, a JavaScript Application Server based on Helma.
  • Rhinola, using Rhino with gcj on the Apache HTTP Server.
  • Whitebeam, using SpiderMonkey on the Apache HTTP Server.
  • haXe is a meta-language, which among others can execute javascript. haXe itself is a variant of javascript.
  • Apache Cocoon uses flowscript (a variant of javascript) for the controller-layer. It's based on Rhino.
  • Server Side Javascript Uses Rhino to wrap Jetty 6, allowing you to write servlets in Javascript.
  • wxJS has an Apache module mod_wxjs which can be used to write server-side javascript with E4X and wxWidgets ported classes.
  • ServiceCenter, a commercial product in the HP OpenView product range, uses an embedded Mozilla JavaScript interpreter to allow tailoring of the application server.
  • Veracart a hosted ecommerce platform which uses PHP to process data/events on the remote server, while using server-side JavaScript to generate the content via the intermediate site (store website), on to the clients computer.
  • Zimki SSJS Application & web hosting environment.
  • Phobos can run in Glassfish or another Java servlet container and uses Rhino.


Other common server-side programming languages are Perl, PHP, Python, Ruby and ColdFusion amongst others.

[edit] Specifications

[edit] See also