logo

Show HN: Elemental – simple front ends in plain JavaScript

Posted by fynyky |2 hours ago |3 comments

fynyky 2 hours ago

This is a personal library I’ve been using for a while. I really don’t like how much frontend frameworks require you to invest in them. You have to learn funky domain specific languages, and magic render lifecycles just to debug anything. I mostly just want to create and append elements with better ergonomics. So that’s what I built.

The syntax lets you build a DOM declaratively with plain nested functions. This lets you define logic and views cleanly in a single structure, instead of reasoning across separate UI layout and UI logic. This also means you can use bit by bit instead of having to overhaul a whole project to a framework.

I hope you find it as useful as I have! Would love to get feedback from having fresh eyes on it.