HexagonalJS, Single Page Apps Clean Architecture

This week a new JavaScript “idea” have been released, HexagonalJS, a Non-framework approach to JavaScript apps – it’s not even a library. Jan Filipowski explained the basic idea behind this library, and the philosophy behind it :

Business logic is software’s heart and have to be exposed properly.

Business logic is pure: uses only objects that represents domain in domain-valid state.

Client-side app is core of whole project, should be implemented as first.

Server-side API development should be driven by client-side needs.

Client-side and server-side are separated.

Both layers implements MVC.

HexagonalJS is not a framework according to its author, it’s mostly an architectural style adapted to JavaScript apps. The examples already available might give you a better idea on what is HexagonalJS is all about.