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
Sep 27 '26
vue but worse?
1
u/Right-Principle-4877 Sep 27 '26
Maybe π if what you're looking for is Vue.
Olum isn't trying to be a "better Vue". It's more about keeping the code as close to vanilla HTML/JS as possible and adding reactivity on top.
If you prefer Vue's ecosystem and conventions, just use Vue.
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
1
u/canarydev Sep 27 '26
are you turkish by any chance?
1
u/Right-Principle-4877 Sep 27 '26
because of the name π?
I know Turkish people won't like the name, but It's unique and easy to pronounce2
1
u/Spare_Message_3607 Sep 27 '26
Astro but worse?
1
u/Right-Principle-4877 Sep 28 '26
I don't know astro, but this one 90% compiler 10% runtime, it's very minimal JS framework that makes you write vanilla code and get the same result as SPA frameworks
so If you just learnt the basics of JS you can build SPA without extra knowledge
3
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?