title: Connecting to couch db from a webpage
body: <p>I used to use mysql databases and a php backend for my web applications. Now that I am diving deeper into the the javascript world I am looking for a more compatible way to store my data. I like the idea of writing everything in one language, and javascript seems to be capable to make that job.
  I started reading about couchDB and the JSON/javaScipt approach seems to fit perfectly to my needs. My question is now, which would be a convenient way to connect to the database from my pages.</p>
  
  <p>I found this <a href="http://jan.prima.de/~jan/plok/archives/108-Programming-CouchDB-with-Javascript.html" rel="nofollow">post</a>, which explains how to connect to a couchDB directly from a client-side javascript using a library called couch.js. The post is quite a few years old and the library I cannot find anywhere in the web. So I am asking myself If this approach is still up to date.</p>
  
  <p>I was thought that one important reason for using a server backend is to provide a security mechanism to protect the database authentification process. So: Is it generally secure to save an (encrypted) db pwd in a client side script?</p>
  
  <p>So what I am looking for is a quite simple way to access and store json-like data from webpages. Are there any suggestions?
  The hosting of the production solution should also be not that difficult and in the end not expansive, since it's rather meant for smaller projects at the moment.</p>
  
  <p>If the post does not fit to the forum, let me know a better place for it..</p>