Introducing Mahal.js

Ujjwal Gupta
3 min readApr 5, 2022

--

I have been working on an awesome project since last two years and now it is completed and I can’t stop myself to share this with everyone. It was a very tough and interesting journey but i am glad i was able to finish it 😃.

The project is named mahaljs. It is a javascript UI framework similar to reactjs but works without virual DOM similar to Svelte.

The project has been created from scratch. It has its own template engine, uses event based architecture(to make it feel native to javascript). All of its ecosytem projects like store, router etc has been also created from scratch.

These are some of awesome features -

  • Works without virtual DOM
  • Small in size but powerful — 7kb (minified + gzipped)
  • Truly reactive with two way binding
  • Better documenting — you can write documentation with yml syntax inside components
  • Event based architecture
  • Uses modern approach — class based components, decorators etc
  • Focuses on simplicity — simple API’s and easy to learn

I have also created a documentation site. Here is link — https://mahaljs.com/docs/get-started/

The mahaljs is opensource and free to use. The project source code can be viewed on github — https://github.com/ujjwalguptaofficial/mahal

Mahal.js is full fledged framework. It has support for store, router and currently vscode support but will support multiple editors in future.

You might be wondering why i have created mahaljs, since already lots of framework exists. I have written a dedicated article to explain this, since everyone is asking the very same question — https://medium.com/@ujjwalkrgupta/why-i-created-mahal-js-9141b37fc64

I will request you to please try once 🙏 and share it with others if you liked it. Also feel free to contribute or create your own projects which can help community. Some of the projects ideas, i can think of are — bootstrap-mahal, materialize-mahal, alert UI, mahal-meta etc. Here is official ecosytem projects link — https://mahaljs.com/docs/ecosystem/

Also i am maintaining a dedicated blog for this projects, so that users can understand even smaller things and take advantage of it. Here is the link in case you want to join — https://medium.com/mahal-js

What is aim of mahal.js?

The aim of mahal.js is to make front end development easier by using latest ecma script specification. So that larger application can be developed and maintained with documentation, clean coding.

How can i benefit ?

There are lots of opportunity right now, as it’s new framework. You can create different libraries and plugins and benefit from it in personal or professional way.

You can get in touch with Ujjwal Gupta (creator of mahal.js) for help and guidance.

Request 🙏

I request you to help me spread the word. You can do so by sharing on social media, talking with your friends, creating an app using mahal.js.

Also if you like the project, please star the mahal.js repo — https://github.com/ujjwalguptaofficial/mahal

Resources

Thanks for reading 👏.

Let’s learn and grow together, join me using below social links -

--

--

Ujjwal Gupta
Ujjwal Gupta

Written by Ujjwal Gupta

Frontend lead Polygon | Creator of jsstore, mahaljs | sqlweb, fortjs | opensource creator | we3, blockchain, solidity | javascript

Responses (4)