Announcing browserify, a node.js module that bundles up all your javascript into a single file so you can use node.js-style require() from the browser. Check this: server.js var connect = require('connect'); var server = connect.createServer(); server.use(connect.static(__dirname)); server.use(require('browserify')(__dirname + '/js')); server.listen(9797); js/foo.js var bar = require('./bar'); mod