mobiledoc sounds like an open source implementation of some of these ideas: <a href="https:&#x2F;&#x2F;github.com&#x2F;bustlelabs&#x2F;mobiledoc-kit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bustlelabs&#x2F;mobiledoc-kit</a>