nodejs一周动态(2011-04-25 - 05-01)

本文收集一周来业界关于nodejs的相关动态信息和新闻摘要,并会推荐一下非常棒的node.js模块。

Mozilla jumps into Node.js server project

Mozilla也对Node.js感兴趣了,已经着手为Node.js提供V8以外的另一个引擎: SpiderNode: This JavaScript engine in Firefox is called SpiderMonkey, and the hybrid technology used in SpiderNode is called V8Monkey

Node.js is built with the V8 JavaScript engine from Google's Chrome browser, but Mozilla is transplanting Firefox's JavaScript technology in a project called SpiderNode. (The JavaScript engine in Firefox is called SpiderMonkey, and the hybrid technology used in SpiderNode is called V8Monkey.)

Build Desktop Apps with Node.js Using WebApp

Node.js contributor Tim Caswell pushed an initial release of WebApp, a framework for building desktop GUI apps with Node.js, to GitHub. The stated goal is to "Give node developers a way to have a desktop GUI to their node servers using HTML5 + CSS3 as the GUI platform." Node.js也可以开发桌面程序!

Node v0.4.7 release

Download: http://nodejs.org/dist/node-v0.4.7.tar.gz Website: http://nodejs.org/docs/v0.4.7/ Documentation: http://nodejs.org/docs/v0.4.7/api

Cluster Live

TJ Holowaychuk released Cluster Live (GitHub: visionmedia / cluster-live, MIT License), which is a realtime administration and statistics plugin for Cluster. If you’ve been holding off on Cluster, this is probably the sort of usage TJ envisioned for it and may convince you to use it.

你只需要一点点配置代码,就可以使用了,很cool吧!:

var live = require('cluster-live');

cluster(server)
  .set('workers', 6)
  .use(cluster.debug())
  .use(cluster.stats({ connections: true, lightRequests: true }))
  .use(live())
  .listen(3000);

截图

Capsule

Capsule (MIT License) by Henrik Joreteg is a Node framework that uses Socket.io and Backbone.js to synchronise models between the client and server. He’s written some documentation for Capsule.models.js and Capsule.views.js, and the README includes a detailed example of how to set things up for the server and browser.

node-http-proxy

node-http-proxy: 一个基于nodejs全功能http代理 A full-featured http proxy for node.js

Features

When to use node-http-proxy

Let's suppose you were running multiple http application servers, but you only wanted to expose one machine to the internet. You could setup node-http-proxy on that one machine and then reverse-proxy the incoming http requests to locally running services which were not exposed to the outside network.

npm 1.0: Released

npm 1.0 has been released. Here are the highlights:

Comments

Fork me on GitHub