Skip to content
Connect is a middleware layer for Node.js
JavaScript
Pull request Compare This branch is 103 commits ahead, 1776 commits behind master.
Latest commit eb6d8c2 Sep 24, 2012 @tj tj Merge pull request #660 from fengmk2/ENOTDIR-hotfix
[hotfix]handle ENOTDIR error like ENOENT in static middleware (connect@1.x)
Failed to load latest commit information.
docs fixed doc button css Apr 5, 2011
examples backport fix for #431 Dec 3, 2011
lib
support docs Dec 2, 2011
test handle ENOTDIR error like ENOENT in static middleware Sep 24, 2012
.gitignore ignore node_modules May 20, 2011
.gitmodules removed submods May 20, 2011
.npmignore Ignore .DS_Store Mar 3, 2011
History.md Release 1.9.2 Jul 9, 2012
LICENSE License Mar 1, 2011
Makefile Revert "Removed staticCache tests for now" Oct 24, 2011
Readme.md "node": ">= 0.4.1 < 0.7.0" Oct 24, 2011
index.js Added ./index.js Dec 6, 2010
package.json Release 1.9.2 Jul 9, 2012

Readme.md

Connect

Connect is an extensible HTTP server framework for node, providing high performance "plugins" known as middleware.

Connect is bundled with over 14 commonly used middleware, including a logger, session support, cookie parser, and more. Be sure to view the 1.0 documentation.

Middleware

  • csrf
  • basicAuth
  • bodyParser
  • cookieParser
  • directory
  • errorHandler
  • favicon
  • limit
  • logger
  • methodOverride
  • query
  • responsetime
  • session
  • static
  • staticCache
  • vhost

Static file serving

The benchmarks below show the static() middleware requests per second vs static() with the staticCache() cache layer, out performing other popular node modules, while maintaining more features like Range request etc.

  • static(): 2700 rps
  • node-static: 5300 rps
  • static() + staticCache(): 7500 rps

Running Tests

first:

$ npm install -d

then:

$ make test

Authors

Below is the output from git-summary.

 project: connect
 commits: 1616
 files  : 168
 authors: 
  1086  Tj Holowaychuk
   298  visionmedia
   191  Tim Caswell
     8  Astro
     5  Nathan Rajlich
     4  Jakub Nešetřil
     3  Alexander Simmerl
     2  Jacques Crocker
     2  Andreas Lind Petersen
     2  Fabian Jakobs
     2  Aaron Heckmann
     2  James Campos
     1  nateps
     1  Gregory McWhirter
     1  Adam Malcontenti-Wilson
     1  Joshua Peek
     1  Jxck
     1  Eran Hammer-Lahav
     1  TJ Holowaychuk
     1  Bart Teeuwisse
     1  Aseem Kishore
     1  Guillermo Rauch
     1  Jakub Nesetril

Node Compatibility

Connect < 1.x is compatible with node 0.2.x

Connect 1.x is compatible with node 0.4.x and 0.6.x

Connect 2.x (master) will be compatible with node 0.6.x

CLA

http://code.google.com/legal/individual-cla-v1.0.html

License

View the LICENSE file. The Silk icons used by the directory middleware created by/copyright of FAMFAMFAM.

Something went wrong with that request. Please try again.