I tried to create my own npmjs.org mirror as described here https://github.com/isaacs/npmjs.org/blob/master/README.md
The replication went fine and i also can view the documents (http://localhost:5984/registry/coffee-script gives proper data). Unfortunately the couchapp fails somehow on this url http://localhost:5984/registry/_design/scratch/_rewrite/coffee-script: https://raw.github.com/gist/3384475/25a5ddfca59ac51a9a968a56e76ff2c7b1e68cb0/gistfile1.json
Any idea why this is happening?
The documentation is wrong. This is how I set mine up.
With your couchdb registry database setup, run the following in the npmjs.org source:
curl http://localhost:5984/registry/_design/scratch -X COPY -H destination:'_design/app'
couchapp push www/app.js http://localhost:5984/registry
The documentation should be accurate now. ✨