Architectural Deep Dive
Welcome to the internal documentation of LegoDOM.
This isn't a "how to use" guide. This is a "how it works" guide. I believe that understanding the soul of LegoDOM should/could make you a better contributor.
The Philosophy
"The Platform is the Runtime." We avoid compilers, transpilers, and VDOMs. We use:
- Proxies for state.
- TreeWalkers for scanning.
- Regex for parsing.
- MutationObservers for efficiency.
The Journey
Follow the path of a block from HTML string to Pixel:
- Init - How LegoDOM wakes up.
- Scanner - How we find holes in your HTML (Regex vs AST).
- Studs - The Reactivity Engine (Proxies).
- Render - The "Loop of Truth" & Security.
- Router - The "Surgical" Update philosophy.
Dive in.