✨ Introduction
“A well-defended kingdom needs strong walls. A digital kingdom needs smarter walls.”
This project was born out of : my love (Let's be honest here - the need of the hour for learning and mastering cutting-edge backend and AI systems, and my deep admiration for Chhatrapati Shivaji Maharaj — a visionary leader, strategist, and a true creator of Swarajya (self-rule).
I’ve rarely come across any software or technology project dedicated to the legacy of Shri Chhatrapati Shivaji Maharaj — the visionary who redefined leadership, strategy, and self-rule.
So I asked myself: Why not me? Why not now?
This project is my humble tribute to the man because of whom we stand tall today — fearless, forward-looking, and free.
"मराठी पाऊल पडते पुढे..."
And with every line of code, I hope to carry that spirit forward.
In today's world of real-time payments and online commerce, fraud is the enemy lurking at every border. Enemy is smarter than ever before and is ever evolving. Just like Shivaji Maharaj fortified his kingdom with warriors, forts, and intelligent networks, I set out to build a fraud detection system that is scalable, intelligent, and self-improving — but more importantly, one that pays homage to the values of courage, intelligence, and sovereignty.
Welcome to Fraud-Free Swarajya — a modular, open-source fraud detection platform that blends Java microservices, Python-based AI, and modern observability, all wrapped in a metaphor-driven architecture.
⚔️ Why the Name — and the Warriors Behind It
| sindhudurg
| Named after the mighty coastal fort Sindhudurg, which protected the kingdom from maritime threats. Just like the fort, this module is the first line of defense — a secure API gateway that screens all transactions entering the system. |
| tanaji
| Named after Tanaji Malusare, the fearless commander who reclaimed Kondhana Fort with unmatched courage. Our AI engine carries his name, making split-second decisions under risk, just like Tanaji did under the moonlight. |
| dadoji
| Inspired by Dadoji Konddeo, the mentor of young Shivaji. As our rule engine, Dadoji represents wisdom, discipline, and foundational logic — laying down rules that guide decisions even before AI kicks in. |
| ramchandrapant
| Named after Ramchandra Pant Amatya, the brilliant finance minister who ran the administration even after Shivaji's time. Our PostgreSQL-backed module stores every transaction — a ledger of the kingdom’s economic pulse. |
| jiva
| Named after Jivaji Mahala (Jiva Mahala), who saved Shivaji Maharaj during the infamous encounter with Afzal Khan. Redis caching earns his name — fast, alert, and always ready to guard against repeated attacks. |
| kanhoji
| Inspired by Kanhoji Angre, the naval mastermind who controlled the western coast with strategy and surveillance. Like him, our Grafana + Prometheus setup gives us real-time visibility over our digital waters. |
| santaji
(planned) | Named after Santaji Ghorpade, the guerrilla warfare expert known for unpredictable, adaptive strikes. The feedback loop module will live up to his name by learning from fraud attempts and evolving continuously. |
| ashtapradhan
(planned) | Named after the Ashta Pradhan Mandal — the council of ministers advising the king. This will be our Admin Dashboard, giving stakeholders central control and decision-making authority. |
🚀 What’s Built So Far
-
✅ Spring Boot API (
sindhudurg
) that accepts a transaction JSON and delegates risk scoring. -
✅ AI Scoring Engine (
tanaji
) built using Python’sFastAPI
andRandomForestClassifier
. -
✅ PostgreSQL Storage (
ramchandrapant
) that stores every scored transaction for future learning. -
✅ Redis Caching (
jiva
) to avoid redundant AI calls. -
✅ Prometheus + Grafana Monitoring (
kanhoji
) for real-time operational insight. -
✅ All of this runs via Docker Compose for seamless orchestration.
All code is modular, testable, and built using open-source tools.
🧠 Why Fraud Detection?
Fraud is the modern-day Aurangzeb — relentless, deceptive, and constantly attacking from all sides.
Just as Shivaji Maharaj may not have defeated Aurangzeb in a single battle, it was his strategic brilliance, adaptability, and psychological mastery that laid the foundation for resistance. It was his foresight that empowered Chhatrapati Sambhaji Maharaj to continue the fight and ultimately break Aurangzeb’s spirit, forcing him into a slow retreat — not with brute force, but with endurance and tactical superiority.
In the same way, we may not "eliminate" digital fraud completely. But with the right architecture, AI, and resilience, we can frustrate it, outmaneuver it, and protect our digital Swarajya.
🧭 What’s Coming Next
-
🔍 More static rules using
dadoji
(Risky country, IP anomalies, high velocity) -
🧠 Adaptive learning via feedback (
santaji
) -
✉️ Optional notification/alert module
-
📊 Custom dashboard (
ashtapradhan
) -
✅ Security hardening and secret management
📣 Why I’m Sharing This Publicly
This is more than a project — it’s a living portfolio, a tribute, and a platform for learning in public. I’ll be sharing:
-
Tech deep-dives
-
Design decisions
-
Coding challenges
-
Architecture blueprints
-
Blog + LinkedIn series
If this interests or inspires you — I invite you to follow along, contribute, and be part of this Swarajya of Code.
🔗 GitHub
🛠️ Codebase: https://github.com/pcm1984/fraud-free-swarajya
📖 Documentation and blogs are inside the repo as well (modular + searchable).
🙏 Closing Thought
“Shivaji Maharaj didn’t just build a kingdom. He built a system that outlived him.”
I hope I get the courage and energy and continue to get inspiration from him — to create a system that’s resilient, educational, and impactful.
Jai Bhavani. Jai Shivaji.
No comments:
Post a Comment