Define and validate rules, datatypes and schemata in Node and in the browser.