title: PostgreSQL connection via javascript
body: <p>I am searching for a way to connect to postgresql directly in the browser. Im trying to utilize nodejs and browserify but have had no luck so far with the bundling. Whenever I compile a script that contains a </p>
  
  <pre><code>require('pg')
  </code></pre>
  
  <p>it specifically states in the browser:</p>
  
  <blockquote>
    <p>Cannot find module '/node_modules/pg/lib/client' </p>
  </blockquote>
  
  <p>the browser tells me afterwards that he is not able to find the modules that pg requires. Maybe i need to bundle pg with browserify before ? </p>
  
  <p>I appreciate if somebody has an idea on how to work on this or even a suggestion how I could connect via javascript to pgsql.</p>