Mazhai (மழை - "Rain" in Tamil) is a revolutionary developer tools platform that brings cloud computing power directly to your device. Unlike traditional SaaS tools that process your data on remote servers, Mazhai runs 100+ utilities locally in your browser using WebAssembly and WebGPU.
- 🔒 Absolute Privacy: Your JWTs, JSON, and code never touch our servers
- ⚡ Lightning Fast: Near-native C++ speeds with zero network latency
- 📴 Offline Capable: Core features work without internet
- ♾️ Infinite Scale: Server load stays constant regardless of user count
┌─────────────────────────────────────────────────────────┐
│ User's Device │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Browser (Chrome/Safari/Firefox) │ │
│ │ ┌────────────┐ ┌────────────┐ ┌────────────┐ │ │
│ │ │ WebAssembly│ │ WebGPU │ │ IndexedDB │ │ │
│ │ │ (Wasm) │ │ (AI/GPU) │ │ (Storage) │ │ │
│ │ └────────────┘ └────────────┘ └────────────┘ │ │
│ │ ↓ ↓ ↓ │ │
│ │ ┌──────────────────────────────────────────┐ │ │
│ │ │ 100% Local Processing │ │ │
│ │ │ - JSON Formatting │ │ │
│ │ │ - Base64 Encoding │ │ │
│ │ │ - JWT Decoding │ │ │
│ │ │ - AI Code Explanation (Local Model) │ │ │
│ │ └──────────────────────────────────────────┘ │ │
│ └──────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
↓ (Only for Auth & Sync)
┌─────────────────────────────────────────────────────────┐
│ Mazhai Backend (3-Node Cluster) │
│ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │
│ │ Node 1 │ │ Node 2 │ │ Node 3 │ │
│ │ Cloudflare│ │ Spring │ │ PostgreSQL + Redis │ │
│ │ Tunnel │ │ Boot │ │ │ │
│ └──────────┘ └──────────┘ └──────────────────────┘ │
└─────────────────────────────────────────────────────────┘
mazhai/
├── web/ # Next.js 14 Frontend
│ ├── app/ # App Router pages
│ │ ├── page.tsx # Landing page
│ │ ├── tools/ # Tools directory
│ │ │ ├── page.tsx # Tool grid
│ │ │ └── [toolId]/ # Dynamic tool pages
│ │ ├── layout.tsx # Root layout
│ │ └── globals.css # Dark theme
│ ├── components/
│ │ ├── layout/ # Navbar, Footer
│ │ ├── auth/ # TierGuard
│ │ ├── ui/ # Button, Card, etc.
│ │ └── tools/ # Tool implementations
│ ├── store/ # Zustand state
│ ├── config/ # Tool registry
│ └── types/ # TypeScript definitions
│
├── server/ # Spring Boot Backend
│ ├── src/main/java/org/mazhai/
│ │ ├── controller/ # REST endpoints
│ │ ├── service/ # Business logic
│ │ ├── model/ # JPA entities
│ │ ├── repository/ # Data access
│ │ ├── security/ # JWT utilities
│ │ └── config/ # Spring configuration
│ └── src/main/resources/
│ └── application.yml # Configuration
│
├── IMPLEMENTATION_GUIDE.md # Technical deep-dive
├── DEPLOYMENT_GUIDE.md # Production deployment
└── README.md # This file
- Node.js 20+ and npm
- Java 21+ and Maven
- PostgreSQL 15+
- Redis 7+
cd web
npm install
npm run devVisit http://localhost:3000
# Start PostgreSQL and Redis
brew services start postgresql
brew services start redis
# Create database
createdb mazhai
# Run Spring Boot
cd server
./mvnw spring-boot:runAPI available at http://localhost:8080/api
- Landing page with hero section
- Tools directory with category filtering
- Dynamic tool routing with lazy loading
- Zustand state management
- Tier-based access control (Guest/Free/Pro)
- Dark mode "Code-to-Cloud Fortress" theme
- Responsive design (mobile-first)
- JSON Formatter (Guest) - Format, validate, minify JSON
- Base64 Encoder/Decoder (Guest) - Encode/decode Base64
- UUID Generator (Guest) - Generate v4 UUIDs
- User authentication with JWT
- PostgreSQL database with JPA
- User, Subscription, AiQuota models
- RESTful API endpoints
- CORS configuration
- Security configuration
- AI quota management
- WebLLM integration for local AI
- RxDB for offline-first storage
- LZ-String snippet sharing
- WebRTC collaborative tools
- Payment gateway integration (Razorpay/Stripe)
- OAuth (Google, GitHub)
- Rate limiting with Redis
- 97+ additional tools
- React Native mobile app
--background: #121212 /* Deep black */
--foreground: #ededed /* Light gray */
--primary: #deff9a /* Neon green */
--secondary: #3b82f6 /* Electric blue */
--accent: #2a2a2a /* Dark gray */- Sans: Geist Sans
- Mono: Geist Mono
- Cyber-grid background pattern
- Glassmorphism effects
- Neon accents on interactive elements
- Pure dark mode (no light mode)
| Feature | Guest | Free | Pro (₹199/mo) |
|---|---|---|---|
| Basic Tools | 3 | 50+ | 100+ |
| AI Queries | 0 | 5/day | Unlimited |
| Tool History | ❌ | 10 items | 50 items |
| Offline Mode | ✅ | ✅ | ✅ |
| Advanced Crypto | ❌ | ❌ | ✅ |
| Creator Economy | ❌ | ❌ | ✅ |
- Local Processing: All tool computations happen in your browser
- No Data Collection: We don't store your tool inputs/outputs
- Encrypted Transit: HTTPS everywhere
- Stateless Auth: JWT tokens, no server-side sessions
- Open Source: Code available for audit (coming soon)
User → Firebase/OAuth → Frontend → Exchange Token → Backend
↓
Issue JWT
↓
Store in HttpOnly Cookie
- Initial Load: ~200KB (gzipped)
- Tool Load Time: <100ms (lazy loaded)
- JSON Formatting: <10ms for 1MB file
- Offline Capability: 100% for core tools
- Current: 3-node cluster
- Capacity: 10,000+ concurrent users
- Cost: ~₹5,000/month (vs ₹50,000+ for traditional SaaS)
cd web
npm run test # Jest + React Testing Library
npm run test:e2e # Playwrightcd server
./mvnw test # JUnit 5
./mvnw verify # Integration tests- Implementation Guide: Technical deep-dive
- Deployment Guide: Production deployment
- Server README: Backend documentation
- Add configuration to
web/config/toolsConfig.ts - Create component in
web/components/tools/[tool-name].tsx - Implement tool logic (client-side only)
- Test tier access control
- Submit PR
- Frontend: ESLint + Prettier
- Backend: Google Java Style Guide
- Commits: Conventional Commits
- Launch MVP with 10 tools
- Implement payment gateway
- Add OAuth providers
- Deploy to production
- Reach 50+ tools
- Launch mobile app (React Native)
- Implement WebLLM AI
- Add collaborative features
- Reach 100+ tools
- Launch creator economy
- Implement learning hub
- Scale to 100K users
- Website: https://mazhai.org
- Email: support@mazhai.org
- Twitter: @MazhaiDev
- Discord: discord.gg/mazhai
Proprietary - All rights reserved
Copyright © 2024 Mazhai Technologies
Built with:
- Next.js - React framework
- Spring Boot - Java framework
- PostgreSQL - Database
- Tailwind CSS - Styling
- Zustand - State management
- shadcn/ui - UI components
Mazhai - Bringing the cloud down to earth 🌧️
"Just as rain connects the sky to the earth, Mazhai connects your code to the cloud."