Maybe the example of the front page is misleading, but fwir ConstraintJS is a JS library adding constraints to JS, the DOM/CSS are use cases but the library is not limited to those use cases
[0] https://github.com/soney/ConstraintJS/wiki/Constraint-Variab...