Sounds like an interesting standard:
fantasyland/fantasy-land: Specification for interoperability of common algebraic structures in JavaScript