Zenhance MVC Framework

A Zend Framework like MVC approach to building NodeJS enterprise applications in an easy to install NodeJS module.


A Zend Framework MVC like approach to building enterprise NodeJS applications.

Zenhance does a lot of the heavy lifting for you such as auto routing to controllers and views, automatic caching and optimization as well as loading and unloading of modified files. This leaves you the developer more time to focus on developing your application without the need to start and restart the node server.


npm install zenhance

Quick Start

Create a server.js file with the following contents and Zenhance will do the rest.


Upon first run Zenhance will examine the current folder structure and add all required missing directories and files. The final product of which should look like this.


By default Zenhance ships with Handlebars and is built on top of Express. The templating engine can be changed to use any Express compatible template engine you desire.

A default controller and view will be provided.

Index Controller Example

The following file is located at /application/controllers/IndexController.js and contains a simple view assignment.

'use strict';

class IndexController {

        this.view.title = 'Welcome to Zenhance';
        this.view.description = 'Looks like everything is working as expected.';


Elements assigned to this.view are automatically handed to the template engine.

The following file is located at /application/views/scripts/index/index.handlebars.

Index View Example

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap-theme.min.css">
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <div class="container">
            <div class="jumbotron">

The view simply renders out the title and description fields. For more information on Handlebars templates see the Handlebars documentation or for Zenhance specfic Handlebars enhancements, see the Zenhance template enhancements documentation.

Zenhance Documentation

View the Zenhance Documentation.


Keep track of development and community news.


Zenhance is released under The MIT License (MIT)