Two node.js libraries: node-mysql-simple and node-phpass

As previously promised, here are the first two libraries Cull has released to the public.

node-mysql-simple

This library sits on top of the excellent MySQL driver by Felix Geisendörfer and generic-pool by James Cooper, providing easy to use methods for inserting and retrieving data from MySQL. The tedious details of managing a pool of database connections and registering the correct event listeners for different queries is hidden behind a one-method-per-query API that should make high performance MySQL access as easy to code as our other favorite data backend, Redis.

node-phpass

Before you ask, it’s “p-h-pass”. This is a port of the PHP password hashing framework to node. phpass is a common PHP library used for password hashing, used in several major PHP frameworks including the CodeIgniter authentication plugin we were using in our initial prototype of Cull. Password hashing is one of those areas where it rarely makes sense to roll your own, and we also wanted to preserve access to our beta user’s accounts without forcing everyone to reset their password. The primary goal of node-phpass is full compatibility with the original PHP library, allowing a node app to authenticate users and hash new passwords in a system with a PHP backend, or to provide strong password hashing in a full node.js environment. The library is powered by a JavaScript implementation of BCrypt, making node-phpass completely cross-platform.

blog comments powered by Disqus