Try pg.js if pg didn't exist

Allows to use pg without C++ stuff.