VakeelOS - Legal Practice Operating System
Legal practice software for Indian advocates, with court workflows and AI-assisted drafting.
Workflow & Residency
Document OCR
Domain Architecture
Tech Stack
The problem
Solo advocates and small Indian law firms still coordinate matters across paper causelists, messaging apps, spreadsheets, and disconnected document folders. Generic practice-management software misses court-specific workflows; generic AI adds a second risk by producing confident text without a reliable link back to the advocate's own case material.
The challenge
The product had to unify daily legal operations without flattening the way Indian advocates actually work. That meant CNR-linked matters, hearings, causelists, drafting, documents, fee collection, and phone-first access - while keeping primary data in Azure Central India and making non-India AI fallbacks an explicit opt-in. The interface and the underlying service boundaries needed to tell the same story: a dense professional system that still feels legible on first use.
Architecture & System Design
VakeelOS is a Next.js and TypeScript application organised around thin route adapters and domain modules. tRPC exposes typed application boundaries; Prisma and PostgreSQL with pgvector store operational and retrieval data; Azure Blob Storage handles documents; Inngest runs background jobs; and Redis supports cache and coordination paths. Azure OpenAI is the primary AI provider, while browser-side PaddleOCR keeps initial document extraction on-device. Production runs on Azure Container Apps with Key Vault, Log Analytics, Sentry, and fail-closed release checks.
Code Walkthrough
Non-proprietary extract demonstrating the core integration pattern.
// Provider policy: residency-safe by default
export function resolveAiProvider(env: ProviderEnv) {
if (env.AZURE_OPENAI_RESOURCE && env.AZURE_OPENAI_KEY) {
return createAzureProvider({ region: "centralindia" });
}
if (env.ANTHROPIC_API_KEY && env.AI_ALLOW_NON_INDIA_FALLBACK) {
return createExplicitFallbackProvider();
}
throw new Error("No policy-compliant AI provider configured");
}Results
The platform now has a production deployment path on Azure Container Apps, a modular route-and-service architecture, on-device OCR, grounded document retrieval, and explicit residency controls around AI providers. The same court-native design language carries through the product dashboard, mobile flows, brand identity, and responsive marketing site, so prospective users can understand the product before signing in.
Explore the product system
This case study covers the main product surfaces. Use the buttons to move between the dashboard, app, website, and brand work.
Product surfaces
Explore matters, hearings, documents, drafting, and practice operations.
Live Demos
More from VarVik Technologies Private Limited
FactoryOS - RFID Cylinder Tracking & Operations Platform
A production platform for an industrial-gas business: RFID-tagged cylinders are scanned through every movement, orders flow into dispatch and GST invoices, and every branch works from one ledger. A scroll-cinematic launch site explains the product.
ModularFactory - Composable Factory Software
A composable operations platform for small manufacturers: drag modules onto a canvas, and the kernel checks dependencies, enables modules in order, and builds the workspace, with GST, e-way bill, and Tally-ready exports.
Nuvé - Modern Luxury Studio Website
A single, unhurried marketing experience for an appointment-only interior studio in Hyderabad, with a custom brandmark, six-room gallery, and photography-led interaction system.
VakeelOS - Legal Practice Operating System
Product strategy for an India-first legal operating system spanning matters, hearings, causelists, documents, billing, team workflows, and grounded AI drafting.
FactoryOS - Connected Industrial Operations
Product definition for a cylinder-tracking and operations platform: RFID identity, order-to-invoice flow, branch transfers, and finance, shipped to production and explained through a cinematic launch site.
RenderBoard AI - Interior Design Workspace
An AI interior-design workspace that turns a floor plan into approved, rendered rooms and presentation boards, deployed on Azure as an internal test release with cost, safety, and approval gates built in.
Interested in this work?
I can walk through the architecture and code during an interview.