npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

zenhance

v0.1.13

Published

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

Readme

Zenhance

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 stop and restart the node server.

Installation

npm install zenhance

Quick Start

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

require("zenhance").run();

Now run the server

#> node server.js

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.

/application
	Bootstrap.js
	/configs
		application.json
		routes.json
	/controllers
		IndexController.js
		ErrorController.js
	/layouts
		/scripts
	/models
	/views
		/scripts
			/index
				index.handlebars
			/error
				index.handlebars
			/partials
/library
/public

By default Zenhance ships with Handlebars and is built on top of Express. The template 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 {

	indexAction(){
		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

<html>
	<head>
		<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>
	</head>
	<body>
		<div class="container">
			<div class="jumbotron">
				<h1>
					{{title}}
				</h1>
				<p>
					{{description}}
				</p>
			</div>
		</div>
	</body>
</html>

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 partials documentation.

Zenhance Documentation

View the Zenhance Documentation.

Community

Keep track of development and community news.

License

Zenhance is released under The MIT License (MIT)