node package manager


Node.js version of the Zazl Optimizer (

Node.js version of the Zazl Optimizer (

Zazl is a Dynamic Javascript Optimizer that enables the loading of AMD modules and all their dependencies in a single response stream without depending on static build tools.

npm install zazloptimizer

To try it out you can load 2 sample projects stored on github

[Dojo Samples] (

[JQuery Samples] (

Both of these are also hosted as Heroku apps

[Dojo Samples App] (

[JQuery Samples App] (

Note: The hosting site (Heroku) puts both apps to sleep after being idle for 1hour. Don't be surprised if the first load(s) takes some time. Subsequent loads will demonstrate the full potential.

Alternatively you can download the standalone dojo samples examples, create an examples directory and unzip it into that.

To run via Connect run the following :

node lib/zazlconnect.js examples

To run on a different port :

node lib/zazlconnect.js examples 9080

To turn off javascript compression (on by default, via uglify-js) :

node lib/zazlconnect.js examples 9080 false

There are some samples available in the that use direct injection for script loading.




To see how to integrate the Node.js version of the optimizer into your connect based application take a look at mpdjs