AasaanWill Logo

Will writing made easy for the modern age.

AasaanWill Platform Interface

AasaanWill is a complex legal-tech platform that I architected and developed to handle the intricacies of Indian will creation laws. The platform processes 25+ different asset types, manages complex inheritance workflows, and generates legally compliant documents through automated systems.

Built with SvelteKit frontend and Ruby on Rails backend, the platform handles sensitive legal data with bank-grade security while maintaining sub-second response times for document generation.

Asset Hierarchy System

The core challenge was building a system that could dynamically generate legally compliant wills based on complex user inputs while maintaining data integrity and security. This required creating a flexible rule engine that could handle Indian Succession Act requirements across different states and family structures.

I architected a multi-layered validation system with real-time legal compliance checking, automated document assembly, and a sophisticated state management system that could handle partial saves and resume functionality across complex multi-step workflows.

Asset Hierarchy System - Complex Asset Management

Technical Implementation

I designed a sophisticated rule engine that processes complex legal requirements in real-time. The system validates user inputs against 25+ asset types (real estate, bank accounts, investments, jewelry, vehicles, etc.) while ensuring compliance with Indian inheritance laws that vary by religion, state, and family structure.

The backend architecture uses a event-driven design pattern with Redis for caching frequently accessed legal templates, PostgreSQL for transactional data, and a custom document assembly engine that generates PDFs with precise legal formatting and digital signatures.

Security was paramount - I implemented AES-256 encryption for all sensitive data, JWT-based authentication with refresh tokens, and comprehensive audit logging that tracks every user action for legal compliance purposes.

Document Processing Engine - PDF Generation & Legal Templates

The lawyer dashboard was designed to provide a comprehensive review and editing interface. I built a sophisticated document management system that allows lawyers to review and edit wills with proper version control and audit trails. The system maintains a complete history of all changes and provides structured workflows for legal review processes.

I implemented a custom queuing system using Sidekiq that processes document generation requests asynchronously. When a user completes their will, the system automatically assigns it to available lawyers based on workload balancing and expertise matching algorithms.

The preview system renders documents using a custom HTML-to-PDF engine that maintains legal formatting standards. The system provides instant document preview capabilities with proper legal formatting and validation, ensuring accuracy throughout the review process.

Lawyer Dashboard - Real-time Collaboration

Lawyer Dashboard

Document Review Interface

Document Editor - Version Control System

Document Editor

Version Control System

PDF Generation - Automated Document Processing

PDF Generation

Automated Document Processing

Technical Outcomes

The platform successfully handles complex legal document generation with 99.9% accuracy in legal compliance validation. My custom caching layer reduced document generation time from 30+ seconds to under 2 seconds, while the event-driven architecture allows the system to process thousands of concurrent will creation sessions.

Technology Stack & Architecture

SvelteKitFrontend Framework
Ruby on RailsBackend API
PostgreSQLDatabase
AWSCloud Infrastructure

Backend Architecture

  • Event-Driven Design: Asynchronous processing with Sidekiq for document generation
  • Custom Rule Engine: Validates 25+ asset types against Indian legal requirements
  • Document Review System: Structured workflow for legal review with version control
  • Security Layer: AES-256 encryption, JWT authentication, comprehensive audit logs

Performance Optimizations

  • Redis Caching: Legal templates and user sessions cached for sub-second response
  • Database Optimization: Custom indexing strategies for complex legal queries
  • PDF Engine: Custom HTML-to-PDF converter with legal formatting compliance
  • Load Balancing: Auto-scaling infrastructure handling 1000+ concurrent users while testing

Technical Challenges Solved

Complex Legal Rule Engine

Challenge:

Indian inheritance laws vary significantly by religion, state, and family structure. Building a system that could validate complex asset distributions while ensuring legal compliance across all scenarios.

Technical Solution:

Developed a graph-based rule engine with over 500 validation rules. Used PostgreSQL JSON columns for flexible schema design and Redis for caching rule sets. Implemented a decision tree algorithm that processes rules in O(log n) time complexity.

Document Review & Version Control

Challenge:

Lawyers needed to review and edit complex legal documents while maintaining proper audit trails and version control for legal compliance requirements.

Technical Solution:

Built a comprehensive document management system with structured workflows, simple version tracking with sequential numbering, and comprehensive audit logging. Implemented role-based access control and approval workflows for legal compliance.

High-Performance Document Generation

Challenge:

Generating legally formatted PDF documents with complex layouts, signatures, and formatting requirements in under 2 seconds while handling hundreds of concurrent requests.

Technical Solution:

Built a custom PDF generation engine using Puppeteer with pre-compiled templates. Implemented background job processing with Sidekiq and Redis queues. Added intelligent caching of document fragments, reducing generation time by 85%.

Technical Performance & Results

100+
Customers in Q1
<2s
Document Generation
99.9%
Legal Compliance Rate
500+
Validation Rules

Performance Metrics

  • 85% reduction in document generation time
  • 99.99% uptime with AWS auto-scaling
  • Zero data security incidents
  • Sub-second API response times

Technical Achievements

  • Custom rule engine processing 25+ asset types
  • Structured document review system
  • Automated legal compliance validation
  • Scalable microservices architecture

Ready to Build Your Legal-Tech Platform?

Let's discuss how I can help you build secure, compliant platforms that handle sensitive data while providing excellent user experiences.