A mono repo containing packages with common web application script utilities.
DOMX is an approach to building modern web applications using the DOM, browser, and patterns more so than relying on frameworks or libraries. See: domxjs.com
All packages can be used independently, but for most cases the Router and/or DataElement packages are all that are needed.
The DataElement package includes exports for EventMap, StateChange, linkProp, and middleware.
Package | Status | Latest | Description |
---|---|---|---|
Router | A DOM based custom element router for client side routing | ||
StateController | A StateController base class for handling data state changes on a LitElement | ||
DataElement | A DataElement base class for handling data state changes | ||
EventMap | A CustomElement class mixin for declarative DOM event handling | ||
StateChange | A monad-like object that enables changing a property on an HTMLElement in a functional way | ||
linkProp | Contains methods for linking properties of DOM elements | ||
testUtils | Common testing utility scripts | ||
Middleware | Contains low level patterns for middleware and HTMLElement mixin logging | ||
functional | Contains methods for functional JavaScript patterns |