Skip to main content


๐ŸŽจ @lirx/dom is an application design framework for the Web. It has been created to build very large and robust web applications, with unbeatable performances. Its main goal is to create the perfect SPA.

๐Ÿงฉ You can create and assemble millions of components easily. It closely follows the MVC pattern, with a strict separation between HTML, CSS, and JS files. Each component is independent. Meaning: easier dependencies' management, reusable components across applications and single imports.

๐Ÿš It is based purely on Observables. So you can compose very complex pipelines in just a few lines of code. The framework will take care to refresh only the relevant Nodes, as fast as if it was done natively.

๐Ÿฆธ This is your best ally when developing a web-app. Code in a more predictable way with clear data workflows, avoiding bugs, errors and inconsistent states.


@lirx/dom gives you many tools to write and build dynamic html templates and components with an elegant syntax. Due to its unique architecture based purely on Observables, it strongly outperforms Angular, as well as JSX based frameworks (like React).

Moreover, it comes with an AOT plugin for rollup, a must-have, optimizing the components to generate small bundles, and fast applications.

It's light, fast, and simple ! Give it a try !

A quick look at what your components will look like:โ€‹

<div class="input-container">
(input)="() => $.$input(node.value)"
Length: {{ $.remaining$ }} / 10

As you may notice, this framework has similarities with Angular. This is done on purpose, as we want to attract developers, without the necessity to learn a completely new language. So, if you're already an Angular developer, you may be interested: this framework brings incredible performances, with a template and style close to Angular.

Purpose of this frameworkโ€‹

@lirx/dom tries to conciliate the best ideas, coming from different web frameworks, to create the fastest and lightest one.

To achieve its goals, it compiles the HTML templates into native javascript with direct DOM manipulation. This way, it doesn't have to use an internal differ algorithm on the properties of the components (Angular), nor iterates over a Virtual DOM and compare the resulting objects (JSX frameworks). The output is pure Javascript, and this approach permits operations executing as close as if it was written natively.

With @lirx/dom, and due to its Observable based nature, only the absolutely essential and minimal javascript is executed; with just the relevant nodes refreshed and nothing else. Thus, the DOM is updated with the precision of a surgeon, resulting in insane performances.

๐Ÿคจ Another framework for web-apps ? Isn't it redundant ?

You're partially right.

@lirx/dom is done for perfectionists: using Observables introduce you to a new paradigm called Reactive Programming, which is a totally different manner of thinking your code. It's usually complex and discouraging for beginners. But coding in RP garanties robust and fast applications. Observables are very impressive and bring incredible possibilities, they just require time to be adopted and mastered.

In another hand, @lirx/dom strongly focuses on the performances of your applications. The most popular frameworks are very intuitive, but this simplicity has a cost in execution time and bundle size. This cost is usually ignored because our machines are fast enough for most cases. However, for very large applications, it becomes non-negligible, and may be a bottleneck. This library was created to handle such use-cases.

As a conclusion:

If you're not focused on performances, or doesn't aim for a large and robust application with a powerful architecture, you're probably not the target of this framework.

However, if you care and are an adventurer and perfectionist like me, it may be worth experimenting with it.