xinjs vs. b8rjs

You have to "kill your darlings" is attributed to William Faulkner, among others. In the case of open source libraries it's more a case of abandoning your dalrings. They're still there, they still—you hope—work. They don't need to die, but they're not going to get much or any attention moving forward.

While I may rail against other—more successful—UI component systems (frameworks, libraries, architectures), I have to face the fact that they've won. There's a ton of options out there and while they all have strengths and weaknesses, they're not going away, and they all do the job.

So I've taken the most important thing about b8r, the thing that makes it so easy to work with, and extracted it from the stuff b8rjs does that other things do just as well or better, and tried to remove everything from it that might make you not want to use it, or prevent you from being allowed to use it.

xinjs…

Well, the last one still has an asterisk where it comes to code obfuscation (variable renaming in particular), but that's the stupidest reason not to do things sensibly I've come across. If I ever have a truly compelling reason to deal with it, I have a plan for that too.

It still retains b8rjs's virtues:

And, of course, it makes managing application state incredibly easy without infesting your codebase with new dependencies and code patterns. It has almost no "disposal tax".

So, if you like b8rjs, you'll probably love xinjs.

If you've been using RxJs or Redux but have run into the problems that inevitably occur as codebases age, merge, or evolve, you'll probably be blown away by xinjs.

If you love vanillajs but get sick of writing boilerplate code to bind data and event-handlers to elements, programmatically build HTML, or build web-components, you'll probably love xinjs.

— Tonio Loewald,