Introducing AarambhJS — Exported as SnapUI: A Beginner-Friendly JavaScript UI Library
Frontend development can be overwhelming when starting with modern JavaScript frameworks. To make it easier, I created AarambhJS, a lightweight UI library designed for beginners and quick app development.
To keep things simple in code, the library exports under the global name SnapUI — so when you include it, you interact with SnapUI
in your JavaScript.
What Is AarambhJS / SnapUI?
- AarambhJS is the npm and repo name, symbolizing a "beginning" in Sanskrit.
- SnapUI is the runtime global export name for a crisp, memorable API.
Together, they represent a modern UI library that’s:
- Lightweight with zero dependencies
- Built on Virtual DOM rendering
- Supports JSX-like syntax and components
- Includes easy client-side routing
- Ready to use via CDN or npm
Quick Start with SnapUI
Include AarambhJS via CDN and use it as SnapUI:
<script src="https://cdn.jsdelivr.net/gh/pjdeveloper896/AarambhJS/dist/Index.js"></script>
Then in JavaScript:
const { createElement, render } = SnapUI;
const title = createElement('h1', null, 'Hello from SnapUI!');
document.body.appendChild(render(title));
Even though the package is AarambhJS, the usage in code is through SnapUI
, which is more intuitive and easy to remember.
Example: Interactive Component with SnapUI
function ButtonComponent() {
return createElement(
'button',
{ onClick: () => alert('Clicked!') },
'Click Me'
);
}
document.getElementById('root').appendChild(render(ButtonComponent()));
Client-Side Routing Made Simple
const routes = {
'/': () => createElement('div', null, 'Home Page'),
'/about': () => createElement('div', null, 'About SnapUI'),
};
const router = createRouter(routes, 'root');
Why This Naming?
Choosing AarambhJS as the package name honors the idea of beginnings and new starts, while SnapUI as the export name focuses on the quick and snappy user interface development experience.
Get Started Now
- GitHub: https://github.com/pjdeveloper896/AarambhJS
- CDN:
https://cdn.jsdelivr.net/gh/pjdeveloper896/AarambhJS/dist/Index.js
- npm package:
aarambhjs
(install withnpm install aarambhjs
)
Final Words
I hope AarambhJS (SnapUI) helps beginners and pros alike build beautiful interfaces with minimal fuss. Feel free to try it out and share your projects!
Happy coding!
— pjdeveloper896
Top comments (4)
Love the split naming - honoring roots and making usage snappy is a clever touch. Really appreciate the zero dependencies, makes it way more approachable than most UI libraries I've tried. Any plans to support TypeScript out of the box?
Hii Dotallio
Thanks for the appreciation. Making tech simpler is my aim because being a newbie I too struggled a lot and I am glad you liked my framework.
And thanks for your suggestion regarding Typescript, i will definitely work on it and update.
pretty cool seeing someone focus on making things way simpler for newbies - you think the best tech stays simple or does it always get super messy as it grows?
Hii Nevo
You are right as being a newbie myself, I can relate to every word of yours. Yes, tech should be simpler and understandable for every one and I will try my best to never make it messy but will incorporate unique feature in them.