title: Is there a mongoose-like library for front-end?
body: <p>I don't mean the front-end will contact the db directly. I just hope there is a tool to transform the high-level db operations to low-level http commands. Then the app server can deal with the db server accordingly.</p>
  
  <pre><code>import React from 'react'
  import X from 'X'
  class Demo extends React.Component{
      constructor(){
          super();
          this.state={result:null}
          let schema=new X.Schema({title:String});
          this.model=X.model('blob',schema)
      }
      handleClick=()=&gt;{
          this.model.create({titile:this.input.value}).then(()=&gt;{
              this.setState({result:"new blog stored in the remote db successfully"})
          })
      }
      render(){
          return &lt;div&gt;
              &lt;input ref=(input)=&gt;{this.input=input} /&gt;
              &lt;button onClick={this.handleClick}&gt;submit&lt;/button&gt;
              &lt;div&gt;{this.state.result}&lt;/div&gt;
          &lt;/div&gt;
      }
  }
  </code></pre>