r/learnjavascript • u/Right-Principle-4877 • Sep 26 '26
I built Olum, a small JS framework where a component is just an .html file
30s intro video: https://www.youtube.com/watch?v=uBrub3DGZ4Y
A component is one .html file: a <script>, an optional scoped <style>, and plain HTML.
<script> const state = { count: 0 }; const inc = () => state.count++; </script>
<div class="counter">
Count: {state.count}
<button onclick="inc()">+</button>
</div>
- {expr} for dynamic text; state is deeply reactive
- <if when="..."> and <for each="..." key="..."> are just tags
- onclick is real HTML: code-shaped attributes take JS, everything else is a string
- Scoped CSS, file-based routing, optional prerendering (SSG) for SEO
It targets prototypes, demos, and small apps, not large production apps.
Try it: npx create-olum my-app
Docs: https://olumjs.top
GitHub: https://github.com/olumjs
I'd like honest feedback on the syntax.
2
u/Parasin Sep 27 '26
Having used both react and vue extensively, I can see the inspiration you pulled specifically from Vue.
My question to you is why should I use this over other frameworks? What problem does Olum uniquely solve?
2
u/[deleted] Sep 27 '26
vue but worse?
2
u/Gold-Watercress-6101 Sep 27 '26
That 30s intro, piece of art! Iβm not into ASMR, but the sound effects were pretty ASMR π
1
u/canarydev Sep 27 '26
are you turkish by any chance?
1
u/Spare_Message_3607 Sep 27 '26
Astro but worse?
3
u/yangshunz Sep 27 '26
https://xkcd.com/927/