Sunday, November 15, 2026

Introducing Mahajaal App : Untangling the Mahabharata web | Anuj Kacker






(WATCH THE GUIDED TOUR OF THE APP ABOVE)


(GO DIRECTLY TO THE APP)


The Mahabharata is not only a Mahakavya - it is also a tangled web - a 'Maha Jaal'. It runs to 73,816 verses across 18 books and nearly 2,000 chapters, several times longer than the Iliad and the Odyssey combined. The cast runs into the hundreds: gods, sages, kings, animals and a variety of celestial beings, many with multiple aliases and names shared by others, some who change shape, incarnate or are born more than once. The story itself is a web of tales within tales, where something that happens in one era echoes an event in another, hundreds of chapters away. And yes, it’s in Sanskrit. 

Even scholars find it nearly impossible to map out the entire epic. Casual readers, sensibly, don’t normally try. So I got AI to have a go at untangling the web that epic really is and helping us understand and navigate it. My AI model read the Sanskrit edition chapter by chapter, shloka by shloka, investigated the characters, the major and the obscure ones, and their mutual relationships, and laid them out in an understandable manner.

The objective was also make it trustworthy enough for researchers, scholars and authors, not just the curious. So a second AI model checked the work of the first. Where the two disagreed, a third, more capable model read the whole chapter and ruled. Edge cases needed resolution. Rules had to be formulated to build consistency. Disambiguation of names was another task. Doubtful cases were compared against Kisari Mohan Ganguli’s nineteenth-century English translation. Whatever was still uncertain stayed off the map and was listed separately.

The result of this work is a web app I’ve called Mahajaal. I’ve built it to be useful to anyone: a casual visitor, a scholar researching the epic, an author who needs a reference, and even a school student encountering the work for the first time.

It is planned in three sections:

Sambandh Jaal is the web of characters. So far it holds more than 850 characters, from humans and gods to Asuras, Gandharvas and Nagas, and 2,776 connections between them.

Features abound. Pick anyone and see who is connected to them: their family, teachers, rivals, cursers and boon givers on one radial map. The colour of the lines shows the type of relationship, line weight shows its importance, and tapping or hovering over a line tells you exactly how the two are connected. Tap another character and they move to the centre, so you can walk the epic one relationship at a time. You can also browse by kind of being (deva, asura, gandharva), by position (sage, king, charioteer), by clan, dynasty or kingdom, or just alphabetically.

       




Katha Jaal is the web of stories. Today it holds guided stories, each following one thread through the epic. It will grow to follow the main plot, one character’s journey, or an embedded upakhyana. This one is still a work in progress.

Shabd Jaal is the glossary. Search by name, or browse kingdoms, geography, weapons, clans, rites and customs, and more.

                  

Other features. Everything carries the chapter and verse it came from, for anyone who wants to go to the source. There are favourites and sharing, English and Hindi throughout, and separate layouts for laptop and phone.

Credits and caveats. I conceived, designed and vibe-coded the app (that last word is doing a lot of work). The Sanskrit comes from the GRETIL e-text of the Bhandarkar Oriental Research Institute’s critical edition of the Mahabharata, and Ganguli’s translation from Project Gutenberg. All of it has been read by AI, and none of it has been verified by a human scholar. Doubtful cases are withheld and listed under “Help us check”. So far it covers 1,041 of the 1,995 chapters, just over half the epic, and more is added book by book. Despite all this, mistakes may creep in, so there is a feedback and error-reporting mechanism built in. If you spot one, please use it.

Why I built this

For two years I have been building apps with AI’s help, mostly for family and friends. Like millions of Indians, I have long been drawn to the Mahabharata, enough to take a course on it at the Bhandarkar Oriental Research Institute.

That is where the trouble started. I kept getting lost in the weeds: who was whose son, who had cursed whom, which Chitrasena this time. I wanted a ready reference I could check in a minute, and the idea grew each time I came back to it.

The pairing was also irresistible: one of the oldest stories we tell, read by one of the newest tools. The same method should work for Shakespeare, Ghalib or Hitchcock. Mahajaal is the first, and may not be the last.

How I built this

Building with AI takes the grunt work out of coding and makes it easy to change things. That doesn’t make it automatic: it is a human and AI collaboration all the way. If you’re curious about what it took, or would like to build something like it yourself, here is what it took to map the Mahabharata properly.


Try it

 

Introducing Mahajaal App : Untangling the Mahabharata web | Anuj Kacker

( WATCH THE GUIDED TOUR OF THE APP ABOVE) (GO DIRECTLY TO THE APP) The Mahabharata is not only a Mahakavya - it is also a tangled web - a ...