<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abtahi Tajwar on Medium]]></title>
        <description><![CDATA[Stories by Abtahi Tajwar on Medium]]></description>
        <link>https://medium.com/@abtahitajwar?source=rss-8150598c6c69------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p-SYg98JqIHgOfT6.</url>
            <title>Stories by Abtahi Tajwar on Medium</title>
            <link>https://medium.com/@abtahitajwar?source=rss-8150598c6c69------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:22:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abtahitajwar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Accidentally Came Up With a Reactive JS UI Library]]></title>
            <link>https://medium.com/@abtahitajwar/how-i-accidentally-came-up-with-a-reactive-js-ui-library-ad4c31b52281?source=rss-8150598c6c69------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad4c31b52281</guid>
            <category><![CDATA[custom-library-design]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[ui-library]]></category>
            <dc:creator><![CDATA[Abtahi Tajwar]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 02:33:26 GMT</pubDate>
            <atom:updated>2025-06-16T02:33:26.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orH7_rFXc3HpzFuIZIIpKw.png" /></figure><p>Okay okay — I get it. Please don’t roll your eyes 🙏</p><p>Yes, I built <em>yet another</em> JavaScript UI library. I know it seems like every day there’s a new one popping up — Svelte, Solid, Alpine, HTMX… and now, <strong>VaneJS</strong>.</p><p>But hear me out — <strong>this wasn’t the plan</strong>.</p><h3>🚧 The Accidental Start</h3><p>It all began with a basic personal project. I was building my portfolio site using a raw HTML/CSS template. My goal was simple: load content from a JSON file dynamically — no fuss.</p><p>Naturally, I thought of using Svelte. It has that clean, HTML-like syntax and is pretty powerful. But it didn’t feel worth the migration headache just for a small site. So I fell back to vanilla JS.</p><p>Now here’s the problem: I kept spamming document.querySelector, innerHTML, and manual state updates just to reflect data. Tedious. So I thought:</p><p><strong>&quot;Why not just write a simple templating engine?&quot;</strong></p><p>I just wanted to dump data into the HTML cleanly. But… it spiraled. 😅</p><p>Before I knew it, I had:</p><ul><li>Reactive state management</li><li>Loops and conditional rendering</li><li>Store syncing between pages</li><li>Event bindings with inline params</li><li>And yes, even an API call example</li></ul><p>Then I thought: <em>“Okay, this is officially something.”</em></p><p>I picked a name — <strong>VaneJS</strong> — in like 10 seconds.</p><p>👉 <a href="https://vanejs.netlify.app/guide/core-concepts.html">Check the documentation</a></p><h3>✨ Very Basic Usage</h3><p>Here’s the <em>hello world</em> of VaneJS. No CLI, no build step, no npm — just plug and play.</p><pre>&lt;!-- index.html --&gt;<br>&lt;script type=&quot;module&quot; src=&quot;vanjejs.module.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;h1 data-vn-bind=&quot;user.name&quot;&gt;Hello&lt;/h1&gt;</pre><pre>&lt;script type=&quot;module&quot;&gt;<br>  import { $setState } from &#39;./vanjejs.module.js&#39;;</pre><pre>  $setState(&quot;user&quot;, { name: &quot;Abtahi&quot; });<br>&lt;/script&gt;<br></pre><p>Want to add loops?</p><pre>&lt;ul data-vn-repeat=&quot;user.skills as skill&quot;&gt;<br>  &lt;li data-vn-ritem=&quot;{skill}.label&quot;&gt;&lt;/li&gt;<br>&lt;/ul&gt;</pre><p>Update with:</p><pre>$setState(&quot;user&quot;, {<br>  name: &quot;Abtahi&quot;,<br>  skills: [{ label: &quot;JS&quot; }, { label: &quot;C++&quot; }]<br>});</pre><p>And conditionally render blocks:</p><pre>&lt;div data-vn-if=&quot;{theme} === &#39;dark&#39;&quot;&gt;Dark Mode&lt;/div&gt;<br>&lt;div data-vn-else&gt;Light Mode&lt;/div&gt;</pre><h3>🧠 What Makes VaneJS Different?</h3><ul><li>✅ <strong>Zero Build Step</strong>: Just add a single static .js file to your project. No bundlers, no compilers.</li><li>✅ <strong>Backend Friendly</strong>: Works out-of-the-box with PHP, Laravel, Django, Express, ASP.NET — whatever you want.</li><li>✅ <strong>No Paradigm Shift</strong>: Feels like HTML, behaves like a reactive system.</li><li>✅ <strong>Minimal Mental Overhead</strong>: You don’t need to “learn a framework.” If you know HTML and JS, you’re good.</li><li>✅ <strong>Reactive Stores Between Pages</strong>: Yes, you can store values and retrieve them across HTML pages.</li></ul><pre>&lt;!-- about.html --&gt;<br>&lt;p data-vn-bind=&quot;mystore.name&quot;&gt;&lt;/p&gt;</pre><pre>// main.js<br>$setStore(&quot;mystore&quot;, { name: &quot;SharedValue&quot; });</pre><ul><li>✅ <strong>Smart Inline Events</strong>: Attach multiple events inline:</li></ul><pre>&lt;button data-vn-on=&quot;click:myFunc({user.name}); mouseover:logHover()&quot;&gt;Click me&lt;/button&gt;</pre><pre>$event(&quot;myFunc&quot;, ({ params }) =&gt; console.log(params[0]));<br>$event(&quot;logHover&quot;, () =&gt; console.log(&quot;hovered!&quot;));</pre><h3>🚀 What’s Next</h3><p>I’m actively building more around the <em>zero-config, zero-setup</em> philosophy:</p><ul><li>🔨 <strong>Templating System</strong>: You’ll be able to define reusable templates without any build tools. Like:</li></ul><pre>export default () =&gt; \`<br>  &lt;h1&gt;Hello&lt;/h1&gt;<br>  &lt;p data-vn-bind=&quot;user.bio&quot;&gt;&lt;/p&gt;<br>\`</pre><ul><li>🧠 <strong>Language Server (LSP)</strong>: I’m planning to write an LSP for VaneJS so your editor can offer intellisense, diagnostics, and autocompletion just like in React or Svelte.</li><li>🌱 <strong>Plugin System</strong> <em>(planned)</em>: Think mini-addons for things like forms, routers, or animation — optional and simple.</li></ul><h3>👋 Final Thoughts</h3><p>I didn’t set out to build a JavaScript UI library. I was just trying to get my site done faster. But sometimes, the shortcuts <em>become the road</em>.</p><p>If you’re a fullstack dev, or even a backend-first developer who hates writing repetitive DOM updates — try VaneJS. It might just save you a few headaches.</p><p>🔗 <strong>Docs</strong>: <a href="https://vanejs.netlify.app/guide/core-concepts.html">vanejs.netlify.app</a></p><p>📦 <strong>Demo / GitHub</strong>: <a href="https://github.com/abtahi-tajwar/vanejs">https://github.com/abtahi-tajwar/vanejs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad4c31b52281" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>