Partial port of Rigoneri's "stye" to Node.js