I'm pleased to announce the release of couchster v1.0.0, an open source (MIT-licensed) tool to help generate and test comprehensive CouchDB validation functions.
Couchster is a command line utility that is distributed as an npm package. It accepts a database's schema (aka its document definitions) in a simple, declarative JavaScript format and then produces a fully-formed validation function that can be dropped directly into a CouchDB design document. This makes it easy to comprehensively validate document contents and permissions with little or no boilerplate code. An included test fixture maker module provides a straightforward way to write unit tests against one's document definitions. And a schema validator tool prevents common mistakes in document definitions. The project's README contains a wealth of information for getting up and running with couchster. You'll find the project here: - GitHub: https://github.com/OldSneerJaw/couchster - npm: https://www.npmjs.com/package/couchster
