title: Simple example about CouchJS in userspace for example with Browser?
body: <h3>Definitions</h3>
  
  <blockquote>
    <blockquote>
      <p><strong>CouchJs</strong> : the JavaScript interpreter for CouchDB</p>
      
      <p><strong>CouchDB</strong> : a NonSQL db where you execute most things in user-space with things such as JS because things tend to be expensive to execute on the database-level</p>
      
      <p><strong>Integrity</strong> : In information security, integrity means that data cannot be modified undetectably. More <a href="https://unix.stackexchange.com/questions/9998/how-to-guarantee-the-integrity-of-an-os">here</a>.</p>
    </blockquote>
  </blockquote>
  
  <p>The <a href="http://couchdb.apache.org/" rel="nofollow noreferrer">CouchJS website</a> has no internal search, and after googling more-or-less confusing blog articles, I'm getting lost. Where can I find some simple examples (not just curls/telnets) like below around?</p>
  
  <pre><code>&lt;script type="text/javascript" src="lib/jquery-1.7.2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="lib/jquery-ui-1.8.21.custom.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://127.0.0.1:5984/_utils/script/jquery.couch.js"&gt;&lt;/script&gt;
      //# 1. initilalize the db -object
      //# 2. save something to the db with the object
  &lt;script&gt; db.test.save('hello world') &lt;/script&gt;
  </code></pre>
  
  <h3>Perhaps useful to other newbies</h3>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/1680408/couchdb-a-real-world-example">CouchDB a real world example</a>, thread with references to free books etc</p></li>
  <li><p><a href="https://stackoverflow.com/questions/11060894/nonsql-initialization-of-db-object-in-browser-console-db-logic-in-the-user-s">NonSQL: initialization of DB -object in browser console? DB -logic in the user-space?</a></p></li>
  <li><p>Source code of CouchJS <a href="https://github.com/apache/couchdb/blob/master/share/www/script/jquery.couch.js" rel="nofollow noreferrer">here</a>.</p></li>
  <li><p><a href="https://stackoverflow.com/questions/11077093/what-are-ajax-options-in-couchjs-explain-this-odd-null-error-with-couchjs">https://stackoverflow.com/questions/11077093/what-are-ajax-options-in-couchjs-explain-this-odd-null-error-with-couchjs</a></p></li>
  </ol>