Automate your legal workflows with AI. Draft contracts, track compliance, and handle payments - all in one platform built for Indian startups and SMEs.
LegalEase is a comprehensive AI-powered legal compliance and business automation platform designed specifically for Indian startups and SMEs. It combines cutting-edge AI technology with legal expertise to automate complex business processes, from document generation to tax filing and compliance management.
- π€ AI-Powered Legal Automation - Generate contracts, legal notices, and compliance documents
- π Tax & GST Management - Automated ITR filing, GST returns, and compliance tracking
- π Blockchain Document Notarization - Immutable document verification on Base blockchain
- π₯ Specialized AI Agents - Dedicated agents for different legal and accounting tasks
- π Advanced Document Management - OCR, smart categorization, and blockchain hashing
- π¬ Real-time Automation - WebSocket-based live updates and automation status
- π’ Complete Business Onboarding - Step-by-step business setup and compliance
- π± Modern Web Interface - Beautiful, responsive UI with professional legal theme
LegalEase is built with a modern microservices architecture:
Frontend (Next.js) ββ Backend (FastAPI) ββ Blockchain (Solidity)
β β β
β MongoDB Atlas Base Network
β β β
ββββββββββββββββββ WebSocket ββββββββββββββββββ
β
GST Verification API
- Node.js 18+ and npm/yarn
- Python 3.8+
- MongoDB
- MetaMask or compatible Web3 wallet
git clone https://github.com/your-username/legalease.git
cd legalease# Navigate to backend directory
cd backend
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration
# Start the backend server
uvicorn main:app --reload# Navigate to frontend directory
cd frontend
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your configuration
# Start the frontend server
npm run dev# Navigate to blockchain directory
cd blockchain
# Install dependencies
npm install
# Set up environment variables
cp env.example .env
# Edit .env with your private key
# Deploy to Base Sepolia testnet
npm run deploy:base-sepolia# Navigate to GST API directory
cd GST-Verification-API
# Install dependencies
pip install -r requirements.txt
# Start the GST verification service
python app.py# Database
MONGODB_URL=mongodb+srv://your-mongodb-url
MONGODB_DB_NAME=legalease
# AI Configuration
OPENAI_API_KEY=your-openai-api-key
GOOGLE_API_KEY=your-google-api-key
AI_PROVIDER=openai
# Security
SECRET_KEY=your-secret-key-here
CORS_ORIGINS=["http://localhost:3000"]
# File Upload
UPLOAD_DIR=uploads
MAX_FILE_SIZE=10485760 # 10MB# API Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WS_URL=ws://localhost:8000
# Blockchain Configuration
NEXT_PUBLIC_REGISTRY_BASE_SEPOLIA=0xYourContractAddress
NEXT_PUBLIC_BASE_SEPOLIA_RPC=https://sepolia.base.orgLegalEase includes specialized AI agents for different legal and accounting tasks:
| Agent | Description | Capabilities |
|---|---|---|
| Tax Filing Copilot | Automated tax management | ITR filing, GST returns, tax calculation |
| Compliance Health Agent | Regulatory compliance monitoring | Deadline tracking, risk assessment, alerts |
| Notice Responder | Legal notice management | Notice analysis, response drafting, follow-up |
| Document Generator | Legal document creation | Contracts, agreements, templates |
| Trademark Assistant | IP management | Trademark search, filing, status tracking |
| General Assistant | Q&A and guidance | Legal queries, business advice, support |
- Real-time Compliance Score - Track your business compliance status
- Task Management - Upcoming deadlines and pending tasks
- Document Analytics - Usage statistics and document insights
- Automation Status - Live updates on running processes
- Calendar Integration - Compliance deadlines and appointments
- Smart Upload - Drag & drop with automatic file type detection
- OCR Processing - Text extraction from scanned documents
- Blockchain Notarization - Immutable document verification
- Advanced Search - Full-text search across documents
- Folder Organization - Hierarchical document structure
- Version Control - Track document changes and revisions
Complete step-by-step business setup:
- Basic Information - Company details and incorporation
- Legal Structure - Entity type and shareholding
- Compliance Setup - Tax registrations and licenses
- Document Upload - Required business documents
- Verification - AI-powered document verification
- Activation - Business profile activation
POST /api/v1/auth/register- User registrationPOST /api/v1/auth/login- User loginGET /api/v1/auth/user/{email}- Get user profile
POST /api/v1/businesses- Create businessGET /api/v1/businesses/{id}- Get business detailsPOST /api/v1/onboarding/start- Start onboarding process
POST /api/v1/upload/document- Upload documentGET /api/v1/upload/document/{id}- Download documentGET /api/v1/upload/documents- List documents
WebSocket /api/v1/automation/ws- Real-time automation updatesPOST /api/v1/tax-filing/initiate- Start tax filing process
POST /api/v1/companies- Create companyGET /api/v1/companies- List companiesGET /api/v1/companies/{id}- Get company details
For complete API documentation, visit: http://localhost:8000/docs (Swagger UI)
LegalEase integrates with the Base blockchain for document notarization:
- Document Notarization - Store SHA-256 hashes on-chain
- Existence Verification - Check if documents are notarized
- Immutable Storage - Permanent on-chain records
- Event Emission - Real-time frontend integration
- Network: Base Sepolia Testnet (Chain ID: 84532)
- Contract:
LegalEaseDocRegistry.sol - Features: Gas-optimized, duplicate prevention, event-based verification
- Landing Page (
/) - Hero section with features overview - Dashboard (
/dashboard) - Main application interface - Documents (
/documents) - Document management interface - Agents (
/agents) - AI agents management - Chat (
/chat) - Conversational AI interface - Editor (
/editor) - AI-powered document editor
- Automation (
/automation) - Browser automation interface - Compliance (
/compliance) - Compliance tracking calendar - Settings (
/settings) - Application configuration - Help (
/help) - Documentation and support - Pricing (
/pricing) - Subscription plans
LegalEase uses a professional legal theme with:
- Color Palette: Legal brown (
#8B4513) and warm cream (#F8F3EE) - Typography: Baskervville (headings) and Montserrat (body)
- Components: Shadcn/ui with custom legal styling
- Responsive Design: Mobile-first approach
- Accessibility: WCAG 2.1 AA compliant
# Backend tests
cd backend
pytest
# Frontend tests
cd frontend
npm test
# Blockchain tests
cd blockchain
npm test- Backend: API endpoints, business logic, database operations
- Frontend: Component rendering, user interactions, API integration
- Blockchain: Smart contract functionality, gas optimization
- Backend Deployment (Railway/Heroku)
- Frontend Deployment (Vercel/Netlify)
- Database (MongoDB Atlas)
- Blockchain (Base Mainnet)
# Deploy backend
cd backend
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port $PORT
# Deploy frontend
cd frontend
npm run build
npm start
# Deploy blockchain
cd blockchain
npm run deploy:base- API Response Time: < 200ms average
- Document Upload: < 5s for 10MB files
- Blockchain Transaction: < 30s confirmation
- AI Processing: < 10s for document generation
- Database Indexing: Optimized queries for fast retrieval
- Caching: Redis for frequently accessed data
- CDN: Static assets served via CDN
- Code Splitting: Lazy loading for optimal performance
- Data Encryption: End-to-end encryption for sensitive data
- Authentication: JWT-based authentication system
- Authorization: Role-based access control
- Input Validation: Comprehensive input sanitization
- Rate Limiting: API rate limiting and DDoS protection
- Blockchain Security: Immutable document verification
We welcome contributions! Please read our Contributing Guide for details on:
- Code of conduct
- Development process
- Pull request guidelines
- Issue reporting
# Fork the repository
git clone https://github.com/your-username/legalease.git
cd legalease
# Create feature branch
git checkout -b feature/your-feature-name
# Make your changes
# Test your changes
# Submit pull requestThis project is licensed under the MIT License. See the LICENSE file for details.
- Documentation: Check our comprehensive guides
- Issues: Report bugs on GitHub Issues
- Discussions: Join our GitHub Discussions
- Email: Contact us at support@legalease.com
Q: Is LegalEase free to use? A: LegalEase offers both free and premium plans. The free plan includes basic features, while premium plans unlock advanced AI capabilities and higher usage limits.
Q: Is my data secure? A: Yes, we use enterprise-grade encryption and follow strict data privacy regulations including GDPR and CCPA. Your documents are encrypted and never shared with third parties.
Q: Can I integrate LegalEase with other tools? A: Yes, LegalEase provides APIs for integration with popular tools like Google Workspace, Microsoft 365, and Slack.
- OpenAI for AI capabilities
- Base for blockchain infrastructure
- MongoDB for database services
- Vercel for frontend hosting
- All contributors who made this project possible
Website β’ Documentation β’ API β’ Status