A prism-like framework for js