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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nfect

v0.0.3

Published

The Node.js Front-End Construction Toolkit (NFECT) is a Node.js module for simple file output to HTTP clients.

Readme

NFECT

(Node.js Front-End Construction Toolkit)

NFECT is a Node.js module for simple file output to the client. It uses JavaScript method chaining to indicate loading, execution, and code-inclusion details for external file and source code dependencies. The vision is to provide a mechanism for front-end developers to easily incorporate many dependencies (such as common header and footer HTML files, CSS files, and client-side JavaScript files) without needing to learn and use special content markup or awkward design patterns. NFECT also allows a developer to safely pass data via the descriptor object to and between each of these dependencies.

Usage

Examples

The following Node.js code initializes a simple HTTP server that responds to all requests using NFECT to output an index.html file to the client.

var nfect = require('nfect');
var server = http.createServer(function(req, res) {
  nfect.config({
    request: req, response: res
  }).go();
}).listen(80);

The following Node.js example initializes an HTTP server that responds to requests for index.html using NFECT and a single method to build a multiple-page server using several different files. The method also specifies a custom Expires HTTP header for each of the files.

var server = http.createServer(function(req, res) {
  nfect.config({
    request: req, response: res
  }).add({
    files: ['index.html','default.css','site.js'],
    header: {
      'Expires': 'Wed, 01 Jan 2015 16:00:00 GMT'
    }
  }).go();
}).listen(80);

Below is an NFECT example that constructs an HTTP server which responds to requests for index.html using NFECT's build utility to combine multiple independent files into one output file. Compare this functionality to a more traditional include() function in other languages.

var server = http.createServer(function(req, res) {
  nfect.config({
    request: req, response: res
  }).build({
    files: ['header.inc','body.html','footer.inc'],
    match: 'index.html'
  }).go();
}).listen(80);

License

NFECT is (C) 2014 curtis zimmerman and released under GPLv3.