ActiveCouch is a simple, convenient, Ruby-idiomatic wrapper for CouchDB
Switch branches/tags
Clone or download
Pull request Compare This branch is 7 commits ahead, 1 commit behind chuyeow:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
generators Make the exporter view over-write existing views. Deleting views also… Oct 22, 2008
init.rb Add install.rb which copies a dummy activecouch.yml in Rails.root/con… Oct 22, 2008


ActiveCouch wants to be a simple, convenient, idiomatic Object Relational Mapper for the hot new kid on the block - CouchDB. CouchDB (simplistically speaking) is a document store, which essentially means that objects can be stored in a schema-less environment.

What it is?
With ActiveCouch, you can easily save, query, delete documents to/from a CouchDB database in your favourite language - Ruby. ActiveCouch derives a lot of its principles (and some code) from both ActiveRecord and ActiveResource, two libraries made popular by the other hot pubescent on the block - Ruby on Rails (

As they say, necessity is the mother of invention. And as they also say, death before inconvenience. Our company, Wego ( has been using CouchDB for the past six months now, as we have a need for a document-model to store vast amounts of information, and we needed a convenience mapper in our favourite language, in order to use CouchDB elegantly. Since, the Rubyists here at Wego are already very familiar with ActiveRecord semantics, care has been taken to ensure that ActiveCouch resembled it in many ways.


- Cheah Chu Yeow (
- Carlos Villela (

 - Ruby 1.8.5 or above (
 - rubygems 0.9.4 (
 - JSON gem ( [Used for JSON encoding/decoding]
 - RSpec gem ( [Used to run specs]
 - CouchDB 0.8.0 and upwards ( ) [Some specs require running CouchDB at localhost:5984]
Important Notice

ActiveCouch v0.2.0 does not support pre-0.8.0 versions of CouchDB